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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

max sale based on year in a text box

i am trying to display maximum sale,when aggregated by year in a text box. when i am clicking on year listbox,maximum sale is changiing

i use following function to get maximum sale aggregated with year

=max(Aggr(sum({<year,qtr>}sales),year))


Capture1.JPGCapture.JPG

1 Solution

Accepted Solutions
sunny_talwar

Try this:

=Max({<year, qtr>}Aggr(Sum({<year,qtr>}sales), year))

View solution in original post

2 Replies
sunny_talwar

Try this:

=Max({<year, qtr>}Aggr(Sum({<year,qtr>}sales), year))

Not applicable
Author

thanks sunny