cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Carlsberg789 Frequent Visitor
Frequent Visitor

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

Accepted Solutions
Community Support Team
Community Support Team

Re: Data type problem

Hi @Carlsberg789 ,


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
PradipMCT Regular Visitor
Regular Visitor

Re: Data type problem

Hi @Carlsberg789 

 

Can you share the sample file to understand the problem?

 

Pradip Pardeshi

Microsoft Certified Trainer

Pradip's Youtube Channel

Community Support Team
Community Support Team

Re: Data type problem

Hi @Carlsberg789 ,


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

Community Support Team
Community Support Team

Re: Data type problem

Hi @Carlsberg789 ,

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.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 491 members 3,996 guests
Please welcome our newest community members: