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: 
niha
Creator II
Creator II

Formating Dates and extracting Year

Hello,

I have a date format like 201901, 201902, 201903....201801,201802....so on. I want to se the year of this year month. How to do that. Please suggest.

Year-month                    Year

201901                            2019

201902                            2019

201903                             2019

201801                             2018

201803                             2018

201807                            2018

I want to see the year(Green font) from Year month. Please suggest.

Regards,

Niha

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try this.

Load *,Left(Year-Month,4) as Year

From xyz;

 

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try this.

Load *,Left(Year-Month,4) as Year

From xyz;

 

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
niha
Creator II
Creator II
Author

Thanks. It worked!