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: 
sunil-kumar5
Creator II
Creator II

Top Partner with current year

Hi All,

I want current year top partner name with distinct license number , I got the top partner name on my KPI however not able to set it based on current year. Please advise

=FirstSortedValue([Partner Name] &' ' &Aggr(Count(distinct(LicenceNo)), [Partner Name]), -Aggr(Count(distinct(LicenceNo)), [Partner Name]))

Thanks

2 Replies
Vegar
MVP
MVP

Try to add set analysis to your expression. 

=FirstSortedValue({<[Year] ={'$(=year(today()))' >} [Partner Name] &' ' &Aggr(Count(distinct(LicenceNo)), [Partner Name]), -Aggr(Count(distinct(LicenceNo)), [Partner Name]))

 

 

sunil-kumar5
Creator II
Creator II
Author

Hi Vegar,

Thanks for your help.

Actually I already tried with the same but not success I am still getting top partner with license number but not for current year.

Is there any other way?

Thanks