Forum Discussion

sivashankr's avatar
sivashankr
Helper II
6 years ago
Solved

LEFT OUTER JOIN in Modelling (Not Merging or DAX)

Hello Team,

 

By SQL looks like below. Could you let me know how to mimic the same in Power BI Modelling. I tried with One-Many/Many-Many everything works as same as INNER JOIN. 

 

Note: I can't use the Merge feature as I have many tables as shown below.

I can't use DAX, as I have so many columns (approx. 100) in each table, as I have so many columns with same name. 

So, please let me know how we can achieve LOJ in Modelling window itself

 

SELECT * FROM TABLE1

 

LEFT OUTER JOIN TABLE2
ON TABLE1.COLUMN1 = TABLE2.COLUMN1

 

LEFT OUTER JOIN TABLE3
ON TABLE1.COLUMN1 = TABLE3.COLUMN1

 

LEFT OUTER JOIN TABLE4
ON TABLE1.COLUMN1 = TABLE4.COLUMN1

 

LEFT OUTER JOIN TABLE5
ON TABLE1.COLUMN1 = TABLE5.COLUMN1

 

  • Hi sivashankr ,

     

    If there are blank values in visuals, they will be hided by default. It is by design for Power BI. So, after creating relationships, you need to turn on the option "Show items with no data". 

    For you situation, you could turn it on and re-publish the reports to users. Then the report will working fine. Users don't need to turn on again by themselves.

     

     

    change the cross filter direction from both to single

     

    Show items with no data

     

     

10 Replies