Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
ziabobaz
Creator III
Creator III

Set Analysis, I want current selection to affect the data

Hi,

I have the following expression:

sum( {$<Season=('*winter')>} SALES )


..and it shows me the Sales disregarding current selection in the filter 'Season'. I want to show Sales for all seasons containing "winter" when no selections are made in the filter 'Season', but I don't want to show sales, when the season selected by the user does not contain "winter" in it's name.


Isn't the '$' sign supposed to solve the problem?



1 Solution

Accepted Solutions
sunny_talwar

Try this:

Sum({$<Season *= {'*winter'}>} SALES)

Implicit Set Operators

View solution in original post

2 Replies
sunny_talwar

Try this:

Sum({$<Season *= {'*winter'}>} SALES)

Implicit Set Operators

ronnyhu
Contributor
Contributor

This solution hardcoded "winter".

What if I want to use selected Season, it might be Spring, Summer, Autumn, Winter? What is the correct expression? eg Sum({$<Season *= {'*SelectedSeason???'}>} SALES) ?

Please help