Hi,
I am new to dataverse tables and I am having a very difficult time understanding how to use the relationship in Dataverse. In my mind a lookup or relations shod work like in PowerBI on Excel with lookup/relationship functions, Where you need to define which columns to match with. For example if I have two tables containing different information about an Employee, I would make a relationship/look up on the columns Table1.EmployeeID = Table2.EmployeeID.
But for Dataverse all we do is say "I want a relation ship between these two tables" and then it is created, but with no way of deciding which rows that should match.
Can someone explain how this works to be, because the relationships are not working as they should and the wrong records are being matched.
Simplified example of my issue:
Table1 - a activity table:
ActivityID (Primary column)
Organisation
Task
Table2 - a calendar table:
CalendarID (Primary column)
Organisation
Time
The Table1.ActivityID is unique, but the Organisation is not.
The Table2.CalendarID is unique, but the Organisation is not.
I want a relationship between the two Organisation columns, so that if I select a Activity (unique row in the Table1) I want to see all the Time rows related to that Organisation.
Lets say I want to display this in PowerAPPs (canvas), then I would have two tables in the App, one containing data from Table1 and another containing data from Table2. Then If I select a row in Table1, Table 2 should be filtered to only show the rows that are related to the same organisation as value in the row selected from Table1.
Worth to mention, the Activity table have more tables it has relationships to.