Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

If Statement help

Hi Qlikviewers,

I'm trying to construct a if statement containing the following codition, below is  the condition. Please let me know what's wrong with my statement.

Global Org =  Org1 = 'CD' or 'CM' or 'EI' or ('Risk' and Org2 = CC and IA)

Global Risk= Org1 = 'Risk' and Org 2 = REM, FRM, GRM.

if(match(org1='CD','CM','EI','Risk' AND match(Org2='CC','IA'),Global Org, if(match(org1='Risk' and Org2('REM', 'FRM', 'GRM'), Global Risk)) AS group1

Thank you!

3 Replies
Gysbert_Wassenaar

if(match(org1='CD','CM','EI') or (org1='Risk' AND match(Org2='CC','IA')),Global Org,

if(match(org1='Risk' ) and match(Org2,'REM', 'FRM', 'GRM'), Global Risk)) AS group1


talk is cheap, supply exceeds demand
PrashantSangle

Hi,

Try this

if(match(org1,'CD','CM','EI','Risk') AND match(Org2,'CC','IA'),Global Org, if(match(org1,'Risk') and Match(Org2,'REM', 'FRM', 'GRM'), Global Risk)) AS group1

Syntax:

Match(expr,expr1,expr2)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
its_anandrjs

Hi,

Write like

if(match(org1='CD','CM','EI','Risk') AND ( AND match(Org2='CC','IA')),Global Org,

if(match(org1='Risk' ) and match(Org2,'REM', 'FRM', 'GRM'), Global Risk)) AS group1

Thanks & Regards