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
shaya
Helper I
Helper I

Import two tables from two DB as UNION

Hello
I want to compare data between two companies,
two companies are from two DB (same server, and the same structure) .
I want to import tables as UNION.
Is it possible and how?
Thanks
(In QLICK VIEW this is possible)
1 ACCEPTED SOLUTION

7 REPLIES 7
shaya
Helper I
Helper I

Hello Tom
At first, I was looking for the MERGE in SQL, it was my mistake,
after that I found it in the help of POWER BI thanks to you.

You're welcome!



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
TomMartens
Super User
Super User

It is also possible in Power BI

Before using Append to create one table with records from both tables create a custom column "Source" with values to mark the records with their source



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
sokg
Solution Supplier
Solution Supplier

Do you know the difference  between merge and append?

did not know before, I read about MERGE, I did not find APPEND
1. Still if I write a query, I am in the DB environment of one company.
2. I also do not need the MATCHED, because I want all records, the only field that is changed is the company name.


The question is, how can I see the two tables together

And thanks again

Thank you all

Step 1

Connect to your table from company 1 and make all your transformations

 

Step 2

Connect to your table from company 2 and make all your transformations

 

Step 3

Go to Query Editor

Table Append 0.png

 

 

Step 4a

Mark one of the Queries and in the home tab

Table Append 1.png

 

Step 4b
choose the appropriate Append option
Table Append 1b.png

 

Step 4c

choose the table to append

 

Hope this helps

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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.

Top Solution Authors