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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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.