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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Wezc85
New Member

Formatting dates in power query

Hi all 

 

Im new to power query and am struggling to format a column with dates. Im taking the data from a work sheet which seems to have dates in both uk (dd-mm-yyyy) and US (mm-dd-yy) formats. In power query i have tried 'Using locale' date - united kindom. Some dates update ok, others get and error 'dataformat. Error:we couldnt parse the input provided as a date value'. And same thing if i try choosing US where some data works and same error above for remaining data. Ive searched numerous sites and YouTube videos and cant get it to work. Can anyone help? (i foubd a suggestion yo try splitting the data into seperate columns if i could differentiate UK and US dates but dont think i can) 

1 REPLY 1
HotChilli
Super User
Super User

If you don't know which are UK and which are US, it's just guessing.  Can you find out from the source (business)?

You will need to solve that if you can, for example 4/3/2019 or 3/4/2019 are both valid dates in a single locale but they are a month out if you switch it the wrong way

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors