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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
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
Partner - Champion III
Partner - Champion III

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
Champion III
Champion III

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