Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Karim_Khan
Creator III
Creator III

how to convert month number into month name

RIGHT([Fiscal Period ID],2) AS Month is showing month like 1,2,3,4,5,6,7,8,9 need to convert into Jan,Feb Mar,Apr

KK
15 Replies
awhitfield
Partner - Champion
Partner - Champion

Hi Karim,

what's the format of the data in the [Fiscal Period ID]?

Andy

Not applicable

Use Month(YourDateField)..

i.e Month(RIGHT([Fiscal Period ID],2) ) as Month.

Karim_Khan
Creator III
Creator III
Author

201506

KK
Not applicable

Try this

=Date(Date#(RIGHT([Fiscal Period ID],2) ,'YYYYMM'),'MMM')

maxgro
MVP
MVP

try with

=SubField(MonthNames,';',  RIGHT([Fiscal Period ID],2))

or

=month(date#(RIGHT([Fiscal Period ID],2), 'MM'))

qlikmsg4u
Specialist
Specialist

=Month(Date#(Right(201506,2), 'MM'))

MK_QSL
MVP
MVP

SubField('$(MonthNames)',';',RIGHT([Fiscal Period ID],2))

Not applicable

match(RIGHT([Fiscal Period ID],2), 'Jan' , 'Feb' , 'March' , 'April' , ' May' , 'June' ,'July' , 'Aug' , ' Sep' , 'Oct' , ' Nov' , 'Dec')

awhitfield
Partner - Champion
Partner - Champion

HI Karim,

based on the format supplied, please try the following:

FPID:
Load * Inline
[
"Fiscal Period ID"
201501
201502
201503
201504
201505
201506
201507
201508
201509
201510
201511
201512
]
;

Month:

Load
month(date#(RIGHT([Fiscal Period ID],2), 'MM'))  // THIS IS THE SECTION YOU NEED


Resident FPID;

HTH - Andy