Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
dandaanilreddy
Partner - Creator III
Partner - Creator III

Top 5 values in piviot table

Hello Qlikdevelopers

I want to show top 5 clinics , regions, territories and areas. I wrote the expression but i am unable to get top 5 values its displaying more values. I have uploaded the qvw. Please help me.

Thanks

Anil

1 Solution

Accepted Solutions
ramchalla
Creator
Creator

Hi Anil,

Try with the below code.

If(Aggr(rank(sum({<Pipe.days_remaining={"> (-1)"},Region_Group={"IVF","Direct"}>} Pipe.Total_Expected_Quantity),4),Area)<=5,Area)

View solution in original post

8 Replies
Anonymous
Not applicable

Hi Anil!
Unfortunately, the attached file is empty!

Try again, pls.

Elena

Anil_Babu_Samineni

Perhaps this


Aggr(If(Rank(Clinics) >=5), Clinics)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Karim_Khan
Creator III
Creator III

Hi Anil,

    Youcan achive the same through Rank function mor showing largest values tick box in Straight table

KK
agomes1971
Specialist II
Specialist II

beck_bakytbek
Master
Master

Hi Anil,

first of all: your attach is empty,

and to Show top values, you should use the calculated Dimension:

for instance: if(aggr(Rank(Sum(YourValue)), YourField) < =5, YourField,Null()) and in Settins for Selected Dimension check Option: Supress When Value is Null

i hope that helps

beck

ramchalla
Creator
Creator

Hi Anil,

Try with the below code.

If(Aggr(rank(sum({<Pipe.days_remaining={"> (-1)"},Region_Group={"IVF","Direct"}>} Pipe.Total_Expected_Quantity),4),Area)<=5,Area)

dandaanilreddy
Partner - Creator III
Partner - Creator III
Author

Hi Ram

Thanks for your help i wrote the expression.

oknotsen
Master III
Master III

If your question is now answered, please flag the Correct Answer (via the big "Correct Answer" button near every post) and Helpful Answers (found under the Actions menu under every post).

If not, please make clear what part of this topic you still need help with .

May you live in interesting times!