Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dynamically creating month labels from Sysdate

How can we create a last 3 months label (For ex: As of now it should June 2013/July 2013/August 2013) from sysdate?

Please let me know about the functions.

Thank you,


5 Replies
stigchel
Partner - Master
Partner - Master

Rob Wunderlich has created a good application to handle date ranges, where he creates a simple calendar and creates date ranges which you can modify according to what you want.

look on RobWunderlich.com

Not applicable
Author

I just need a simple function to calculate month last month label from sysdate, thats not available in the mentioned QVW.

Anonymous
Not applicable
Author

This:

=date(addmonths(today(),-3),'MMMM YYYY') &'/' &date(addmonths(today(),-2),'MMMM YYYY') &'/' & date(addmonths(today(),-1),'MMMM YYYY')

Not applicable
Author

Thank you Michael, this works

Anonymous
Not applicable
Author

Sure it does...

An advice:  You asked for sysdate, which is retrieved here by the today() function.  In practice, especially if the application is not reloaded every day, the reload time is more relevent than the curent date.  If this is the case, just replace today() with the ReloadTime().