Forum Discussion

rloud's avatar
rloud
Frequent Visitor
8 years ago

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?

3 Replies

  • You can do it by goto

     

    --> Format --> Edit Interactions

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

    • rloud's avatar
      rloud
      Frequent Visitor

      I've tried that with limited success.

  • Eric_Zhang's avatar
    Eric_Zhang
    Icon for Microsoft Employee rankMicrosoft 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] )
    )

     

     

     

    See more in the attached pbix file.