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
Jorenvdl
Frequent Visitor

filter table based on multiple relationships

Hi,

I am trying to create a report based on Dynamics365 data. The issue I am experiencing is the following:

I want to create a report that shows the accounts and opportunities based on the City that is selected in a slicer. The account can have mulitple addresses defined: Post adress or visit adres for example. Now I would like to filter the report but it should filter based on both addresses. For example: When I select a city the accounts with either a visit adres or post adress should be shown in the table of the report. 

Because there are two columns with an address id (Address1 and address2) I have created two relationships. Does anybody know how to create one slicers that checks both addresses and show the correct data?

 

Thank you in advantage!

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Jorenvdl ,

 

Well, you can create a slicer using your address id. What you need to pay attention to is the flow of your relationship. As shown in the figure below, table B flows to table A, and then the address id of table B is used as the slicer. If the address id of table A is used as the slicer, the address id of table A will not filter the address id of table B.

16.png

 

I have attached my sample pbix, you can download it and test it.

17.png18.png

 

 

Reference: Relationships in Power BI

 

 

Best Regards,

Stephen Tao

 

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-stephen-msft
Community Support
Community Support

Hi @Jorenvdl ,


Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your problem.


Best Regards,
Stephen Tao

Hi @v-stephen-msft ,

I am sorry for my delayed response and thank you for your answere. It helped met finding the right direction. I have managed to solve this problem by creating one table with all the adresses. In this table I created a column "ParentId" and created a relationship to the accounts table.

 

Thanks again for you help!

v-stephen-msft
Community Support
Community Support

Hi @Jorenvdl ,

 

Well, you can create a slicer using your address id. What you need to pay attention to is the flow of your relationship. As shown in the figure below, table B flows to table A, and then the address id of table B is used as the slicer. If the address id of table A is used as the slicer, the address id of table A will not filter the address id of table B.

16.png

 

I have attached my sample pbix, you can download it and test it.

17.png18.png

 

 

Reference: Relationships in Power BI

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thejeswar
Resident Rockstar
Resident Rockstar

Can you share some sample data and the table structure you have ?

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.