Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
z_badawi
Contributor II
Contributor II

Qlikview Set Analysis on Selected Month

When a user selects a month in the multi-box I have provided, for the field named 'month', I want to filter the chart's data to that month only. How can I do that?

I know that Date#(month) returns the selected month but can't seem to use it correctly in set analysis.

Thanks.

Labels (2)
1 Solution

Accepted Solutions
Taoufiq_Zarra

if your expression is sum(Sales)

then your new expression will be :

=Sum({<Month={"$(=Max(Month))"}>} Sales)
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

3 Replies
Taoufiq_Zarra

if your expression is sum(Sales)

then your new expression will be :

=Sum({<Month={"$(=Max(Month))"}>} Sales)
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
z_badawi
Contributor II
Contributor II
Author

Thanks a lot for your help.

Could you please tell me how I can do the same thing but for the month before the selected month? (example: user selects February, I want to apply set analysis on January)

Taoufiq_Zarra

if you have a date field then :

=Sum({<Date= {"$(=Addmonths(Date,-1))"}>} Sales)
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉