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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
krypto77
Regular Visitor

Execute PowerBI Script against two DB at Once

Fairly new users here.

 

I have a script that pulls data from two DB.  

 

PowerBI is connected to both DB but as seperate Data Source.   How do I make it a single data source so the scripts can execute and pull data from both DB at once or is there a difference approach I should take? Anyting I've attempted so far hasn't worked. 

8 REPLIES 8
krypto77
Regular Visitor

Merge

While you can technically do that in Power Query it is not a recommended approach. It will be better if you load both data sources as is into Power BI and join them via the data model there.

Interesting, never thought of doing that. I will see how that can be done. 

lbendlin
Super User
Super User

Power Query runs the queries in parallel automatically unless you explicitly tell it not to (and will do so in the service no matter what you say). No need to make it a single script.

I tired but no luck.  Does it matter that the DBs are two different data source? 

you mean you want to combine the results from these two sources?  Merge or append?

Correct, the scripts point to two DBs and I want the results to pull from both since each scripts pulls data from various tables. 

Merge or append?

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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