Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Convert YYYY-MM to date format

Hi Epxerts

 

I want to convert date in text format from 2019_01 into 01 Jan 2019 in Power Query. 

Data Examples

2019_01

2019_02

 

where the second part is the month

i have tried

1. Add Column - Custom Column

2. Type = Date.From("01-" & [Column])

 

and no luck.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , create a new column

 

Date = date(left([column],4), right([column],2), 1)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
Fowmy
Super User
Super User

@Anonymous 

Try this please:

#date( Number.From(Text.Start([Column],4)) ,Number.From(Text.End([Column],2)),1)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

@Anonymous 

You can use this code in Power Query.


Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

amitchandak
Super User
Super User

@Anonymous , create a new column

 

Date = date(left([column],4), right([column],2), 1)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors