Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello,
I have a column that is a date/time field specifically formatted to show like the below.
2023-08-14 02:40:28.097
When i try and load this into power query, it consistently modifies the formatting so that it changes the field entirely. Is there any way to make it so that when it loads into power query it remains unformatted in the original form?
Thanks,
Hi,
Depending on the locale settings or default formatting rules, Power Query may automatically format date and time fields when they are loaded. You can take the following actions to maintain the date/time column's original format:
Load the Data: Load the data into Power Query as you normally would.
Change the Data Type: Locate the column in the Power Query Editor that has the date and time values. Select the column heading by clicking the drop-down arrow.
"Change Type" will appear; select "Text."
Hope this will works for you 😊
This doesn't work, it formats it as 'NOV 4, 2023 at 6:34 PM' for example.
The way that i solved this is by fixing it in sql with a convert to NVARCHAR with formatting 121.
CONVERT(NVARCHAR(50),date,121)
Power query then reads this as a string and doesn't convert to date, even though it is technically a date.
Thanks,
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 35 | |
| 31 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 75 | |
| 72 | |
| 39 | |
| 35 | |
| 23 |