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

how to change month in number to name format

Hi

The data for field "month" is in number format, how can i change it as Jan,Feb,Mar,Apr,May...Dec?

Capture.PNG

Thanks

3 Replies
robert_mika
Master III
Master III

month(MakeDate(2000,yourfield,1)) as MonthName

Anil_Babu_Samineni

Can you provide the script?

Pick(Match(Month,'1','2','3','4','5','6','7','8','9','10','11','12'),'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec')

OR

Use SET Environment of

SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';

Instead of

SET MonthNames='1;2;3;4;5;6;7;8;9;10;11;12';

OR Final table seems This.

LOAD Pick(Match(Month,'1','2','3','4','5','6','7','8','9','10','11','12'),'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec') as Month;

Load * Inline [

Month

1

2

3

4

5

6

7

8

9

10

11

12

];

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
MarcoWedel

Month(Date#(Month,'M'))

hope this helps

regards

Marco