Forum Discussion
matka123499
2 years agoFrequent Visitor
Power Query divide
Hi, I am trying to divide 2 columns in power query editor by adding a new column but when using simple / sign function I will get infinity, n/a etc return when 0 is included and when trying to us...
- Anonymous2 years ago
Hi matka123499
Try the following code.
if [Total Area]<>0 then [#"Rental Value (ERV)"]/[Total Area] else nullOutput
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
2 years agoNot applicable
Hi matka123499 ,
You can use below query to check for the black values..
[Column Name] = IF ( 'YourTable'[Total Area] <> 0,
'YourTable'[Rental Value (ERV)] / 'YourTable'[Total Area],
BLANK () )
If you like this solution please upvote and consider marking it as solution accepted
Thanks!
- matka1234992 years agoFrequent Visitor
I used bellow but get an error Token literal expected.
Column Name] = IF ( 'Merged Data'[Total Area] <> 0,
'Merged Data'[Rental Value (ERV)] / 'Merged Data'[Total Area],
BLANK () )