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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Jalu
Contributor
Contributor

Sum with exclusion

Dear Members,

The below code is working fine but I need to include an exclusion on it like "Group name != Retailer"

=if($(xTop)=10,if(aggr(Rank(Sum($(vGros2))),[Group Name]) <=10,[Group Name]))


With exclusion (Not working)

=if($(xTop)=10,if(aggr(Rank(Sum($(vGros2))),{<[Group Name]-={"Retailer"}>}) <=10,[Group Name]))

 

Please enlighten me.


Much appreciated for the help.

Cheer's

JP.

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be try this

=if($(xTop)=10,if(Aggr(Rank(Sum({<[Group Name] -= {"Retailer"}>} $(vGros2))), [Group Name]) <=10, [Group Name]))

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be try this

=if($(xTop)=10,if(Aggr(Rank(Sum({<[Group Name] -= {"Retailer"}>} $(vGros2))), [Group Name]) <=10, [Group Name]))

Jalu
Contributor
Contributor
Author

Dear Sunny, it work like charms.    Thank you for the help.

 

Cheer's

JP.