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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Change YearMonth or Month from numeric to Text Value

how do I change YearMonth (201105) or Month (5) from a numeric to a text value?

I'm trying to do it in the following expression

Max(YearMonth)

Max(Month)

2 Replies
goldnejea8
Partner - Creator
Partner - Creator

Try something like this (un-tested):

Date(makedate(left(YEARMONTH,4),right(YEARMONTH,2)),'MMMYY')

cesaraccardi
Specialist
Specialist

You could also try Date(Date#(YearMonth,'YYYYMM')) for YearMonth, the Date# function is used to tell QlikView the current format of the value and Date (without #) to format it in another way.