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
)
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 7 | |
| 7 | |
| 7 |