Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

why Power bi does left join implicit in the table visual?

I have a simple table in PowerBI, where I combine a FactTable with hours and the Employee dimension.

 

ovonel_0-1638282567068.png

 

My problem now is that, I created a calculated table with a subset of the employees:

 

=SELECTCOLUMNS(

    FILTER(

        'Employee,

        LOOKUPVALUE(

            ‘Mitup'[Employee Number]

            ,’Mitup'[Employee Number]

            ,'Employee’[Employee Number]

        )

    )

    ,"Name" ,'Employee'[Employee]

    ,"Employee Number" ,'Employee'[Employee Number]

)

 

(in the model I created a relationship between SubsetEmployee and FactTable)

 

And of course; the Power BI seems to automatically do a “left join”, and I wanted a ”inner join”.

 

That is, I want to get rid of that first row that displays blanks and a very high number of hours, I want to have an “inner join”, how can I achieve this?

 

(preferably without modifying the Hours and M Hours measures…)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

Power BI will calcualte the result based on column, so you need to filter your your key column to make your result like inner join. If you don't filter your key column in your calculated table, you will get a result look like left join.

If you want to create a table by inner join, you can try summarize and in function to achieve your goal. 

Fact Table:

1.png

SubEmployee table:

3.png

Inner Join by Dax:

Table = 
SUMMARIZE (
    FILTER (
        SubsetEmployee,
        SubsetEmployee[Employee Number] IN VALUES ( 'Fact Table'[Employee Number] )
    ),
    SubsetEmployee[Employee Number],
    SubsetEmployee[Employee],
    "Hours", SUM ( 'Fact Table'[Hour] )
)

Result is as below.

3.png

Inner Join by Power Query:

1.png

For reference: Combine queries

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous 

Power BI will calcualte the result based on column, so you need to filter your your key column to make your result like inner join. If you don't filter your key column in your calculated table, you will get a result look like left join.

If you want to create a table by inner join, you can try summarize and in function to achieve your goal. 

Fact Table:

1.png

SubEmployee table:

3.png

Inner Join by Dax:

Table = 
SUMMARIZE (
    FILTER (
        SubsetEmployee,
        SubsetEmployee[Employee Number] IN VALUES ( 'Fact Table'[Employee Number] )
    ),
    SubsetEmployee[Employee Number],
    SubsetEmployee[Employee],
    "Hours", SUM ( 'Fact Table'[Hour] )
)

Result is as below.

3.png

Inner Join by Power Query:

1.png

For reference: Combine queries

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , It left or right on the fact side. If data is missing dimension it will be shown. Check why there is a blank first. Why dimension table is missing values.

 

You can add filter in measure or filter in filter pane to check for non blank value for the column in use.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.