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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
bobbydave
Creator III
Creator III

*-value

= aggr(if(rank(avg([Metric Value]))<=6,Grouping),Year,[Cost Center])

I am creating a ranking system and the above equation resolves this.

However, there is one value in Grouping that I do not want in the equation called 'Cost'

= aggr(if(rank(avg([Metric Value]))<=6,Grouping='*@-'Cost'),Year,[Cost Center])

Obviously the 2nd equation is incorrect.

Anyone know how i would rewrite this to allow for Grouping to remove 'Cost'?

Thanks

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

Try with

aggr(if(rank(avg([Metric Value]))<=6,If(Grouping<>'Cost', Grouping, Null())),Year,[Cost Center])

View solution in original post

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Try with

aggr(if(rank(avg([Metric Value]))<=6,If(Grouping<>'Cost', Grouping, Null())),Year,[Cost Center])

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

= aggr(if(rank(avg([Metric Value]))<=6 and Grouping <> 'Cost',Grouping),Year,[Cost Center])


talk is cheap, supply exceeds demand
bobbydave
Creator III
Creator III
Author

Thanks guys

bobbydave
Creator III
Creator III
Author

Thanks guys