Power Query Date Format

cmcreynolds

Active Member
Joined
May 21, 2015
Messages
295
My source table (in an Excel worksheet) has a column that I use just to summarize by year and month (e.g. 2014-March). I know it's not pretty, but I find it useful in some of my work. HOWEVER, I'm finding that Power Query automatically translates it to 3/1/2014, even though in the source table it's formatted as text.

How can I preserve my format through the PQ-PP funnel?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
@Gordonik - I tried that and it would just change 3/1/2014 from date to text, not back to 2014-March.

The issue was that PQ is automatically assigning formats (in the Advanced editor) as soon as the table was pulled in - I didn't assign any formats. So, to solve it, I went into the Advanced Editor and changed it THERE, instead of just selecting the column.
 
Upvote 0
Hello,

When importing data, PQ indeed assigns formats to columns. To cancel that just delete the "Changed Type" instruction either in the advanced editor or in the Query Settings in "Applied steps".
 
Upvote 0
Has it always done this, though? I've never seen it automatically assign formats before....at least, I don't remember seeing it. Is there a way to turn off this feature?
 
Upvote 0
Well so far as I remember yes.
You can turn it off going to Options and Settings>QueryOptions>Data Load and untick Automatically detect column types and headers for unstructured sources
Olivier.
 
Upvote 0
Oh, you know what - I think I did this about 6 months ago. Maybe with the last update it "re-checked" it. Thanks, though!
 
Upvote 0

Forum statistics

Threads
1,224,136
Messages
6,176,562
Members
452,735
Latest member
CristianCaruceriu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top