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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Shelley
Post Prodigy
Post Prodigy

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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