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

Set analysis exclude!

Can anyone explain me what's wrong in this expression, once I added the exclude script rest of the expression changing from default colors (black red green) to black. But expression window shows me expression is ok.

((

Sum( {$<Year={$(v)},SalesType={'Gross'}>} SalesAmt)

+ Sum({$<Year={$(v)},SalesType={'WOff'}, SaleWOType -= {bad_debt}>} SaleWOAmount)

  + Sum( {$<Year={$(v)},SalesType={'Fee'}>} SalesAmt)

  - Sum( {$<Year={$(v)},SalesType={'Returned'}>} SalesAmt)

))

1 Solution

Accepted Solutions
luciancotea
Specialist
Specialist

Syntax checker is not perfect. Test your expression and see if it returns the correct result.

View solution in original post

3 Replies
luciancotea
Specialist
Specialist

Syntax checker is not perfect. Test your expression and see if it returns the correct result.

venkatg6759
Creator III
Creator III

((

Sum( {$<Year={$(v)},SalesType={'Gross'}>} SalesAmt)

+ Sum({$<Year={$(v)},SalesType={'WOff'}, SaleWOType -= {'bad_debt'}>} SaleWOAmount)

  + Sum( {$<Year={$(v)},SalesType={'Fee'}>} SalesAmt)

  - Sum( {$<Year={$(v)},SalesType={'Returned'}>} SalesAmt)

))

Not applicable
Author

Still it is same..!