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
Anonymous
Not applicable

How to combine two slicer into one to optimize filtering

How do I combine two filtering fields into one to filter the dashboard on the combined filter rather than having two filtering slicers individually.  For instance, I have two fields that look like below:

PBI quesiton filter.PNG

 

Now I want to combine these two fields (sort of in the form of union logic). 

 

Can I achieve this here?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , if they are from two tables you need to create a common table using those. and Join back. even from same table , You can put them same table(Distinct Union All/Distinct) and join both columns with a new table. One join will be inactive( That you can activate in a measure using userelationship)

Common table https://www.youtube.com/watch?v=Bkf35Roman8

 

Use relationship

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thank you so much @amitchandak . That was helpful. It works 🙂

amitchandak
Super User
Super User

@Anonymous , if they are from two tables you need to create a common table using those. and Join back. even from same table , You can put them same table(Distinct Union All/Distinct) and join both columns with a new table. One join will be inactive( That you can activate in a measure using userelationship)

Common table https://www.youtube.com/watch?v=Bkf35Roman8

 

Use relationship

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

Anonymous
Not applicable

@amitchandak this is working fine for one of the tables that I have an active relatinship, but I am wondering how I can activate the relationship between two of the tables and the union table because I am unioning three tables and two of them have inactive relationship. Now even if I am able to union the tables, the filtering table is not being applied on those that dont have active relationship with the unioned table. How can I solve this please?

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.