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

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Month Name

Hi!

in my excel file i've date in format yyyymmdd. I want to create the variable month with month name...

Now i use :

LOAD *,

     MID([Date],5,2) AS Month

FROM

C:\Folder\DB.xlsx

(ooxml, embedded labels);

to catch the 2 numbers of month.

How can i conect the month name?

i use :

LOAD *,

    Month( MID([Date],5,2)) AS Month

FROM

C:\Folder\DB.xlsx

(ooxml, embedded labels);

but all is consider as january...

Thank you

Marco

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Hi Marco,

i hope this helps you.

Stefano.

View solution in original post

4 Replies
Not applicable
Author

Hi Marco,

QV will return the first 3 characters of a month, ex: Jan.

If you want to see the complete month name you can create an mapping table with 2 columns like Jan January and using the applymap function you can implement it.

Not applicable
Author

Hi Marco,

i hope this helps you.

Stefano.

Not applicable
Author

hi Marco,

try this

load *,

month(date(Date,'YYYYMMDD')) as Month

from ...

hope this helps

Gilles

Not applicable
Author

Thank you!!!

Now it works!

Grazie Stefano!