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

Variable in set analysis expression

Hi,

Anyone have an idea why this expression does not work? LastSalesYear standing for last year is variable and this couses problem.

sum({$<[Cost Category]={'Net sales'}, MonthYear={'Jan-' & LastSalesYear}>} (1+VAT)*[Monthly amount]/[ActExchRate])



1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I expect this to work:

sum({$<[Cost Category]={'Net sales'}, MonthYear={'Jan-$(LastSalesYear)'}>} (1+VAT)*[Monthly amount]/[ActExchRate])

View solution in original post

2 Replies
Anonymous
Not applicable
Author

I expect this to work:

sum({$<[Cost Category]={'Net sales'}, MonthYear={'Jan-$(LastSalesYear)'}>} (1+VAT)*[Monthly amount]/[ActExchRate])

Not applicable
Author

Works perfectly.

Thanks Michael