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

using "OR" in Set analysis

Hi all,

I was trying to use '+' in the place of OR in the set analysis:

Can some one help me on this:

If Name is ABC or XYZ and City is Paris, i was trying to sum the salary using Set analysis:

Trying for Set analysis for the below statement:

=Sum(If((Name='ABC' or Name='XYZ') and City='Paris', Salary))

1 Solution

Accepted Solutions
Qrishna
Master
Master

=Sum({$<Name={'ABC','XYZ'} ,City={'Paris'}>} Salary)




View solution in original post

3 Replies
Qrishna
Master
Master

=Sum({$<Name={'ABC','XYZ'} ,City={'Paris'}>} Salary)




Not applicable

, (comma) separators will give you the sought after result.  In your modifier Name={'ABC','XYZ'}, City={'Paris'}.


As you are starting out with Set Analysis, I would suggest that you become familiar with the Set Analysis Wizard --> Set Analysis Wizard for QlikView | qlikblog.at


Very helpful tool to get you started for simple expressions like this one.

markgraham123
Specialist
Specialist
Author

Thanq Mr. Chaitanya.