Power Pivot Calculate measure with OR

KimC2504

Board Regular
Joined
Jul 17, 2012
Messages
141
Hi All,
Could I get some help with a power pivot calculate measure? I am trying to exclude all opportunites with either "Judgment" or "Mgt Adj". I have created the following formula:
=CALCULATE(sum(SFDC[Total]), SFDC[Version]="CW", OR(SFDC[Opportunity]<>"Mgt Adj",SFDC[Opportunity]<>"Judgment"))

The formula is not excluding the Mgt Adj or Judgment opportunities as I would like it to. Any suggestions would be appreciated.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I think you just want to change your OR to an AND.
In other words, you want Opportunity both not equal to "Mgt Adj" and not equal to "Judgment":

=CALCULATE(sum(SFDC[Total]), SFDC[Version]="CW", AND(SFDC[Opportunity]<>"Mgt Adj",SFDC[Opportunity]<>"Judgment"))

Alternatively, you could use NOT(OR(...)) with = instead of <>:

=CALCULATE(sum(SFDC[Total]), SFDC[Version]="CW", NOT(OR(SFDC[Opportunity]="Mgt Adj",SFDC[Opportunity]="Judgment")))

Does that give the expected result?
 
Upvote 0

Forum statistics

Threads
1,224,153
Messages
6,176,729
Members
452,740
Latest member
MrCY

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