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: 
privatevinodh
Contributor II
Contributor II

Datamanager - Calculated field - IF AND Condition

Am new to qliksense. Using Datamanager Table edit am trying to add a new calc field. In that field am trying to write an expression with IF condition like

IF(Income>8000 and Income<=30000,1,0) 

Getting an error missing right parenthesis. Can we use IF with And inside calculated field in Data manager ?

Kindly help

 

1 Solution

Accepted Solutions
rubenmarin

Hi, this looks like a bug in data manager, this syntax would work if you use the script editor instead of data manager.

As a workoarund you can use a syntax like: If(Income>8000, If(Income<=30000,1,0), 0)

View solution in original post

3 Replies
rubenmarin

Hi, this looks like a bug in data manager, this syntax would work if you use the script editor instead of data manager.

As a workoarund you can use a syntax like: If(Income>8000, If(Income<=30000,1,0), 0)

privatevinodh
Contributor II
Contributor II
Author

Thanks Ruben The syntax you had shared works inside the calculated field in Datamanager !

NKOPS1982
Contributor II
Contributor II

Thank you!  This is an interesting issue and surprised that it still has not been resolved (as of 2024-05-13)