Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
jpsathya
Partner - Contributor II
Partner - Contributor II

rank and sort in a straight table

Hello,

I have a requirement where I have to show top 3 requests ,for top 3 requests the table should display top 3 response title depending on the top 3 requests only(if there are 2 requests with same value then it should show by alphabetical order), here is the screenshot of the which I am unable to sort with the top values and group by requests:

jpsathya_0-1647143159276.png

I gave for the

1st dimension:

aggr(if(rank(sum ({<$(vAux.Quarter),CASE_TYPE={'Canada MIR'}>}CASE_COUNTER),4)<=3,[Response Category]),[Response Category])

2nd dimension:

=aggr(if(rank(sum ({<$(vAux.Quarter),CASE_TYPE={'Canada MIR'}>}CASE_COUNTER),4)<=3,Response_Title),[Response Category],Response_Title)

expression:

sum({<$(vAux.Quarter),CASE_TYPE={'Canada MIR'}>}CASE_COUNTER)

 

 

Labels (1)
0 Replies