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

Adding Two Statements Together! (HELP)

HI GUYS, THIS IS BASICALLY ADDING 2 IF STATEMENTS TOGETHER, I'M NOT SURE HOW TO GO ABOUT DOING THIS, PLEASE HELP! THANKS!

I'VE ADDED THE QLIKVIEW FILE INSIDE AS WELL.

THANK YOU! =D

1 Reply
erichshiino
Partner - Master
Partner - Master

Hi,

I just replaced Duty and Tax by your if statements.

The result is:

if(match(Seg,'BP'),money(sum(Ceil(([Price(Euros)]*if([PRODUCT_TYPE]<>'TwinCAT', Tax,1)*if([PRODUCT_TYPE]<>'TwinCAT', Duty,1)*TRANSPORT*Rate)/BP,0.5)),CurrencyFormat),
money(sum(Ceil((PRICE*EURO*DISCOUNT_FACTOR*1)/SUB*if([PRODUCT_TYPE]<>'TwinCAT', Tax,1)*if([PRODUCT_TYPE]<>'TwinCAT', Duty,1)*TRANSPORT*Rate/Markup,0.5)),CurrencyFormat))

So,

Instead of Duty, you can use if( field='Value', 1, Duty)

in an expression:

1 * Duty * 150

became

1 * if( field='Value', 1, Duty) * 150

Rgds,