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

Earliest Date

So I am creating a table that displays account numbers and certain dates that correspond with the account number. I am wondering how to only display the earliest date for each account number as opposed to every date for each account number.

Tried using min and firstvalue and couldnt get either to work

LoanLoss:

LOAD

acct_nbr as distinctAcct,

prod_dt as prod_dt2

Resident Loans

where is90 = 1;

1 Solution

Accepted Solutions
eduardo_sommer
Partner - Specialist
Partner - Specialist

Try this

LoanLoss:

Load

acct_nbr as distinctAcct,

date(min(prod_dt)) as prod_dt2

Resident Loans

where is90 = 1

group by acct_nbr;

Eduardo

View solution in original post

3 Replies
Anonymous
Not applicable
Author

The min() function should work.  You're missing something...  Can you upload your QV file?

eduardo_sommer
Partner - Specialist
Partner - Specialist

Try this

LoanLoss:

Load

acct_nbr as distinctAcct,

date(min(prod_dt)) as prod_dt2

Resident Loans

where is90 = 1

group by acct_nbr;

Eduardo

Anonymous
Not applicable
Author

This worked! Thank you!