Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Sansraison
Contributor II
Contributor II

3 Month Rolling on Combo Chart with Month Dimension

Hello everyone !

Relatively new to Qlik Sense...   I'm stuck on a rolling 3 month calculation.

I want to show on a line chart with Month as the dimension, the last 3 Months result as an average result.

I already have a field (MM3) which avg all my calculation for last 3 months , but i don't use it for this chart as an alternative dimension, the result needed is  2 lines on the same graph without switching dimension

Here's the chart, which use a monthly dimension :

Sansraison_0-1631529713044.png

 

Here's the line calculation, only telling a result by month (and not last 3 month) :

Sansraison_1-1631529937588.png

I'd like to have a second line which return for each month the average of last 3 month.

Can anyone help?

Thanks a lot ! 🙂

Labels (2)
1 Solution

Accepted Solutions
sunny_talwar

I suggest creating The As-Of Table for this

View solution in original post

4 Replies
sunny_talwar

I suggest creating The As-Of Table for this

Sansraison
Contributor II
Contributor II
Author

Ok, thank you Sunny !

I created the AsofTable, but i still can't get the expression on my chart working.

I need exactly this :

Sansraison_0-1631537981021.png

Can somebody help me to adapt this formula with the correct syntax ? :

Sansraison_1-1631538192394.png

Many Thanks ! 🙂

 

sunny_talwar

Did you try to add MonthDiff = {"<=6"} to your expression? and did that not give you what you needed?

Sansraison
Contributor II
Contributor II
Author

Nevermind, i actually found it, for those interested :

Sansraison_2-1631538858790.png

Many Thanks again Sunny, you are precious to the Qlik Community as i saw you on most of the solutions post of Qlik Support Forum ! 🙂