cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Oradim
Regular Visitor

Problem with 3 data tables in a table chart

Hi everyone,

I have a problem.
I am importing my tables into power BI and create all the relationships.
Table A is connected to Table B via the personalnumber and it is a 1:n relationship.
Table A is also connected to Table C via a personalhaskey (created in the DWH) and it is also a 1:n relationship.
When I put a value from Table A and Table B in the table chart it is working. When I put something from Table A and Table C in the table chart it is also working.
But when I put something from Table A, B and C in the table chart I get an error message that Power BI can't determine the relationship between the columns.
But when I create two tables. One  with columns from Table A and Table B the other one with columns from Table A and Table C.
And I filter something from Table B the table (Table A and C) will also be filtered so Power BI is also finding connection between these two. But it is only filtered when both tables contain columns of Table A.

Does anyone have an Idea where my mistake is?
I also tested crosstablefiltering with the simple and both options but it made no difference.

1 ACCEPTED SOLUTION

Use column of table A as slicer and put the columns of Table B and C in a table visual. You can start your analysis from this point. You cannot put all A, B and C in a single visual.

View solution in original post

7 REPLIES 7
gauravtanwar
Resolver II
Resolver II

Is there a relationship between B and C. Can you paste a screenshot of the model or share the pbix file if possible ?

Hi there is no direct relationship between B and C.
They are only connected over table A.

Left table is Table B, middle one is Table A and right one is Table C.

Oradim_0-1614583079665.png
And in my table chart I want to have values from table A, B and C.

 

I can see you are trying a workaround to avoid many to many relationship. In such case we generally use the middle table as filter/slicer and it cannot be used with both wing table in a visual a the same time. Logically you can think that one PersonnalNumber from Table B has multiple values in Table C. How will Power BI know which data to show for which Id. 

You can go through this link for better understanding. Hope I was able to clarify the issue. Kindly accept this post as solution if it helped

Thank you.
You are right but I would be fine with a cartesian product.
Because there are no money values and it is just about Dataquality.
I am only analysing if a employee has a country, working contract, hour rate etc filled in the DWH.
And the table is just to verify the data and to see if there is "null" value and in which column and for which employee it is. I don't care if Power BI duplicates the data because it is not for analyzing it.
Is there an option in Power BI to see all the values?

Use column of table A as slicer and put the columns of Table B and C in a table visual. You can start your analysis from this point. You cannot put all A, B and C in a single visual.

View solution in original post

Would this also work with more tables?
They are all connected to table A.
So I can put tables B-H in the visual and use A as a slice?
Do I understand it right. Table B and C would be in the same table visual?

It should work i guess. Try it once and let me know the result

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.