Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I want to convert decimal digits to percentage in a column that has multiple data types in Power BI. How do I achieve this using query/measure in Power BI?
Note: I want all the values in a single column as expected in output example is that possible to create?
Input data: Data type of the column: Any
OUTPUT I AM EXPECTING
you can download from here
https://wdfiles.ru/396ba30
or
https://www48.zippyshare.com/v/tmUelxqq/file.html
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
let
Source = Table.FromRows(
Json.Document(
Binary.Decompress(
Binary.FromText(
"i45WMlCK1YlWMgKTJmDSL1/BsaAgJzM5MSknFYeIgY6xqTmUZWBgaQETNDE1U4qNBQA=",
BinaryEncoding.Base64
),
Compression.Deflate
)
),
let
_t = ((type nullable text) meta [Serialized.Text = true])
in
type table [Column1 = _t]
),
typCh = Table.TransformColumnTypes(Source, {{"Column1", type text}}),
Fx = (x) =>
if Text.Contains(x, "0,") then
Text.From(Value.Add((Number.FromText(x) * 100), 0, Precision.Decimal)) & " %"
else
x,
Result = Table.TransformColumns(typCh, {"Column1", Fx})
in
Result
Sample PBIX file attached
https://dropmefiles.com/3LCjD
Hi the file link which you have shared is not working.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |