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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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