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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
mrbuttons07
Helper II
Helper II

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
Super User
Super User

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
Super User
Super User

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

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors