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: 
Not applicable

Numeric Value for Month

I have a date field called PurchaseDate.  Instead of it rendering Jan, Feb, Mar, etc.  I want the numeric value so 1,2,3, etc.  I have tried different things and it is not working.  I know this is simple.

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Try the num() function, like

=num(month([PurchaseDate]))

View solution in original post

3 Replies
swuehl
Champion III
Champion III

Try the num() function, like

=num(month([PurchaseDate]))

Not applicable
Author

thank you.

MarcoWedel
MVP
MVP

=Date([PurchaseDate], 'M')

But this only changes the format while preserving the internal date representation.

regards

Marco