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

If else multiple statements in Qlik Sense

Hello -

I am trying to create multiple If else statements in Qlik sense as a dimension and it is not working. So here is the table I have:

repterritoryregion
joeUSAmericas
steveCANAmericas
robapacapac
daveemeaemea

i want to have a case statement that has:

if territory in (US, CAN) then US else Region.

When I add that statement IN doesn't work and if I list it out separately it works but the new dimension doesn't filter correctly. It seems to be filtering on region at the same time in Qlik Sense.

Can someone please help?

Thanks!!

1 Reply
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

How about

=aggr(if(Match(territory,'US','CAN'),'US', Region),territory)

-Rob