Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
beginner91
Contributor III
Contributor III

table Ranking TOP 20%

hello all,

i have a table and want to show the TOP 20% of it like:

 

Headline1 / Headline2 / Headline3

Name     /    Name      /     count of serveral numbers

 

i wanted to show the top 20% of the counted numbers.

can someone help me?

greetz

 

Labels (2)
29 Replies
beginner91
Contributor III
Contributor III
Author

?
pradosh_thakur
Master II
Master II

In the below example try this and it will give you 20% result

 

sum({<Name={"=Rank(Sum(mistakes))/Count(distinct total {1} Name)<=0.20"}>}mistakes)

Learning never stops.
pradosh_thakur
Master II
Master II

dimensions are Name and Number ... Measure is above. Create more data and check in the above example.
Learning never stops.
beginner91
Contributor III
Contributor III
Author

when i write "=.... its green and does qlik sense see it as a expression?
beginner91
Contributor III
Contributor III
Author

your expression isnt working.... can you maybe explain what you did? so i can understand it

pradosh_thakur
Master II
Master II

Hi

 

The expression is working and i have attached the screenshot . I have written the expression as per my understanding of the requirement. Please have a look. If this is not the requirement then may be others will be able to help you out.

sum({<Name={"=Rank(Sum(mistakes))/Count(distinct total {1} Name)<=0.2"}>}mistakes)

Please add some dummy data to your excel sheet data

 

 Capture.JPG

Thanks

Pradosh

Learning never stops.
beginner91
Contributor III
Contributor III
Author

thank you for your support. i think i did explain you a little bit wrong. check the excel sheet. i have 2 dimensions and 1 measure to count the mistakes.

pradosh_thakur
Master II
Master II

count({<Name={"=Rank(count(mistakes))/Count(distinct total {1} Name)<=0.2"}>}mistakes)
Learning never stops.
beginner91
Contributor III
Contributor III
Author

the expression in "..." is green writen. check my screenshots.

pradosh_thakur
Master II
Master II

I have sent you a qvf please refer that .. it would be same as that. There is nothing wrong with green, I have tested with your dummy data and it's working , not sure why it's not for you.

 

edit: the message is in moderation so not posted . 

Learning never stops.