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: 
aditya_pratap
Contributor III
Contributor III

How to get month name from month number

Hi Everyone,@Michael_Tarallo @mbj @petter @richbyard @Mp3Leaks @rohitk1609 @Marcus_Spitzmiller @ergustafsson @Masaki_Hamano @Sue_Macaluso 

Good Evening

i am using month_no column in my app but i want month_name with the help of month_no column how we can use.
kindly help me in this.

Thanks
Aditya

1 Solution

Accepted Solutions
MarcoWedel

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

View solution in original post

3 Replies
sidhiq91
Specialist II
Specialist II

@aditya_pratap  Could you please try something like below in your script:

Temp:
Mapping Load * inline [
Month, MonthName
1,Jan
2,Feb
3,Mar
4,Apr
5,May
6,Jun
7,July
8,Aug
9,Sept
10,Oct
11,Nov
12,Dec
];

 

NoConcatenate
Temp:
Load Month,
ApplyMap('Temp',Month) as MonthNames
inline [
Month
1
2
3
4
5
6
7
8
9
10
11
12
];

Exit Script;

MarcoWedel

Month(Date#(month_no,'M'))
sidhiq91
Specialist II
Specialist II

@MarcoWedel  I tried your solution and it worked perfectly fine. Thanks.

NoConcatenate
Temp:
Load Month,
MOnth(Date#(Month,'M')) as Month_Name

inline [
Month
1
2
3
4
5
6
7
8
9
10
11
12
];

Exit Script;

sidhiq91_0-1665110894753.png