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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
rloud
Frequent Visitor

Matching slicer criteria to multiple columns

I have a Project List with the name of the project, the lead contact, secondary contact and a third contact and an employee list. I'm trying to setup a slicer that will select all rows that a particular employee is involved with.

 

I'd like to have the All Projects By slicer to contain the names of all employees and filter whether or not an employee is the lead, 2nd or 3rd contact. IE: Brian is selected and it returns all rows where Brian is either the Lead Contact, 2nd Contact or 3rd Contact.

 

Any Suggestions?

Untitled.png

3 REPLIES 3
Eric_Zhang
Microsoft Employee
Microsoft Employee

@rloud

One approach by tricky measures.

Lead Contact_ =
IF (
    NOT ( ISFILTERED ( Contacts[Contact] ) )
        || (
            MAX ( yourTable[Contact2] ) = MAX ( Contacts[Contact] )
                || MAX ( yourTable[Lead Contact] ) = MAX ( Contacts[Contact] )
                || MAX ( yourTable[Contact3] ) = MAX ( Contacts[Contact] )
        ),
    MAX ( yourTable[Lead Contact] )
)


contact2_ =
IF (
    NOT ( ISFILTERED ( Contacts[Contact] ) )
        || (
            MAX ( yourTable[Contact2] ) = MAX ( Contacts[Contact] )
                || MAX ( yourTable[Lead Contact] ) = MAX ( Contacts[Contact] )
                || MAX ( yourTable[Contact3] ) = MAX ( Contacts[Contact] )
        ),
    MAX ( yourTable[Contact2] )
)


Contact3_ =
IF (
    NOT ( ISFILTERED ( Contacts[Contact] ) )
        || (
            MAX ( yourTable[Contact2] ) = MAX ( Contacts[Contact] )
                || MAX ( yourTable[Lead Contact] ) = MAX ( Contacts[Contact] )
                || MAX ( yourTable[Contact3] ) = MAX ( Contacts[Contact] )
        ),
    MAX ( yourTable[Contact3] )
)

 filter2.gif

 

 

See more in the attached pbix file.

FarhanAhmed1984
Resolver III
Resolver III

You can do it by goto

 

--> Format --> Edit Interactions

--> Select Slicer and change the dependcy of other slicers to Filter.

I've tried that with limited success.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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