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: 
dmxmikey
Creator
Creator

if statement for 2 conditions.

I have this script

if([con-type]='2',[sell-price]-[discount],"sell-price"-"discount") as [sell-price-new]

and would like to add another condition , if operator='10' and [con-type]='2', then calculate as bove

1 Solution

Accepted Solutions
sunny_talwar

May be this

If([con-type] = 2 and operator = 10, [sell-price]-[discount], "sell-price"-"discount") as [sell-price-new]

View solution in original post

1 Reply
sunny_talwar

May be this

If([con-type] = 2 and operator = 10, [sell-price]-[discount], "sell-price"-"discount") as [sell-price-new]