March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
I wonder if anyone can help. I have just noticed after importing a whole load of data from excel, that PBI is converting my date information to US format when the month is greater than the day.
The data is exported into excel from another source. I have tried setting the data in the excel files to bothe date format and custom format dd/mm/yyy hh:ss before saving and importing. It always appears in PBI as Text format. So when I try to set the column to data type "date" I naively assumed it was doing it correctly. It was only when I tried to do some sorting to look for entries more than 6 months old and cross checked wotht he original spreadsheet that I spotted this issue.
For example it was converting 05/12/2018 to 12/05/2018.
I have checked the locale settings in the PBI file and the associated Query editor and both are set to UK.
Solved! Go to Solution.
You may take a look at https://answers.microsoft.com/en-us/windows/forum/all/win-10-date-format-problem-i-need-ddmmyy-date/....
Hi @carlbh,
Assuming that all the dates are formatted the same way (day/month/year) you could use this code to create a custom column:
New_Date = DATE(RIGHT([date],4),MID([date],3,6),LEFT([date],2))
You can change the datatype of New_Date to date.
Kind regards,
I literally created an account just to thank you!
I am hoping there is a more central solution to this issue, I dont want to have to keep addding a new column like this every time I create a new report.
This is pretty fundamental, surely there is a microsoft solution out there......
You may take a look at https://answers.microsoft.com/en-us/windows/forum/all/win-10-date-format-problem-i-need-ddmmyy-date/....
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
44 |
User | Count |
---|---|
204 | |
105 | |
99 | |
64 | |
54 |