Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
kevbrown
Creator II
Creator II

Previous MonthYear based on today

Hi,

I'm looking to get a YearMonth field for the previous month based on todays date, this ideally needs to be TEXT.  So for today I would like to 2017/06

Thanks

Kev

1 Solution

Accepted Solutions
Anonymous
Not applicable

date(addmonths(today(),-1),'YYYY/MM')

View solution in original post

3 Replies
Anonymous
Not applicable

Hi,

Try:

date(addmonths(today(),-1),'YYYY/06')

Anonymous
Not applicable

date(addmonths(today(),-1),'YYYY/MM')

kevbrown
Creator II
Creator II
Author

Perfect thanks