Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show date with the highest Amount

How I can display the date with the highest amount of a month?

(max(total aggr(sum({<ExisteTiquet={'Si'},Año={$(=Max(Año))}>}Amount),Mes,[Posting Date])))

This function gives me the amount . But what date?

Thanks in advence

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

FirstSortedValue([Posting Date], -aggr(sum({<ExisteTiquet={'Si'},Año={$(=Max(Año))}>}Amount),Mes,[Posting Date]))


Check number of brackets at the end...

View solution in original post

4 Replies
MK_QSL
MVP
MVP

FirstSortedValue([Posting Date], -aggr(sum({<ExisteTiquet={'Si'},Año={$(=Max(Año))}>}Amount),Mes,[Posting Date]))


Check number of brackets at the end...

teiswamsler
Partner - Creator III
Partner - Creator III

Hi Paco

Is it possible to get some sample date/qvw?

/Teis

Not applicable
Author

Very good Thanks

sujeetsingh
Master III
Master III

Here is a sample by samuel