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: 
kushalthakral
Creator III
Creator III

Get Previous Month from Today's date

Dear All

How i can get Previous month from Current date as i need to generate QVD and use Month and Year as their filed using system date.

Thanks

Kushal Thakral

13 Replies
SunilChauhan
Champion II
Champion II

see the attched file

hope this helps

Sunil Chauhan
preminqlik
Specialist II
Specialist II

NEWTABLE:

Load *,

Month(AddMonths(Today(),-1))               as               PreviousMonth,

Year(AddMonths(Today(),-1))               as                    PreviousYear

resident Orginal;


store NEWTABLE into path\NEWTABLE.QVD;

kushalthakral
Creator III
Creator III
Author

Thank You ALL

Regards

Kushal Thakral

richard_pearce6
Luminary Alumni
Luminary Alumni

Here's a calendar which allows you to determine previous periods depending on dates using flags

http://community.qlik.com/docs/DOC-6593

Regards

Richard

QlikCentral.Com