Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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]