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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.