Forum Discussion
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!
3 Replies
- AlBCommunity Champion
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?
- dweir002Frequent 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!- v-chuncz-msftCommunity Support
You may refer to the post below.