Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
| 268740.00 Cr |
| 1652420.00 Cr |
| 22228.00 Dr |
-268740 |
-1652420 |
22228 |
Solved! Go to Solution.
Hi @coolshib
If you only have Cr or Dr in the column, you can use if statement
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjKzMDcx0DMwUHAuUorViVYyNDM1MjFCFjECAgsQ3wXIjwUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each
if Text.Contains([Column1],"Cr")
then Number.From(Text.Select([Column1],{"0".."9"}))*-1
else Number.From( Text.Select([Column1],{"0".."9"})), type number)
in
#"Added Custom"
Hi @coolshib
If you only have Cr or Dr in the column, you can use if statement
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjKzMDcx0DMwUHAuUorViVYyNDM1MjFCFjECAgsQ3wXIjwUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each
if Text.Contains([Column1],"Cr")
then Number.From(Text.Select([Column1],{"0".."9"}))*-1
else Number.From( Text.Select([Column1],{"0".."9"})), type number)
in
#"Added Custom"
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.