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: 
Not applicable

I am trying to work on rolling month Task in my dashboard.

Hello Everyone,

I am trying to work on rolling month Task in my dashboard.In which if i am selecting any month then a bar chart will display the last 3 month's 3-3 weeks data ,

Can anyone tell me what approach i should use,

Thanks and Regards.

1 Reply
Not applicable
Author

Hello,

You can get the rolling months like below: Replace YourDate with valid date

Variables:

1) vMaxSelectedCalendarDate=MonthStart(max(YourDate))

2) vLastThreeMonths = =addmonths(vMaxSelectedCalendarDate,-3)

Then you can use these in set analysis expression

count({<[YourDate] = {">=$(vLastThreeMonths)<$(vMaxSelectedCalendarDate)"},[Trade Month]=,[Trade Year]=,[Trade Quarter]=>}itemid)

Thanks,

Angad