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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

How to standardize date format in Power Query?

Hello everyone,

I have a dataset that looks like this. The date format is not standardized on all columns.

mrbuttons07_0-1681872873751.png
When I tried to change the data type in power query, it triggers an error.

mrbuttons07_1-1681872991383.png

How can I standardize the format of the date columns in power query?

IDPlanGRReport
112052507-23-202107-27-202207-23-2021
112052507-23-202108-15-202207-23-2021
112052507-23-202108-30-202207-23-2021
112052507-23-202106-22-202207-23-2021
11205258/5/202210/2/20228/5/2022
11205258/10/202210/2/20228/10/2022
11205259/12/202210/2/20229/12/2022


Thanks!

1 ACCEPTED SOLUTION
wdx223_Daniel
Community Champion
Community Champion

NewStep=Table.TransformColumns(PreviousStepName,{"Id",each _},each Date.From(Text.Combine(Text.SplitAny(Text.From(_),"-/"),"-")))

View solution in original post

1 REPLY 1
wdx223_Daniel
Community Champion
Community Champion

NewStep=Table.TransformColumns(PreviousStepName,{"Id",each _},each Date.From(Text.Combine(Text.SplitAny(Text.From(_),"-/"),"-")))

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.