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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Mohd_ilyas
Regular Visitor

Multiple database Query

If I have Three different system and three different databases how can I Import data into power bi and if I have two tables for eg: USAtable from system 1 and the other one is UKtable from system 2  and both table have same customer details and I want to get outstanding balance by calculating data from system 1 and system 2 ?

1 REPLY 1
mahoneypat
Microsoft Employee
Microsoft Employee

If you have tables with the same columns, you can just append them in the query editor (perhaps adding a custom column on each first with the same column name to identify the source).  You can then disable load on the source table and only load the appended tables.

 

For multiple databases, if you are making the same query to each, you can make a function that takes the database name as an input parameter.  You can then make a small table of the database names and then invoke that custom function using the name column as the input parameter.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.