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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to Calculate Count of TOP/Bottom records.

Hi Everyone,

I am new to qlikview & need your help.

I wanted to count of records which are < 31%. I have attached test QVW.

test.PNG

I wanted to show the count for records which are <31% in Text object. How to achieve this?

Thank you in advance.

1 Solution

Accepted Solutions
trdandamudi
Master II
Master II

Based on your above table chart, I think your result should be 3 in the text object. If that is the case then please use the below expression in a text object which will give you a count of 3:

=Sum(Aggr(If(count(Tons)/count(TOTAL(Tons)) < 0.31,1,0),Material))

Hope this helps...

View solution in original post

3 Replies
trdandamudi
Master II
Master II

Based on your above table chart, I think your result should be 3 in the text object. If that is the case then please use the below expression in a text object which will give you a count of 3:

=Sum(Aggr(If(count(Tons)/count(TOTAL(Tons)) < 0.31,1,0),Material))

Hope this helps...

Anonymous
Not applicable
Author

Hi Thirumala,

Thank you, it worked:)

trdandamudi
Master II
Master II

Awesome... Glad to hear that....