Converting IF statement to Power BI

MSDVA

New Member
Joined
Apr 16, 2019
Messages
3
[FONT=&quot]I'm trying to covert the following Excel IF statement to a custom column in Power BI: =IF(O2<>P2,IF(O2>0,O2,P2),IF(P2=0, N/A,P2)) (replacing the cells with the column names) I cannot for the life of me figure out the syntax.

Any assistance is GREATLY appreciated.
[/FONT]
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
You need one of those reading book things!

= if [field 1] <> [field 2] and [field 1] > 0

then [field 1]

else

if [field 1] <> [field 2] and [field 1] <=0

then [field 2]

else

if [field 1] = [field 2] and [field 2] = 0

then

“N/A”

else

if [field 1] = [field 2] and [field 2] <> 0

then

[field 2]
 
Upvote 0
same as Excel really.

if [Field 1] <> [Field2] then if [Field 1] > 0 then [Field 1] else [Field2] else if [Field2] = 0 then "N/A" else [Field2]
 
Upvote 0

Forum statistics

Threads
1,214,378
Messages
6,119,188
Members
448,873
Latest member
jacksonashleigh99

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top