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

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,