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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis not working

Hi,

can anyone tell me what I am doing wrong on the code below as it come up with a zero value when I know it should calculate a value

=sum({$<CalendarYear = {$(='2010')},Rebate_Reference = {$(='1')}>}[Sales_Value])

many thanks

Nick

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Hi,

is there a special reason why you use dollar sign expansion for a literal within the set elements?

Try this:

=sum({$<CalendarYear = {2010},Rebate_Reference = {1}>} [Sales_Value])

I assume that CalendarYear has just integer values and also Rebate_Reference has a value 1.

Hope this helps,

Stefan

View solution in original post

2 Replies
swuehl
MVP
MVP

Hi,

is there a special reason why you use dollar sign expansion for a literal within the set elements?

Try this:

=sum({$<CalendarYear = {2010},Rebate_Reference = {1}>} [Sales_Value])

I assume that CalendarYear has just integer values and also Rebate_Reference has a value 1.

Hope this helps,

Stefan

Not applicable
Author

Thanks Stefan,

much appreciated