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

End of year quantity

Hi all!

I have a combo chart with Date.autoCalendar.Year as a dimension. The line should represent the stock at the end of each year, i.e. the stock in December. I try to use the following formulas but they do not work:

Sum({<[Date.autoCalendar.Month]={"=Max([Date.autoCalendar.Month])"}>}[Quantity]😞 returns the total for each year

Sum({<[Date.autoCalendar.Month]={'12'}>}[Quantity]😞 returns zero

Can somebody please help with this?


It would also be nice if the line shows a value only when there is data for the entire year. Currently I have Jan 2010 until Mar 2017, so I don't want to see value for 2017 as the year has not finished yet. But this is not a vital requirement.


Thank you!

11 Replies
zebhashmi
Specialist
Specialist

Try this

Sum({<[Date.autoCalendar.Month]={"=Max(Date([Date.autoCalendar.Month],'MM'))"}>}[Quantity])

mikel_de
Creator
Creator
Author

Hi again!

The short name worked. No idea why 'December' does not. Anyways, problem solved! Thanks for your help!