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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

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
MVP
MVP

May be this

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