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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.