Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Find earliest invoice/create date

Trying to display only ONE invoice with the earliest date per supplier.

I have made a chart with supplier as the dimension and the expression is MIN(DATE) but that is not producing one record.

Any suggestions?

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Aggr(Min(CREATION_DATE),SUPPLIER_NUM) worked for Manish. Thanks for helping me get there

View solution in original post

6 Replies
MK_QSL
MVP
MVP

It should work... If not working means your DATE format is wrong...

Just create a Text Box and write below expression

=Min(Date)

If you are not getting numeric value something like 40892, you need to format the Date properly.

In that case, you can use as below

=Date(Date#(Date,'MM/DD/YYYY'))

Here I have considered that your Date Format is MM/DD/YYYY but you need to change it according to what your database has..

robert_mika
Master III
Master III

This configuration works for me:

15-Apr-15 4-37-07 PM.jpg

Could you post yours?

Maybe is a problem with Date format.

Anonymous
Not applicable
Author

Manish/Robert - The MIN function works if I am only considering the SUPPLIER NUM/NAME dimension. However, I need other dimensions from this record, such as INVOICE NUMBER, AMT, etc ...

I guess a better way to put my requirement is:

I need to display several dimensions for one SUPPLIER where the DATE equals the MINIMUM value.

In lehmans terms what I am trying to do is find the first invoice record created for a vendor in our system


MK_QSL
MVP
MVP

May be try below... Or provide some sample data...

Min(Total <Supplier> Aggr(Min(Date),Supplier))

Not applicable
Author

Try using dimension limits and you can chose the required filter over there.

Thanks,

Sai

Anonymous
Not applicable
Author

Aggr(Min(CREATION_DATE),SUPPLIER_NUM) worked for Manish. Thanks for helping me get there