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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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)