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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out 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
tresB
Champion III
Champion III

Try like:

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

View solution in original post

1 Reply
tresB
Champion III
Champion III

Try like:

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