Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

RishRish
New Contributor

How to create Calendar with current Month equal to last six month

Hi All,

I have requirement were user want see Bar chart with current month data adding last six month data in same month like that each and every month. we need keep on adding  that month +six month in bar chart. 

 

Capture.PNG 

 

Thank you in advance 

3 Replies
zhadrakas
Valued Contributor II

Re: How to create Calendar with current Month equal to last six month

you should create an As-Of-Table.

See this thread:

https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130

 

Apprentice4life
New Contributor II

Re: How to create Calendar with current Month equal to last six month

You can set your date range as variables and use them in your set analysis expression for the bar chart.

variable1 = Max(CalendarField) , the most current month
variable2 = Addmonths(variable1, -5),  Date 6 months ago 

SUM({<CalendarField = {">=$(variable2)<=$(variable1)"}>}Data)

Be aware of the format of the CalendarField, whether it is a date or text string. It matters.

Hope this work for you!

Support
Support

Re: How to create Calendar with current Month equal to last six month

Here is another Design Blog post that may be a better fit:

https://community.qlik.com/t5/Qlik-Design-Blog/Accumulations/ba-p/1466581

Here is the base Design Blog URL as well in case you want to search further on your own:

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

If one of the posts already helped you with your use case, do not forget to return to things and use the Accept as Solution button on the post(s) that helped you get what you needed, as this gives credit to the poster and lets other Community Members know what worked.

Regards,
Brett

To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.