Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.