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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.