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: 
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

= 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