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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ucmaoTWG
Helper I
Helper I

Importing a column into power query in a dataset without changing any formatting.

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,

2 REPLIES 2
SumitChandra
New Member

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,

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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