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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Maximum Value Required

Dear All,

I want the maximum sales by a dealer for one year (monthly figures available). Using 'max' function in excel we can get it but in Qlikview how do I write the expression.

Rahul

1 Reply
Not applicable
Author

It could be something like this:

=max(aggr(sum({<Year={$(=max(Year))}>} Sales), Dealer))


or

=max(aggr(sum(Sales), Dealer, Year))


or

=max(aggr(sum({<Year={2010}>} Sales), Dealer))


or something else. Your condition has many interpretations