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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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