Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
How I can get previous month date when the user select a specific date?
My data has reporting date column. This reporting date column will have
My user would like to compare the sales of the date selected with the previous month date.
So,
I have managed to get for the mid month but when it comes to the month end, it will show me the exact date but not the exact date of the previous month end date.
How I can fix and make set analysis for this?
This is my current set analysis
Help is much appreciated.
Set the AddMonths third "mode" parameter to 1.
addmonths(vLatestDate,-1, 1)
=AddMonths('6/30/2022',-1, 1) = 5/31/2022
See the help for AddMonths:
https://help.qlik.com/en-US/sense/August2022/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeF...
-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com
This is the dynamic expression for the same period last month
=AddMonths(Max(Date), -1)
Hey,
Thank you.
But, I am using the suggested formula currently which is not fulfilling what I am looking for.
Could you provide specifics as to why it's not working for you or possibly give sample data?
Set the AddMonths third "mode" parameter to 1.
addmonths(vLatestDate,-1, 1)
=AddMonths('6/30/2022',-1, 1) = 5/31/2022
See the help for AddMonths:
https://help.qlik.com/en-US/sense/August2022/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeF...
-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com