Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
vardhancse
Specialist III
Specialist III

Rolling months trend graph

Hi,

I have a small requirement, is that based on the month selected need to get the rolling 12 months and 24 months back trend .

Say for eg:

Selected month was october and year was 2015

so the trend graoh should show the actual from october 2015 and back till November 2014

Similarly based on the filter month and year the trend should display

data is as given below:

FiscalMonthMonthNameFYMonthFiscalYearActual
1OctoberOct-14201410
2NovemberNov-1420149
3DecemberDec-1420148
4JanuaryJan-1420147
5FebruaryFeb-1420146
6MarchMar-1420145
7AprilApr-1420145
8MayMay-1420146
9JuneJun-1420147
10JulyJul-1420148
11AugustAug-1420149
12SeptemberSep-14201410
1OctoberOct-1520151
2NovemberNov-1520152
3DecemberDec-1520153
4JanuaryJan-1520154
5FebruaryFeb-1520155
6MarchMar-1520156
7AprilApr-1520156
8MayMay-1520155
9JuneJun-1520154
10JulyJul-1520153
11AugustAug-1520152
12SeptemberSep-1520151

Applied dimension: FYMonth

Expression:

 

Sum

({<FiscalYear=,Quarter=,MonthName=,Date={">=$(=MonthStart(Max(DateFull),-11))<=$(=Date(Max(DateFull)))"},>}Actual)

But the required rolling moths data was not coming. can please help me out to get the same.

1 Reply
sunny_talwar

What is the format of your date field? Is it the same one as this -> =MonthStart(Max(DateFull), -11) in a text box object? Secondly, do you have two fields? Date and DateFull or do you just have a typo?