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

Another Set Analysis issue

Hi, guys,

I need to sum sales for supply scheme A1 in all branches and A1,A2 schemes in Office. Using IF(..) statement, it would be

sum(if(supp_scheme='A1' or bra_id='OFI', sales))


However it is part of set analysis, so I need to write it in that style. It could be something like

sum({<supp_scheme={'A1'} - {"bra_id='OFI'"}>} sales)


Any ideas would be appreciated,

Justinas

Labels (1)
1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

I hope the following is you are looking for.

sum({<supp_scheme={$(=if(bra_id='OFI', 'A1,A2', 'A1'))}>}sales)

Regards

View solution in original post

1 Reply
jagan
Partner - Champion III
Partner - Champion III

I hope the following is you are looking for.

sum({<supp_scheme={$(=if(bra_id='OFI', 'A1,A2', 'A1'))}>}sales)

Regards