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: 
omkarvamsi
Creator
Creator

How to Get Static maximum Sales "YEAR" by aggregating year's sales?

Hi,

I have got maximum aggregated sale's by year using below function in a Text box.

// =FirstSortedValue(year, -aggr(sum(sales), year))

when i'm selecting year in a list box,the value in text box is also changing(i.e YEAR).

But i Want the value in text box should not change(i.e maximum sale's YEAR).

2016-04-26 12_37_55-QlikView x64 Personal Edition - [D__Vamsi_Qlikview_Practice_Set analysis_Test sa.png

1 Solution

Accepted Solutions
sunny_talwar

May be try this:

=FirstSortedValue({<year>}year, -Aggr(Sum({<year>}sales), year))

View solution in original post

3 Replies
sunny_talwar

May be try this:

=FirstSortedValue({<year>}year, -Aggr(Sum({<year>}sales), year))

omkarvamsi
Creator
Creator
Author

Thank you sunny,it worked

sunny_talwar

Awesome. If everything is resolved, please close this thread by marking the correct answer

Qlik Community Tip: Marking Replies as Correct or Helpful