Calculate & Sum with multiple criteria

Ormie

New Member
Joined
Oct 26, 2019
Messages
20
Office Version
  1. 2013
Platform
  1. Windows
Hello,

I have the following DAX but it returns blank value. I am trying to filter on two values (policy year 2018/19 & 2019/20) from the same column.

CALCULATE(SUM(IntCustomSearchResults[Value of Incident]),IntCustomSearchResults[Category]="Motor",IntCustomSearchResults[Policy Year]="2018/19",IntCustomSearchResults[Policy Year]="2019/20")

Thanks,

Chris
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
You have an implied AND in your logic. It's looking for values that are in both years. Is that what you want? Otherwise you'll need to make it an OR

Code:
CALCULATE (
    SUM ( IntCustomSearchResults[Value of Incident] ),
    IntCustomSearchResults[Category] = "Motor",
    OR ( IntCustomSearchResults[Policy Year] = "2018/19",
            IntCustomSearchResults[Policy Year] = "2019/20" )
)
 
Upvote 0

Forum statistics

Threads
1,223,809
Messages
6,174,761
Members
452,582
Latest member
ruby9c

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