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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
jerryr125
Creator III
Creator III

Table Visualization - show most recent date

Hi - 

I have the following Table visualization:

DateLocationQuantity
1/20/2021ABC500
2/14/2021ABC2000
3/1/2021DEF3000
3/8/2021DEF4000

 

I would like to Table visualization to only display the most recent date by location.

Therefore, given the example above, the visualization should display the following:

DateLocationQuantity
2/14/2021ABC2000
3/8/2021DEF4000

 

thoughts ? Thanks - Jerry

1 Solution

Accepted Solutions
salonicdk28
Creator II
Creator II

You just need to take only Location as Dimension and other 2 fields will come in expression

1) Date should be calculated in expression as Date(Max(Date))

2)Quantity=FirstSortedValue(Quantity,-(Date*1000+Quantity))

Please try this way, Hope you get the result

View solution in original post

3 Replies
salonicdk28
Creator II
Creator II

Try this-

Dimension- Location

Measure-

Date=Date(Max(Date))

Quantity=FirstSortedValue(Quantity,-(Date*1000+Quantity))

salonicdk28_0-1615471046172.png

 

 

jerryr125
Creator III
Creator III
Author

Hi that did not work unfortunately - It is still displaying multiple dates for each location.

salonicdk28
Creator II
Creator II

You just need to take only Location as Dimension and other 2 fields will come in expression

1) Date should be calculated in expression as Date(Max(Date))

2)Quantity=FirstSortedValue(Quantity,-(Date*1000+Quantity))

Please try this way, Hope you get the result