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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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
)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.