cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dweir002 Frequent Visitor
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

Accepted Solutions
Community Support Team
Community Support Team

Re: Measure which excludes slicer selection?

@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
Highlighted
Super User
Super User

Re: Measure which excludes slicer selection?

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?

 

 

 

 

dweir002 Frequent Visitor
Frequent Visitor

Re: Measure which excludes slicer selection?

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!
Community Support Team
Community Support Team

Re: Measure which excludes slicer selection?

@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

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 179 members 2,292 guests
Please welcome our newest community members: