Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditional Top 10 values

Hello friends,

Please refer to image1 shown above msss.JPGmss222.JPG

I need to show top 10 values  shown in image2 .Grey color highlighted cells should always be included in top 10.

It would be great if you have some solution for this..

Thanks in advance !!!

1 Solution

Accepted Solutions
HirisH_V7
Master
Master

Hi ,

Check this,

=If(MAKE= 'ANT' ,Sum(VOLUME),

If(MAKE= 'BRU' ,Sum(VOLUME),

If(MAKE= 'ROBY' ,Sum(VOLUME),

aggr(if(Rank(Sum(VOLUME))<=10,VOLUME),MAKE))))

In place of the Fields you can place your required fields.

Hope this helps,

PFA,

Hirish

HirisH
“Aspire to Inspire before we Expire!”

View solution in original post

6 Replies
Anonymous
Not applicable
Author

What logic highlights them in grey ?

Not applicable
Author

all 3 highlighted lies in a same brand for ex:-

 

A11A
B
C
mohsinqlik
Partner - Creator
Partner - Creator

Dear Snehal,

You can create static variables to find top 7 ranked Make and another 3 variable to find 10,12 and 14th ranked Make and pass them in you those variable in your set analysis expression of volume. This will restrict your dimension to those 10 values. Hope this helps.

Regards,

Mohsin Choudhary

Anonymous
Not applicable
Author

Hi,

an example attached.

Can this solution help you?

E

HirisH_V7
Master
Master

Hi ,

Check this,

=If(MAKE= 'ANT' ,Sum(VOLUME),

If(MAKE= 'BRU' ,Sum(VOLUME),

If(MAKE= 'ROBY' ,Sum(VOLUME),

aggr(if(Rank(Sum(VOLUME))<=10,VOLUME),MAKE))))

In place of the Fields you can place your required fields.

Hope this helps,

PFA,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
Not applicable
Author

Thanks Hirish.. This solution is helpful