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
Shelley
Continued Contributor
Continued Contributor

How to Total on a Subset, Ignoring One Slicer

I'm trying to count a subset of data, while ignoring only one slicer, but I can't seem to get it. I have a Service Ticket table and want to count the number of tickets for the Responsible Group (TSNA), while ignoring the slicer for Ticket Owner (I want to do this to compare the individual's performance to that of this particular group (there are other groups in the data), with all the other filters and slicers, remaining in place). I was trying to use the ALL function, but it still seems to leave the Ticket Owner slicer selection in place.

 

Total Service Tickets TSNA =
CALCULATE(DISTINCTCOUNT(ServiceTicket[Transaction Number]),
ALL('ServiceTicket'[Ticket Owner]),
FILTER('ServiceTicket', [Responsible Group] = "TSNA"))

 

The result should be 833, but is reduced down to 67 because it is counting for the slicer.

 

Help is appreciated.

1 REPLY 1
Gracie
Helper II
Helper II

Try this:

 

var Total Service Tickets TSNA =
CALCULATE(DISTINCTCOUNT(ServiceTicket[Transaction Number]), [Responsible Group] = "TSNA")

 

return CALCULATE(Total Service Tickets TSNA, ALLEXCEPT(ServiceTickket, [Responsible Group]))

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.