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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jpurcell
Advocate I
Advocate I

And slicing on Matrix

I'm having trouble figuring out how to get two slicers to use "and" filtering on a matrix.

 

All of the data is in one table, with employee name, a category, and a number value. Looks sort of like this:2017-07-18 12_16_53-Baseball cards v0.13 - Power BI Desktop.png

I want to be able to filter for employees who have only 3s (or 3s and 2s) in all of the categories selected in the other slicer. But it is listing employees with a 3 in any category along with blanks. The dashboard looks like this currently:2017-07-18 12_21_17-Baseball cards v0.13 - Power BI Desktop.png

But we were hoping to get somehting like this:

 

2017-07-18 12_22_16-Baseball cards v0.13 - Power BI Desktop.png

 

 

 Any Ideas would be appreciated, thanks.

 

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@jpurcell

 

In this scenario, you can create a measure to determine if Cats related to current Name is equal to selected Cats.

 

Measure = 
IF (
    CALCULATE ( DISTINCTCOUNT ( Table1[Cat] ), ALLSELECTED ( Table1[Cat] ) )
        = CALCULATE (
            DISTINCTCOUNT ( Table1[Cat] ),
            ALL ( Table1[Name] ),
            ALLSELECTED ( Table1[Cat] )
        ),
    1,
    0
)

Then add above measure into Visual Level Filter.

 

 

8.PNG

 

Regards,

View solution in original post

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@jpurcell

 

In this scenario, you can create a measure to determine if Cats related to current Name is equal to selected Cats.

 

Measure = 
IF (
    CALCULATE ( DISTINCTCOUNT ( Table1[Cat] ), ALLSELECTED ( Table1[Cat] ) )
        = CALCULATE (
            DISTINCTCOUNT ( Table1[Cat] ),
            ALL ( Table1[Name] ),
            ALLSELECTED ( Table1[Cat] )
        ),
    1,
    0
)

Then add above measure into Visual Level Filter.

 

 

8.PNG

 

Regards,

Thanks, that worked like a charm.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors