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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
v-kaiyue-msft
Community Support
Community Support

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
v-kaiyue-msft
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.