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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ashmitp869
Creator II
Creator II

assistance required in expression to show top rsultsin text object of chart ?

Hi there, 

Please kindly assist me with the expression , I want achieve the most "Episode Speciality on separation" shown as text at top of the chart, as you see there are two "Dental Surgery" and "Emergency Medicine" result thus my expression is not working.

Here is my expression - =FirstSortedValue(Concat(DISTINCT [Episode Specialty on Separation], ','), [Episode Specialty on Separation] ,-Aggr(Sum([ETP Numerator])/Sum([ETP Denominator]), [Episode Specialty on Separation]))

 

Please suggest.

req.PNG

 

Thanks in advance

1 Solution

Accepted Solutions
MayilVahanan

Hi


Try like below

=Concat(Distinct Aggr(if(Rank(Sum([ETP Numerator])/Sum([ETP Denominator]))=1, [Episode Specialty on Separation]), [Episode Specialty on Separation]), ',')

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

1 Reply
MayilVahanan

Hi


Try like below

=Concat(Distinct Aggr(if(Rank(Sum([ETP Numerator])/Sum([ETP Denominator]))=1, [Episode Specialty on Separation]), [Episode Specialty on Separation]), ',')

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.