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
Anonymous
Not applicable

Full Join

Hello Everyone,

I wanted to know if it's possible to perform full outer join on two tables belonging to different databases in Power BI using SQl query only.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

 

In my opinion, I'd like to suggest you use external methods to link two databases at databse side(e.g. dataview, link server).

After these steps, you can simply use advanced sql query to achieve this requirement.

 

Reference links:

CREATE EXTERNAL TABLE AS SELECT (Transact-SQL)

Create Linked Servers (SQL Server Database Engine)

 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

Hmm. That might be possible since you can plug in any SQL code that you want using the Advanced options. But, the database connection stuff might get in the way. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi @Greg_Deckler

Thanks for the reply. Below is a screenshot of two tables which belongs from different databases(AD and SFB). Now I need to perform joins on them using SQL query. I can't do merge queries as it won't fulfill my desired action. Any solution to solve this problem?

 

sfbad.PNG

 

Thanks and Regards,

Piyush

 

 

 

 

 

Anonymous
Not applicable

Hi @Anonymous,

 

In my opinion, I'd like to suggest you use external methods to link two databases at databse side(e.g. dataview, link server).

After these steps, you can simply use advanced sql query to achieve this requirement.

 

Reference links:

CREATE EXTERNAL TABLE AS SELECT (Transact-SQL)

Create Linked Servers (SQL Server Database Engine)

 

Regards,

Xiaoxin Sheng

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.