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

Expression in Set analysis

Hi  Community,

How to write the below expression in Set

   

If CR RWA <> 'GMR or OPR' then SUM (RWA)

Thank you

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If you're testing for two values 'GMR' and 'OPR' and not one value 'GMR or OPR' then try if([CR RWA] <> 'GMR' or [CR RWA] <> 'OPR',sum(RWA))


talk is cheap, supply exceeds demand

View solution in original post

6 Replies
Kushal_Chawda

try

=sum({<[CR RWA]-={'GMR','OPR'}>}RWA)

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can't. Set analysis does not support branching. But if you mean sum(if([CR RWA] <> 'GMR or OPR', RWA) then you can use sum({<[CR RWA]-={'GMR or OPR'}>}RWA)


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Gysbert,

Its -  If CR RWA <> 'GMR' or 'OPR' then SUM (RWA)

Not applicable
Author

So In such case, we have to use straight IF condition like

if([CR RWA] <> 'GMR' or 'OPR'(sum(rwa))

Am I right Gysbert?

Not applicable
Author

Hi Kush,

It's act like AND. I mean to say it will remove both(GMR and OPR) from sum.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If you're testing for two values 'GMR' and 'OPR' and not one value 'GMR or OPR' then try if([CR RWA] <> 'GMR' or [CR RWA] <> 'OPR',sum(RWA))


talk is cheap, supply exceeds demand