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: 
Mamta123
Contributor II
Contributor II

Convert Month to numeric Month

I have a column Month 

The Column has data like  January, February,  March , April, May etc.,

I need to convert it to numeric

January should be 1

February should be 2 etc.,

 

 

Labels (1)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

Num(Month(Date#(Month, 'MMMM'))) as MonthNum

View solution in original post

1 Reply
tresesco
MVP
MVP

Try like:

Num(Month(Date#(Month, 'MMMM'))) as MonthNum