COUNT w/multiple FILTERS in PowerPivot/DAX

stbrooks13

New Member
Joined
Dec 9, 2014
Messages
40
I have the proper formula as follows, but in my PowerPivot table, this measure is appearing on both the Intern and Associate rows as shown in the link below. What should the formula be so that it only appears on the Intern row, as it doesn't apply to the Associate row?

=CALCULATE(COUNT(Activity[Offer Accepted]),
Activity[Offer Accepted]>0,
Activity[Job Level]="Intern",
Activity[1st or Rehire]="Rehire"
)

https://drive.google.com/file/d/0B4fCnnVL7eHCUEhGX1llTnVvaWc/view?usp=sharing
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi,
The simplest solution here would be just to add VALUES ( Activity[Job Level] ) as an argument for CALCULATE to retain the current filter on Job Level (the existing formula is replacing the filter on Job Level):

Code:
=
CALCULATE (
    COUNT ( Activity[Offer Accepted] ),
    Activity[Offer Accepted] > 0,
    Activity[Job Level] = "Intern",
    [COLOR=#ff0000][B]VALUES ( Activity[Job Level] )[/B][/COLOR],
    Activity[1st or Rehire] = "Rehire"
)
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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