Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dweir002
Frequent Visitor

Measure which excludes slicer selection?

Working on performance reporting for a team.  We take the individual's output (units) for a month and compare it to the team's average units for the month.  The tricky part is that the average used for comparison does not include that individual's output.  Also, the team changes throughout the year, so I don't want to create person-specific calculations.

 

I was thinking of creating one slicer to chose the person being reviewed.  When selecting that person, they would be removed from the team calculation.  Any functions/dax that could assist?  Thanks for your help!

 

 

1 ACCEPTED SOLUTION

@dweir002,

 

You may refer to the post below.

https://community.powerbi.com/t5/Developer/Compare-one-to-many-in-aggregate-dynamically-using-Slicer...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
dweir002
Frequent Visitor

Ok, I got this far:

 

IdvCheckAvg = calculate([TotalChecks],CALCULATETABLE(SUMMARIZE(team, Team[EmployeeName])),USERELATIONSHIP(Team2[EmployeeName],Team[EmployeeName]),EXCEPT(values(Team2[EmployeeName]),values(Team[EmployeeName])))
 
Using this link:
 
 
It still doesn't work though, but I think I'm close.  Any help on the DAX would be appreciated!  Thanks!

@dweir002,

 

You may refer to the post below.

https://community.powerbi.com/t5/Developer/Compare-one-to-many-in-aggregate-dynamically-using-Slicer...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AlB
Super User
Super User

Hi @dweir002

 

There's no function that does that directly, at least that I am aware of.

You could do something like:

 

EXCEPT(ALL(Table1[FieldInSlicer]), VALUES(Table1[FieldInSlicer]))

 

which gives you the list of items not selected in the slicer and then use that in your filtering operations (as filter argument in calculate for instance). In any case,  believe there are several postings on the topic. Have you checked?

 

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.