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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
IanDavies
Helper III
Helper III

Merging multiple tables (more than two) to create a single list of assets

I have data from a number of sources about computers in the business, not all sources havr all computers (ergo not all computers are in all sources)

I need to merge the data so that overlapping data is lnked to existing resource and new ones create a new record.

 

Lets look at example data - my apologies for the horrible tables but the editor kept re-formatting everything I did

Table1

NameLast SeenOSFirewall On
Computer14/12/2024

Windows

Yes
Computer24/12/2024WindowsYes
Computer33/5/2020Linuxno
Computer45/12/2024MacOSno

 

Table 2

NameLast UserMDM
Computer1IanNo
Computer2MaryYes
Computer5FredYes
Computer7StevenYes


Table 3

NameLast SeenSoftware X InstalledSetting Y configured
Computer14/12/2024yesyes
Computer24/12/2024yesno
Computer54/12/2024nono
Computer64/12/2024yesyes

 

Ultimately what I need to end up with is somthing like this:

NameLast SeenOSFirewall OnLast UserMDMSoftware X InstalledSetting Y configured
Computer14/12/2024WindowsYesIanNoYesYes
Computer24/12/2024WindowsYesMaryYesNoNo
Computer33/5/2020LinuxN o    
Computer45/12/2024MacOSNo Yes  
Computer54/12/2024  Fred NoNo
Computer64/12/2024    YesYes
Computer7   StevenYes  

 

The final table would be quite big, there are more thna three tables in the original source and I am led to believe that PowerBI does not like big, wide tables, but with no single list of all assets, I think that I need to somehow build that list first and then maybe work to link data accordingly to build out a better star design.

I looked at Table.Combine, but it just appends the tables and I end up with multiple rows (in this example for things lijke Compurter1 and Computer2 that exists in both tables). I dont know how to then merge those records.

I have some limited experience editing M created in steps but if you post code without an explanation on how to implement that on its own I would be lost.

 

I would love to hear your suggestions on how I can model this data to ensure I have all detail on all assets available without duplicate records. I would be producing PBI dashboards later to show things like how many or in MDM, how many have Software X installed.

Ian

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @IanDavies ,

I create three tables as you mentioned.

vyilongmsft_0-1733454099417.png

Then I think you need to make relationships among them.

vyilongmsft_1-1733454344253.png

Next you can go to Power Query and use Append.

vyilongmsft_2-1733454439672.png

vyilongmsft_3-1733454468533.png

vyilongmsft_4-1733454537068.png

You can remove duplicates and use Merge Queries.

vyilongmsft_5-1733454644268.pngvyilongmsft_6-1733454710220.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @IanDavies ,

I create three tables as you mentioned.

vyilongmsft_0-1733454099417.png

Then I think you need to make relationships among them.

vyilongmsft_1-1733454344253.png

Next you can go to Power Query and use Append.

vyilongmsft_2-1733454439672.png

vyilongmsft_3-1733454468533.png

vyilongmsft_4-1733454537068.png

You can remove duplicates and use Merge Queries.

vyilongmsft_5-1733454644268.pngvyilongmsft_6-1733454710220.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Tahbnk you, I hadnt considerd doing the append followed by the merge ... that is more elegant than my solution.

Smalfly
Responsive Resident
Responsive Resident

Hi @IanDavies ,

 

what you are looking for is 'Merge queries':

 

Smalfly_0-1733403483485.png

Clicking it, will open a pop-up window that lets you select the queries (tables) you want to merge.

 

Let's select table1 and table2 as an example. After having selected the 2 tables using the dropdown box, you need to first choose the column to join the tables on (Name in your example) and then select the join kind 'Full Outer (all rows from both)':

Smalfly_3-1733403829952.png

 

Then you need to repeat that for the remaining tables.

Thanks for this, I tried that and I ended up with three different name columns rather than a single column with all the names in it. Like this:

 

Name

Table2.Name

Table3.Name

 

Am I to assume at this point, that having merged the three tables as you suggest, the only recourse is to somehow build a single name column to identify the (missing) assets that have been imported from tables 2 and 3?

Ian

Smalfly
Responsive Resident
Responsive Resident

Yes indeed. Or you create such a column before merging the tables, as suggested by @Anonymous .

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors