Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
marsmike
Creator
Creator

Filter records in a table chart

I have a table chart in my app that that has multiple records with the same primary key but with different dates.  So it might look like this:

14725836     5/20/2014

14725836     5/21/2014

14725836     5/23/2014

I would like to only display the record with the latest (most recent) date.

Is there a way to do that within the table properties?

Thanks,

Mike

1 Solution

Accepted Solutions
marsmike
Creator
Creator
Author

Massimo, thank you very much, this is great!

You are THE MAN.

View solution in original post

10 Replies
Not applicable

I think, you may need to use one of those options:

- dimension limits,

- expression like FirstSortedValue()

- set analysis with rank()

regards

Darek

maxgro
MVP
MVP

did you try a chart with?

dimension      your primary key field

expression     max(your date field)

marsmike
Creator
Creator
Author

I'm not really good with set analysis.  I was hoping for something easier.  I tried the dimension on the key field and max(your date field).  That gives me the latest date.  But I failed to mention that there are multiple primary key records, like this:

14725836     5/20/2014

14725836     5/21/2014

25836914     5/15/2014

25836914     5/19/2014

36914725     5/10/2014

36914725     5/17/2014

So, for each primary key I need the latest date.  Sorry for not explaining that.

Mike

maxgro
MVP
MVP

like this?

1.png

marsmike
Creator
Creator
Author

Much better!

Is there a way to remove the duplicate entries?

Thanks,

Mike

marsmike
Creator
Creator
Author

Thoughts, anyone?  Is there to remove the duplicate entries after using the expression above?

maxgro
MVP
MVP

this?

1.png

marsmike
Creator
Creator
Author

Awesome!

Is the QVW updated?

maxgro
MVP
MVP

yes now