Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
master_student
Creator III
Creator III

variable

Hello

I need to create a variable that retunrs the month -1 of today in that format yyyymm (201702)

LET vDate2 = date(Today(), 'YYYYMM') // this variable returns the current month and I need current month -1

Thanks

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this

=Date(MonthStart(Today(), -1), 'YYYYMM')

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be this

=Date(MonthStart(Today(), -1), 'YYYYMM')

master_student
Creator III
Creator III
Author

Thanks Sunny for your help