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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Xairan
Frequent Visitor

Filtering visuals using slicer that contains string from a different table

Hello,

 

I have two tables - a table with a Project List and a table with a Stakeholder register and each stakeholder is aligned with multiple projects. On the stakeholder dashboard I'm trying to use a slicer with just the Project name to filter some stakeholder visuals however I'm unable to create a correct relationship between the two tables to enable this.

 

Table 1: Project list

Project name
Project 1
Project 2
Project 3
Project 4
Project 5


Table 2: Stakeholder register

Stakeholder nameProject name
Stakeholder 1[List] e.g. [Project 1; Project 4]
Stakeholder 2Project 2; Project 3
Stakeholder 3Project 1; Project 2; Project 3; Project 5
Stakeholder 4Project 3; Project 5

 

I have tried the extracting values to new rows as the Project name is a SharePoint list and creating a many to one relationship between the two tables. While this works - I've also got issues as this duplicates stakeholders which messes up with the count of stakeholders etc.

 

I have also tried using a filter measure: https://community.fabric.microsoft.com/t5/Desktop/Multiple-Contains-Filters-using-Visual-Filters/m-p... however while this works for data tables I'm unable to apply it with other visuals such as column graphs, card visuals etc. 

 

Is there a way to either generate a relationship between these two tables so the slicer works, or is there a filter measure I can apply to other visuals?

 

Thanks!

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

You've solved it already. "While this works".  The problem with duplicated stakeholders is not a problem.  This is how databases work.  You adjust any other measures to cope with this.

View solution in original post

2 REPLIES 2
Xairan
Frequent Visitor

Thank you! Turns out I did solve it. I just added in a calculated column flagging each unique name using this https://community.fabric.microsoft.com/t5/Desktop/Need-Flag-for-every-unique-value/td-p/438947 and created a filter on the page where that column equaled to 1.

HotChilli
Super User
Super User

You've solved it already. "While this works".  The problem with duplicated stakeholders is not a problem.  This is how databases work.  You adjust any other measures to cope with this.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.