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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Employee
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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.