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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
maxduff59
Helper II
Helper II

Convert a date in the right format

I am quite a newbie on Power BI and Power Query and I have a problem on the formatting of the data. 
Indeed, in my power query, my date format is 01/04/2022 which is supposed to be the 4th of January for me whereas Power Query is reading it as the 1st of April. 

Do you know how could I correct that mistake ?

Thanks in advance for your time and your help

1 ACCEPTED SOLUTION

Instead of changing the default behavior or your query editor, you can also set the culture manually in the step where you transform column types.

 

Set the optional culture parameter to "en-US" to interpret dates as "mm/dd/yyyy" instead of "dd/mm/yyyy".

https://docs.microsoft.com/en-us/powerquery-m/table-transformcolumntypes

View solution in original post

2 REPLIES 2
BA_Pete
Super User
Super User

Hi @maxduff59 ,

 

In Power Query, go to File > Options & Settings, then navigate here to adjust how PQ deals with regional settings globally:

BA_Pete_0-1659536720741.png

 

 

And here for the specific file:

BA_Pete_1-1659536815425.png

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Instead of changing the default behavior or your query editor, you can also set the culture manually in the step where you transform column types.

 

Set the optional culture parameter to "en-US" to interpret dates as "mm/dd/yyyy" instead of "dd/mm/yyyy".

https://docs.microsoft.com/en-us/powerquery-m/table-transformcolumntypes

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors