Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
dhavalvyas
Contributor III
Contributor III

Rolling of Chart by 12 months back

What is concept of Rolling of Bar Chart by 12 months back by selecting individual bar in chart ?

How to do this ? can anyone can explain with proper expression ?

I have data for two years from April 2015 to April 2017 ?

19 Replies
neelamsaroha157
Specialist II
Specialist II

Rolling 12 months means, looking 12 months back from the current Year-Month selection.

Ex. If you select April-2017 then rolling 12 months will be April-2017 through May-2016.

Approach you can use to accomplish this is:

Create a variable for your Max(Date).

Create another variable as AddYears(Max(Year), -1).

Add date formats as well if your original date is in different format.

Now you can use these variables in your set analysis expression.

OR you can use AsOfTables

The As-Of Table

dhavalvyas
Contributor III
Contributor III
Author

This for UI

I want how to convert Date from string to Date Format then UI part.

please kindly explain

neelamsaroha157
Specialist II
Specialist II

Date(Date#(YourDateField, 'CurrentDateFormat'), 'OutputdateFormat')

dhavalvyas
Contributor III
Contributor III
Author

what to write in current date format and output date format ??

I think so in output date format we have to write 'DD/MM/YYYY'

but what about current date format

dhavalvyas
Contributor III
Contributor III
Author

can you tell quickly because I am stuck due to small mistake and I have to deploy my project with in mall period of time

neelamsaroha157
Specialist II
Specialist II

If your current date format is DDMMYY or any other format, you need to add that. It would be great if you can share a sample.

dhavalvyas
Contributor III
Contributor III
Author

Ya i am sharing Screen Shots of my Data and Dashboard Screenshot (73).png

Screenshot (75).png

Screenshot (76).png

Please reply me as soon as possible

neelamsaroha157
Specialist II
Specialist II

Change Date field as

Date(Date,'DD/MM/YYYY') as Date

dhavalvyas
Contributor III
Contributor III
Author

Thank You So much mam. By the way where are you working ?? And Also on which tool ??