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

Set analysis- Sum current date vs 11 previous months with YearMonth dimension

Hello,

I need to create a bar chart with YearMonth Dimension. The expression = current month + 11 previous months

I'm using this set:

=sum({$<YearMonth={">=$(=MonthStart(Max(YearMonth),-11))<=$(=MonthEnd(Max(YearMonth)))"},Year=,Month=>}Sales)

if I put it in a textBox with one YearMonth selected  works but in my graph doesn't

The test dats is attached

Thanks in advance

Labels (3)
1 Solution

Accepted Solutions
sunny_talwar

Are you looking to get this?

image.png

View solution in original post

2 Replies
sunny_talwar

Are you looking to get this?

image.png

vhespinog
Contributor III
Contributor III
Author

Thank you!, works fine