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
sflaming
Frequent Visitor

Workaround for "Select All" Slicer with Filters?

Hi there!

 

I'm hoping someone can help propose a solution to what seems like a simple problem. 

 

I'm trying to create an "event analysis" dashboard where users can view what other events were attended by the partcipants of a selected event. I've included sample screenshots below and can attach sample data if needed.

 

Here's the sample data: 

sflaming_0-1718648201895.png

 

Here is the sample dashboard: 

sflaming_1-1718648242358.png

I have removed the filter interaction between the slicer and the graph, so that you can view attendance data for the other events too. However, in this case, I would like to only see event attendance data for Contact #13, 14, 15 since they attended the Open House (selected in slicer). 

 

The solution I have come up with so far is to create a slicer for Contact ID which is filtered by the event slicer. Below is the outcome, which does have the desired result: 

sflaming_2-1718648371610.png

The issue is with the "select all" functionality, which ignores the filters to the slicer, thereby including data for ALL records (Contact #13, 14, 15, 16), not only the ones who attended the selected event (Open House, in this example). Since the actual number of participants for each event is closer to 100+, obviously it isn't ideal to need to manually select each checkbox on the ContactID slicer in order to achieve the desired result. See below: 

sflaming_3-1718648454332.png

I can't think of a way to do this without a slicer - maybe there is a measure I can write to only include the participants from the selected event? Any help or ideas would be much appreciated!

 

Thanks!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sflaming ,

 

1. Create a calculation table.

Table 2 =
SUMMARIZE('Table','Table'[Contact ID],'Table'[Event])

 

2. Create a measure.

EventCount = 
CALCULATE (
    COUNT ( 'Table'[Contact ID] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[Contact ID]
            IN VALUES ( 'Table 2'[Contact ID] )
                && 'Table'[Event] = MAX ( 'Table'[Event] )
    )
)

 

3. Put the Event field in table2 into the slicer, and put the Event field and EventCount of the table into the bar chart.

vkaiyuemsft_0-1718679551809.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

1 REPLY 1
Anonymous
Not applicable

Hi @sflaming ,

 

1. Create a calculation table.

Table 2 =
SUMMARIZE('Table','Table'[Contact ID],'Table'[Event])

 

2. Create a measure.

EventCount = 
CALCULATE (
    COUNT ( 'Table'[Contact ID] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[Contact ID]
            IN VALUES ( 'Table 2'[Contact ID] )
                && 'Table'[Event] = MAX ( 'Table'[Event] )
    )
)

 

3. Put the Event field in table2 into the slicer, and put the Event field and EventCount of the table into the bar chart.

vkaiyuemsft_0-1718679551809.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.