Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Please help me with the below if statement.

 

Am I doing anything wrong here?

if([Product Categeory Desc]='Non Managed NFS',

if([Product Categeory Desc]='Non NFS Accounts'),[Product Categeory Desc]) as NonReccuring,

Thanks, in advance.

4 Replies
tresesco
MVP
MVP

Should be something like:

if( [Product Categeory Desc]='Non Managed NFS', 'SomeThing' ,

if([Product Categeory Desc]='Non NFS Accounts' ,[Product Categeory Desc]) ) as NonReccuring,

Note: changes are in RED (one brace has been moved to the end)

abeyphilip
Creator II
Creator II

Hi,

Not sure of the requirement here, but there is a problem in the syntax, you are missing one parameter in your second "if" statement.

if([Product Categeory Desc]='Non Managed NFS',

if([Product Categeory Desc]='Non NFS Accounts',Match_Result),[Product Categeory Desc]) as NonReccuring

Regards,
Abey

Not applicable
Author


Thank you.It worked.

Not applicable
Author

hi

try this

if([Product Categeory Desc]='Non Managed NFS',

if([Product Categeory Desc]='Non NFS Accounts',[Product Categeory Desc]) )     as   NonReccuring,