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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
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

1 Solution

Accepted Solutions
sunny_talwar

May be this

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

View solution in original post

2 Replies
sunny_talwar

May be this

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

master_student
Creator III
Creator III
Author

Thanks Sunny for your help