Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Get greater amount from table using set analysis

Hi,

I have a table that look like this:

Date            Amount

01/01/2013   40,000

01/02/2013   50,000

01/04/2014   55,000

01/06/2015   9,000


I need to take greater amount and the date of this amount.


For example: the result in this case would be 55,000 and 01/04/2014


I have tryied to use FirstSortedValue function but it's doesn't word because it return the first or the las value.



King regards!

11 Replies
sunny_talwar

Try this:

='Geater selling day' & Chr(13) & FirstSortedValue(Date, -Aggr(Sum(Amount), Date)) & Chr(13) & Max(Aggr(Sum(Amount), Date))

udaya_kumar
Specialist
Specialist

Hi,

Please check this.