Forum Discussion
Set column type while expanding from merged query
- 8 years ago
I am working with Excel using Excel.Workbook(Web.Contents())
In matter of fact the type doesn't matter untill I don't lose the zeros. Like 0003 > 3, 0005 > 5.
MarcelBeug the change of the data type occurs while expanding and zeros are lost. I guess there's nothing to get them back.
It is very nice how you values remain their zeros while their type is a number.My temporary solution was to change the type to a number everywhere and duplicate the column with type text in the table that I visualize. Works pretty good but it would be better if that was not necessary.
Thank you both!
I use the latest version of Power BI. There was a second update this month.
No new step is added.
Maybe you think that shouldn't happen or event it's not possible but that's what happened.
Can you post a screenshot of the Query Editor showing the output of the query that gets data from Excel, before you do the merge, please? If possible could you also post the M code for all of your queries too?
Thanks,
Chris
- v-jiascu-msft8 years agoMicrosoft Employee
Hi Birdjo,
The data type of the destination is number. Can you change it to Text manually?
Best Regards,
Dale
- v-jiascu-msft8 years agoMicrosoft Employee
Hi Birdjo,
Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.
Best Regards!
Dale - Birdjo8 years agoResolver II
That way the zeros are missing.