Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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"
Solved! Go to Solution.
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
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
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
Hi @Anonymous
Can you share the sample file to understand the problem?
Pradip Pardeshi
Microsoft Certified Trainer
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.