Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis

i have the following chart which compares values from one year to the next:

Screen Shot 2015-10-18 at 21.23.28.png

The 'Month Year' e.g. 'Dec 2013' are based on the following expression:

=Num(Sum ({$<Year={2013},Month=>} [MedAid Amount] + [Shortfall]), '$##,##0.00')


Since the year 2015 only contains data up to the end of August, growth comparisons with previous year becomes erroneous.  It would be good to base the above on rolling 12 months figures so that like can be compared to like (12 month values) when it comes growth rates.  How can the above expression be modified to calculate rolling 12 months values instead of calendar values?


Regards.

10 Replies
Anonymous
Not applicable
Author

Thank you all, managed to sort it out using the PeriodID definition as suggested and linking the calendar and fact table through this PeriodID (Year*12 + Month)