Forum Discussion
Relationship between three tables
Hello everyone,
I'm working on creating a visual table that combines information from 3 different tables.
"Table 1" : a monthly database that contains various information. Each contact has a unique ID, but this is repeated multiple times (once for each month).
"Table 2" : a database with specific informatio about a contact that cannot be included in Table 1, to avoid repeating the ID multiple times within the sam month.
"Table 3" : a DB that contains the unique IDs.
I created a relationship between the three tables, as follows:
I attempted to create a visual table that includes information from all three tables:
- IDs from Table3
- Info1 from Table1
- Info2 from Table2
However I get an error saying that PBI can't determine the relationships between the fields.
I have no idea how to solve this. I would appreciate your help!
5 Replies
- lbendlinSuper User
Table 3 is your dimension table. Its ID field needs to be the first field in your visual. The joins need to be single directional, going only from Table 3 to the other tables.
- lallacFrequent Visitor
Hello lbendlin, thank you for your reply.
I updated the relationships as you suggested and attempted to create the visual, but the issue persists. I added the IDs from Table3 and then included Info1 from Table1. However, when I add Info2 from Table2, I encounter the same error.
- lbendlinSuper User
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523