Forum Discussion
rloud
8 years agoFrequent 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?
3 Replies
- FarhanAhmed1984
Resolver III
You can do it by goto
--> Format --> Edit Interactions
--> Select Slicer and change the dependcy of other slicers to Filter.
- rloudFrequent Visitor
I've tried that with limited success.
- Eric_Zhang
Microsoft Employee
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.