Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikuserkv
Contributor III
Contributor III

Set analysis - from the beginning of the year to the max date

Hello ,

I have a field month with numbers(1,2,3,4.. ) I mean ,1st is January, 2nd is February etc

When I write Month={'>=1 <=3'} in the set analysis, it shows me the results from January to March. How can I write the range if I want to start from January and to have the results before the max(date) information. 

Thank you,  in advance

26 Replies
qlikuserkv
Contributor III
Contributor III
Author

All years but only these months ( from January to max month)

sunny_talwar

This same expression should work... isn't it working? or what is the issue that you are seeing?

qlikuserkv
Contributor III
Contributor III
Author

When my dimension is month,  this formula only shows me current year's month from January to max month information. I want to show all years in these months together --- January(2014,2015,2016,2017,2018) , February(2014,2015,2016,2017,2018), March (2014,2015,2016,2017,2018), April(2014,2015,2016,2017,2018)....

sunny_talwar

Are you sure you are using this expression

Sum({<Month = {"$(='>=1<=' & Num(Month(Max({1}Date))))"}, Year>} Measure)

and not this?

Sum({<Month = {"$(='>=1<=' & Num(Month(Max({1}Date))))"}, Year = {$(=Max(Year)}>} Measure)

If you are using the second expression.... it will not work because you are telling your expression to look at the Max(Year).

qlikuserkv
Contributor III
Contributor III
Author

I understand and I use the first formula.

It shows me only this 28939357_2097553796951615_1538163342_o.jpg

And I want something like this

28944900_2097553760284952_1178523706_o.jpg

sunny_talwar

Have you added Year as your second dimension?

qlikuserkv
Contributor III
Contributor III
Author

I just added this, I deleted {1} from the function and it works. Now I should change the colors of these years. Thanks again!!