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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
zagzebski
Creator
Creator

Using or in set analysis


I am drawing a blank but don't feel like this should be that hard..

Provider ID

ABC

DEF

Region

South

West

North

East

I wanted to show the results of sales where :

Region = South or West or  Provider ID = ABC

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Yes you have to use Union operator in between the set analysis

=Sum({<Region={'South','West'}> + <ProviderID = {'ABC'} >} Sales)


Hope that helps

View solution in original post

5 Replies
israrkhan
Specialist II
Specialist II

Try like this..

=Sum({<Region={'South','West'}, ProviderID = {'ABC'} >}, Sales)

Clever_Anjos
Employee
Employee

=sum({<Region={'South','West'}>+<ProviderID = {'ABC'} >}Sales)

zagzebski
Creator
Creator
Author


Thanks for the feedback. Unfortunately I think this wouldn't work because it says the record would need:

Region = South or West  AND Provider ID = ABC

I need the expression to be

Region = South or West  OR Provider ID = ABC

Steve

israrkhan
Specialist II
Specialist II

ooops...

i got the wrong..

try expression by Clever, it should work...

CELAMBARASAN
Partner - Champion
Partner - Champion

Yes you have to use Union operator in between the set analysis

=Sum({<Region={'South','West'}> + <ProviderID = {'ABC'} >} Sales)


Hope that helps