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
nisha_deepak
Helper III
Helper III

date field issue

i have date column which isto be formated to mm/dd/yyyy. That also correctly formated within power bi and created report using table visualization .In power bi it is showing correctly like this.

Capture.PNG

But when i try to export data and by viewing report in excel sheet date foramat is not reflected in excel.

Capture1.PNG

 

why it is happening in excel?plse help

1 REPLY 1
AllisonKennedy
Super User
Super User

@nisha_deepak 

 

Excel handles dates differently to Power BI, so you may need to format the Excel file separately. Only way around this would be to format the date in Power BI as a text column, so that the exact formatting is preserved on export to Excel, but this won't be able to be used in any calculations or sorting.

 

Excel data types: https://support.microsoft.com/en-us/office/data-types-in-data-models-e2388f62-6122-4e2b-bcad-053e3da...

Dates are actually just serial numbers counting number of days since Jan 1, 1900

 

Power BI data types; https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-data-types

There is actually a date data type. 

 

Formatting (MM/DD/YYYY vs DD/MM/YYYY) is a different thing again to data type, so this does not get preserved on export. 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.