Quantcast
Channel: Power Query topics
Viewing all articles
Browse latest Browse all 31099

How to convert YYYYMM to character Month of the year

$
0
0

I have imported the data from Google Analytics connector and I'd like to add a new coloumn which will have values like, "Jan, Feb, Mar etc" from my [Month of Year] column which is in following format: YYYYMM.

I have tried following solution, but to no avail:
1) Tried converting the [Month of Year] column into Data/Time, earlier it was Text, it won't allow me to convert into Date or Date/Time and convert the data into "Error"

 

2) Custom Column: 
Used following snippet

Snippet: =Date.FromText(Text.Range([Month of Year],0,4)&Text.Range([Month of Year],4,2))

Ref link: https://community.powerbi.com/t5/Desktop/How-to-convert-text-20150714-to-date/m-p/92515#M39064

 

None of the above solution has helped me, please recommend how do I go about solving this issue.

Regards


Viewing all articles
Browse latest Browse all 31099

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>