Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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