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: 
Not applicable

Month Function

hi All,

I need to store a value in the variable of last month in this format '07/17'

Month(Today()) gives value as Aug

Month(today())-1 gives value as 07

but I need the output as 07/17

please advise

thanks in advance

Sukhwant

Labels (1)
1 Solution

Accepted Solutions
Frank_Hartmann
Master II
Master II

=num(Month(today())-1,'00')&'/'&right(Year(Today()),2)

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be this

Date(MonthStart(Today()), 'MM/YY')

Frank_Hartmann
Master II
Master II

=num(Month(today())-1,'00')&'/'&right(Year(Today()),2)