Power Pivot, slicer and table relationships

Copper Contributor

Really appreciate any advice here. I have a Power Pivot data model as shown below for a consulting business scenario. I have several measures such as:

 

Distinct Activities = calculate(DISTINCTCOUNT(ServiceDetails[Activity ID]))

Service Status = if([Distinct Activities]>=5,2,IF([Distinct Activities]=0,0,1))

 

The “Service Status” measure is used to set up conditional formatting icons to indicate the frequency of service.  

 

We recently surveyed sales people for feedback on which accounts (i.e. ServiceDetails[Master Group]) are relevant to be serviced by particular consultants (SalesFeedbackTable[Addressable?]). I want to set up a slicer based on this field to toggle the pivot table between views of addressable (Yes) and (No) accounts.  In an attempt to do this, I used CROSSFILTER to create the measure:

 

Service Status - Addressable = CALCULATE([Service Status], CROSSFILTER (EmployeeTeams[Consultant Name], SalesFeedbackTable[Consultant Name], Both))

 

Instead of just toggling the views between “Yes” and “No” accounts, the “Service Status” measure now outputs different values depending on the selection, with all rows always displayed. I’m sure I’ve misunderstood the use of CROSSFILTER… Any idea how to achieve what I’m trying to do?

 

D380A1C0-527D-455F-A24F-232A5DF495C2.jpeg

0 Replies