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
)
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 15 | |
| 8 | |
| 6 | |
| 5 | |
| 5 |