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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

problem with 'Dual If'

Hi

I am relatively new to Qlikview and have encountered a problem with an expression that contains a dual if statement, the expression is as follows:

sum(if (Year = vYear1,

  (if Exempt = 0,(Price - Tax - Service - 0),(Price - Tax - Service - Nett)),)

  )

based on the values of the Exempt field I either need to subtract the Nett or not.

1 Solution

Accepted Solutions
arulsettu
Master III
Master III

try like this

sum(if (Year = vYear1,

  if(Exempt = 0,(Price - Tax - Service - 0),(Price - Tax - Service - Nett)),)

  )

View solution in original post

3 Replies
arulsettu
Master III
Master III

try like this

sum(if (Year = vYear1,

  if(Exempt = 0,(Price - Tax - Service - 0),(Price - Tax - Service - Nett)),)

  )

Not applicable
Author

Thank you!

anbu1984
Master III
Master III

sum(if (Year = vYear1,(Price - Tax - Service - If(Exempt=0,0,Nett)) )  )