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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
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

Labels (1)
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