Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
mahitham
Creator II
Creator II

Month Help

Hi Experts,

Can any one please help me to extract the Month like Jan, Feb to Jul from the below field.

Month.png

Thanks in advance.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

I see a space between your year and month numbers in excel, in that case you could try like:

Month(Date#(Month,'YYYY MM'))                      // note space between YYYY and MM

View solution in original post

16 Replies
arvind_patil
Partner - Specialist III
Partner - Specialist III

Hi Mahitha,

Please try below:

Month(Date#(Month,'YYYYMM')) as  Monthname,

Thanks,

Arvind Patil

mahitham
Creator II
Creator II
Author

Hi Arvind,

I have tried in the backend. The field is showing null.

Anonymous
Not applicable

Try

Month(Date(Date#(Month,'YYYYMM'),'MMM-YYYY')) as  Monthname

mahitham
Creator II
Creator II
Author

Hi Neetha,

Thanks or your reply. The expression is working in UI. But when I have copied the same expression in the backend its showing null.

manoj217
Creator III
Creator III

Month(Date(Date#(Month,'YYYYM'),'MMM-YYYY')) as  Monthname

tresesco
MVP
MVP

How (statement/script) did you create the Month field in the script?

manoj217
Creator III
Creator III

She wants to extract month from the date field am i right.

same script will work in backend also but check the format of your data for date# then transform into required format

left(Date(Date#(Month,'YYYYM'),'MMM-YYYY'),3) as  Monthname

mahitham
Creator II
Creator II
Author

Hi Tresesco,

Please find the below script and UI screen shot.

When I have copied the backend expression in UI getting correct month format but in by the backend Month Transform field getting null.

SCRIPT.png

mahitham
Creator II
Creator II
Author

Hi Manoj,

I have tried left () but its not working