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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tssi70
New Member

Slicer to filter table in 2 columns

To simplify the issue I have a "Call"-table with 2 columns: "EmployeeReceiver" and "EmployeeHandler". Then I have created a new table "Employee" that holds the distinct values from the 2 columns in the "Call"-table. For the "Employee"-table I have added a Slicer.

Now, when 2 or more selections is made in the Slicer I want to display only records from the "Call"-table that have both the "EmployeeReceiver" AND the "EmployeeHandler" among the selected employees in the Slicer. Is this possible and if so how can I do this?

1 ACCEPTED SOLUTION

Hi @tssi70,

Based on my test, it is impossible to achieve your requirement using one slicer. You can create another slicer using EmployeeReceiver field and use two slicers to filter your visual. You can check the example in the following screenshot.

1.PNG

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yuezhe-msft
Employee
Employee

Hi @tssi70,

Could  you please share sample data of  the two tables ("Call" table and "Employee" table) and post expected result here?

Besides, we need to know that what field you use to create relationship between “Call” table and "Employee" table, and which field you drag into the slicer.


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Surtenly 🙂
Fictive names here.

 

"Call"-table:
EmployeeReceiver   EmployeeHandler

Employee1               Employee2

Employee1               Employee3

Employee1               Employee4

Employee2               Employee3

Employee2               Employee4

 

"Employee"-table:

Here the table is just created with an sql like SELECT DISTINCT EmployeeName FROM (SELECT EmployeeReceiver AS EmployeeName FROM Call UNION ALL SELECT EmployeeHandler AS EmployeeName FROM Call) AS Employee.

 

If the Slicer has selection on Employee1 and Employee2 I only want to see that first row in the Call-table.

 

The Relationship is a problem as I would like to have 2:

- Call.EmployeeReceiver -> Employee.EmployeeName

- Call.EmployeeHandler -> Employee.EmployeeName.

Tried with both (1 non active) and without any, but no luck.

@v-yuezhe-msft it might be some completely other way to do this, but I'm not aware of it.

Hi @tssi70,

Based on my test, it is impossible to achieve your requirement using one slicer. You can create another slicer using EmployeeReceiver field and use two slicers to filter your visual. You can check the example in the following screenshot.

1.PNG

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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