Forum Discussion

maxbbbfff's avatar
maxbbbfff
Regular Visitor
3 years ago

Relationship in a visual level

Hi

When I research about relationships between two tables in power bi, people usually explain how to define the join (left, inner etc) in power query. My question is not about that. My question is how power bi defines the type of join that is being done between two tables in the model, when bringing fields from both in the view. For example: suppose I have a table A with 3 ID rows. And a table B also with 3 lines of ID too. In table A I have IDs 1, 2 and 3. In table B I have IDs 1, 2 and 4. That is, I have two lines in common between the tables. When bringing the information from both tables into one visual, what kind of join is Power BI doing? Does it always do an inner join, showing in this case only the two lines in common (ids 1 and 2)? If so, is there a way to redefine this join to, for example, bring all the records from table A and only what has in common from table B?

Thanks

4 Replies

  • We need to do left outer join for bringing all the records from table A and only the matching ones from table B.

     

    If I answered your question,kindly mark it as solution.

     

    Thanks,

    GS