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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ahsanlhcgov
Helper III
Helper III

Multi Table Report

Hi, 

 

I am having trouble trying to find a solution for the following issue,

 

I have 4 tables named in my SQL database

1- Company (primary key Company_ID)

2- Opportunity(Company_ID as a reference to Company Table)

3- Lead(Company_ID as a reference to Company Table)

4- Incidents(Company_ID as a reference to Company Table)

 

I would like to build a power BI dashboard on all 4 tables joined as 1 where I select the company_ID and it shows me all the Opportunities, Leads and Incidents for that company. Please, can someone advise if this is possible to do in Power BI query editor or any other way to do this?

 

 

1 ACCEPTED SOLUTION
drewlewis15
Solution Specialist
Solution Specialist

Is having these four tables combined into one table necessary?  If not, you could simply join all four tables on Company ID, and then add three tables into the PowerBI Report page and add a slicer for Company ID.  It would look something like this:

 

 

2017-11-28_8-29-54.jpg

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @ahsanlhcgov,

 

>>Please, can someone advise if this is possible to do in Power BI query editor or any other way to do this?

For merge tables, you can try to use Table.Join function.

Power Query Join tables

 

In my opinion, I'm not so recommend you to merge all tables to one, it will generate lots of duplicate records.(affect performance)

 

You can try to modify all 'cross filter direction' options to 'both', then use Company[Company_ID], Opportunity columns, Lead columns, Incidents columns to create a table visual and use Company[Company_ID] to create a slicer visual as filter.

 

Notice: please use company table's 'company id' as the key column, drag related detail columns from other tables.(not need 'company id' columns from other table)

 

Regards,

Xiaoxin Sheng

drewlewis15
Solution Specialist
Solution Specialist

Is having these four tables combined into one table necessary?  If not, you could simply join all four tables on Company ID, and then add three tables into the PowerBI Report page and add a slicer for Company ID.  It would look something like this:

 

 

2017-11-28_8-29-54.jpg

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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