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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
hkg_qlik
Creator III
Creator III

Month Extraction

Hi,

I would like to extract month (eg. Jan) info from a 012013 (monthyear field). Instead of getting 01 as the month output I would like to see Jan as the output from 012013.

Regards,

H

1 Solution

Accepted Solutions
Not applicable

Hello,

You can try to use MakeDate:

Date(MakeDate(Right('012013',4),Left('012013',2))) as Date,

Month(Date(MakeDate(Right('012013',4),Left('012013',2)))) as Month,

something like this:

Date(MakeDate(Right(MyField,4),Left(MyField,2))) as Date,

Month(Date(MakeDate(Right(MyField,4),Left(MyField,2)))) as Month,

Best regards.

View solution in original post

2 Replies
Not applicable

Hello,

You can try to use MakeDate:

Date(MakeDate(Right('012013',4),Left('012013',2))) as Date,

Month(Date(MakeDate(Right('012013',4),Left('012013',2)))) as Month,

something like this:

Date(MakeDate(Right(MyField,4),Left(MyField,2))) as Date,

Month(Date(MakeDate(Right(MyField,4),Left(MyField,2)))) as Month,

Best regards.

phaneendra_kunc
Partner - Specialist III
Partner - Specialist III

Use this ....

=month(MakeDate(right('012013',4),left('012013',2)))

Replace 012013 with your MonthYear field..