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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
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.

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

=Date([PurchaseDate], 'M')

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

regards

Marco