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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
john_s_w_wood
Creator
Creator

Month Name from Month Number

Has anyone got a slick way of converting a month number to a month name?

I either end up using an inline table ( generally as a mapping / applymap)

1,Jan

2,Feb 

etc

or a horrible string function pick(monthno, 'Jan', 'Feb', etc)

Thanks

7 Replies
petter
Partner - Champion III
Partner - Champion III

You can use this:

=SubField(MonthNames,';',1)

1 gives Jan ... and so forth...

MonthNames should be predefined according to your settings in Windows and at the top of your load script.

So in your case it should be:

  =SubField(MonthNames,';',monthno)

tresesco
MVP
MVP

Month(MakeDate(1,MonthNum))

Anonymous
Not applicable

best way is to do a inline mapping table load and use applymap

Thanks

BKC

antoniotiman
Master III
Master III

Month(Date#(4,'MM'))

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

Try this script

load
Month(MakeDate(Today(), MonthNumber, 1)) AS Month_Name,
*
Inline [

MonthNumber
1
2
3
4
5
6
7
8
9
]
;

 

john_s_w_wood
Creator
Creator
Author

Thanks Folks - All great answers

luizcdepaula
Creator III
Creator III

This worked perfectly for me. Thanks.