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
I am dividing two columns named Value (USD) and Weight
= Table.AddColumn(#"Replaced Value", "unit price", each if [Value (USD)] = 0 or [quantity]=0 then null
else try [Value (USD)]/[quantity] otherwise null)
It seems to me some format issue.
Please help me
Solved! Go to Solution.
@ajinkyacgaikwad Since your column name has a space and an unsported character for names "(" you need to use #""
Table.AddColumn(
#"Replaced Value",
"unit price",
each
if [#"Value (USD)"] = 0
or [quantity] = 0
then null
else
try [#"Value (USD)"] / [quantity]
otherwise null
)
@ajinkyacgaikwad Since your column name has a space and an unsported character for names "(" you need to use #""
Table.AddColumn(
#"Replaced Value",
"unit price",
each
if [#"Value (USD)"] = 0
or [quantity] = 0
then null
else
try [#"Value (USD)"] / [quantity]
otherwise null
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 17 | |
| 9 | |
| 9 | |
| 7 | |
| 7 |