Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Getting the max date values in chart

Hello Everyone,

This may be simple but I'm having a problem:

I have a table like:

ID     DATE          CODE

1     07/21/2013     A1
1     07/21/2013     B1

1     -                      C1

1                           D1

2     07/25/2013     A1

2     07/28/2013     A2

2     07/28/2013     B1

3     08/01/2013     C1

So, I wanted to display chart based on max of date which should show results like:

ID     DATE     CODE

1     07/21/2013     A1

1     07/21/2013     B1

2     07/28/2013     A2

2     07/28/2013     A2

3     08/01/2013     C1

So, based on the latest date, the table should show the values for that specific ID and Code.

1 Solution

Accepted Solutions
JonnyPoole
Former Employee
Former Employee

You can do that. When you add an expression, create an IF statement like this.  If the row is not the maximum date for the ID, it will evaluate as null and be auto suppressed

if(  Date=max( total <ID> Date), <expression> ))

View solution in original post

5 Replies
JonnyPoole
Former Employee
Former Employee

You can do that. When you add an expression, create an IF statement like this.  If the row is not the maximum date for the ID, it will evaluate as null and be auto suppressed

if(  Date=max( total <ID> Date), <expression> ))

Not applicable
Author

Thanks Jonathan,
but seems like it is not working. Any other suggestions?

Thanks.

gmoraleswit
Partner - Creator II
Partner - Creator II

Jonathan's solution is correct, please check attached.

JonnyPoole
Former Employee
Former Employee

i used your data set and came up with this.  Let me know if there is a different data set that illustrates your 2nd issue and i'll fix it. thanks !

Not applicable
Author

Sorry guys,

Confusion on my part. You both are awesome! Thanks Jonathan and Gabriela.