March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Experts,
I'm having a text columns with numbers, text and scientific notation, example as follows
202-203
2320042
AH3021
F21A-001
1.00E+11
In a situation like this how to handle the data and format it according to a more structured way?
Thank you.
Regards
Las
Thanks for your response.
Currently i'm using a formula =TEXT(<Cell>, "0") in Excel. Looking for a similar solution in Power Query, at the end should be able to convert the column to TEXT.
Ta.
Thank for all your responses.
I might be looking for power query to convert the exponential values and rest of the other values in the column to text. The issue is after converting it will error out all the other values which is not having scientific notation.
When having multiple values ( mix of text, SN and general types ) how to handle this situation?
Thank you
Regards,
Las
Power Query equivalent is Text.From like below
= Text.From([Column1])
Please post the output expected for the input given below
202-203
2320042
AH3021
F21A-001
1.00E+11
Hi Vijay,
Require everything in text format ( Yes, even numbers converted to text ). Currently we do it in Excel and upload it to PBI, this process is cumbersome due to large amount of data.
Thank you.
Hi @Las
In Power Query, data in a column should be changed to the same data type.
Currently this column is Text type. If you don't want to do any calculation or aggregation on this column, you can remain it as Text type. However, if you want to do some calculation, you can extract necessary data into a new column and change it to a specific data type.
You can also use features like Pivot/Unpivot/Transpose... to change the table structure. We don't know the meaning of these text strings and what you want to do later, so we cannot suggest more on how to handle it. But ensure that the table should be a flat tabular structure and every column is expected to have data of the same single meaning.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
It all depends upon what you want to downstream. Formatting is something which is not important in mashing up data unless needed.
Hence, if in the downstream, you want to extract numbers, you can have following formula
= try Number.From([Column1]) otherwise Number.From(Text.Select([Column1],{"0".."9"}))
But it all depends what you want to do.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.