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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Doubt about format in year-month and adding a month

Hi!

I have the field Year-Month For example 2014-Apr

I'd like to have Year-(Month+1) For example 2014-May

I tried a few options but they aren't working

What do you think?

Greetings

PD: I can't use for example addmonths(month,1) because i don't have date, i have year-month.

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

I recommend creating a date field in the script: date(monthstart(date#(MyYearMonthFieldHere,'YYYY-MMM')),'YYYY-MMM'). Then you can use the addmonths function. The field values will still be displayed in Year-Monthname format.


talk is cheap, supply exceeds demand