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! Request now

Reply
aish25sumbre
New Member

Data type Change

Hello Everyone ,

I have date column under which I have values like 201901 ,2021902,....,202107

 

how to convert these values in proper date format like

2019-01

2019-02

.

.

.

2021-07.

 

Please help me with this

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@aish25sumbre , if you need date, new column

 

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

 

if you need month year

year month = left([column],4) & "-"& right([column],2)

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
Anonymous
Not applicable

Hi @aish25sumbre ,

 

If @amitchandak 's suggestion works for you, please kindly Accept it as the solution,More people will benefit from it. 

 

 

Below I provide another method:

Eyelyn9_0-1641522860277.png

Then choose the correct Format :

 

Eyelyn9_2-1641523067326.png

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@aish25sumbre , if you need date, new column

 

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

 

if you need month year

year month = left([column],4) & "-"& right([column],2)

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

Thank you for help.

It works.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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