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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Impactful Individual
Impactful Individual

Help on Date Format conversion

I have 2 Excel files with a Source that has this Column 'Date' (see below) in my 1 Excel it converts fine but in the other it converts it to Month as Date and Date as month see other image below.



This should be March 1, April 1, May 1 and not January 3, 4, 5 ...




Super User
Super User

Have you tried Table.AddColumn(Date.FromText([DATE]))


Date.FromText, instead of ToText?

I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!
Community Support
Community Support



With the above sample date column in excel, I get the correct date with either excel connector and enter date feature in Power Query. I cannot reproduce the 1/4/2021 format in the PQ, that turns the April 1st to Jan 4th. 





Please try with Power Query in power bi desktop. This problem could be the Excel Power Query.



Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

Community Support
Community Support


What is the date format in the original excel file, are both date columns are the same data type and format? Can you show a screen short.


Paul Zheng _ Community Support Team

In Excel this is in General Type, and it is basically of type Text


Actual Source Screenshot:



Below, I am showing you how it is translated within Excel environment  and into Power Query.





Super User
Super User

You need to convert the Date Column to Date format before doing Date.ToText. Right now it looks like you are performing a Date Operation on a text column. 

I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!

Actually that is the very first thing that anyone will do even the system will automatically convert your data after you promote to Headers BUT converting this to date will yeild the same result that is why what your seeing are non-convetional approach.

Converting immediately (as usual) to date will result to January 3, January 4, January 5..... instead of March 1, April 1 and May 1

Impactful Individual
Impactful Individual

By the way I already tried using Locale but it too doesn't work my currect solution is not advisable because if the source will change it's format it will not work... Basically I split this by delimeter and added a custom column with this syntax #date() - this worked but again it's not flexible.


I just can't understand why it worked in another Excel (this was older but the same source) and did not work in my version today.


@ovetteabejuela , you may want to try,

Table.AddColumn(Source, "Custom", each Date.ToText(Date.From([Date]), "MMMM d, yyyy"))

Screenshot 2021-04-22 173208.png

Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!





and my Regional settings is fine:




Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors