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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Data type problem

Hi,

 

I have an issue with the original loading of data to the query. It automatically changes column 9's decimals numbers from the original data to date values, because the 1st non-null value of the data is in fact a date. 

 

Turning the dates back to numbers makes some of the numbers incorrect, so this cant be solved by just changing the data back. What is weird, is that that the data type is not really even defined as a date in the editor, but as "not classified".

 

Any ideas to stop power query from changing the data type? ps. I also tried taking off the Automatic type detection from Query Options..

 

let
Source = Folder.Files("C:Folder"),
#"Added Custom" = Table.AddColumn(Source, "Custom", each Excel.Workbook([Content])),
#"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Name", "Data"}, {"Custom.Name", "Custom.Data"}),
#"Expanded Custom.Data" = Table.ExpandTableColumn(#"Expanded Custom", "Custom.Data", {"Column1", "Column2", "Column3", "Column4", "Column5", "Column6", "Column7", "Column8", "Column9", "Column10", "Column11", "Column12", "Column13", "Column14", "Column15", "Column16", "Column17"}, {"Custom.Data.Column1", "Custom.Data.Column2", "Custom.Data.Column3", "Custom.Data.Column4", "Custom.Data.Column5", "Custom.Data.Column6", "Custom.Data.Column7", "Custom.Data.Column8", "Custom.Data.Column9", "Custom.Data.Column10", "Custom.Data.Column11", "Custom.Data.Column12", "Custom.Data.Column13", "Custom.Data.Column14", "Custom.Data.Column15", "Custom.Data.Column16", "Custom.Data.Column17"})
in
#"Expanded Custom.Data"

 

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,


Any ideas to stop power query from changing the data type? ps. I also tried taking off the Automatic type detection from Query Options..


Normally, we could delect the step "#change type" to achieve that.

More details will be helpful.

If it is convenient, could you share the screenshot of your issue so that we could understand it better?

Best  regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

Have you solved the problem?

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

If you still need help, feel free to ask.

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,


Any ideas to stop power query from changing the data type? ps. I also tried taking off the Automatic type detection from Query Options..


Normally, we could delect the step "#change type" to achieve that.

More details will be helpful.

If it is convenient, could you share the screenshot of your issue so that we could understand it better?

Best  regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PradipMCT
Resolver II
Resolver II

Hi @Anonymous 

 

Can you share the sample file to understand the problem?

 

Pradip Pardeshi

Microsoft Certified Trainer

Pradip's Youtube Channel

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.