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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rolling 15 Months Variance calculation

Hi can any one help me to calculating rolling 15 Months Variance, means when user selects 2016 jan  my application has to show last 15 months Variance with its previous year same month.

I am attaching a qvw with some sample data , can any one help me on this.

Thanks

John

4 Replies
amit_saini
Master III
Master III

John,

Try something like below:

Sum({<YearMonth ={">=$(=Date(addmonths(Max(YearMonth), -15), 'MMM-YY')) <=$(=Date(addmonths(Max(YearMonth), -1),  'MMM-YY'))"} >} Sales)

Thanks,

AS

Anonymous
Not applicable
Author

jagan
Partner - Champion III
Partner - Champion III

Hi,

check this link for this type of similar scenarios.

Set Analysis for certain Point in Time

Not applicable
Author

Thanks amit saini,

Your expression will work for normal sales , however I need variance of sales from its previous year same month , it is not working in my case.