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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Syndicate_Admin
Administrator
Administrator

Duplicating a table in Power Query and Appending the duplicates into one table

Hi Everyone,

 

I am new to the community and need some help duplicating the below tables which list all of the unique values in the "Resource Name" and "Project" columns within my dataset. The first screenshot below is a list of all 39 unique Projects. The second screenshot is a list of all 276 Resource Names. I would like to duplicate the Project list 276 times and duplicate the Resource Name list 39 times in the exact same order as it appears below and then append those duplicates together into 1 table. Does anyone know how to do this without having to create duplicate tables and manually appending each one together? Any tips will be greatly appreciated!

 

 

 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @Syndicate_Admin ,

 

Your requirement to duplicate these tables X times and then append seems a little odd.

I'm going to answer this on the assumption that your actual question was "How do I get a table that contains all unique combinations of [Project] and [Resource]?". If I've got this wrong feel free to explain further, but here's my answer to the imagined question:

 

-1- Duplicate your Unique Projects query by right-clicking on it in the Queries pane and selecting Duplicate (this is just so you get to keep the original, it's not a critical step).

 

-2- In the new query, add a new Custom Column that references your entire resource table, like this:

BA_Pete_0-1701931728219.png

 

-3- This will give you a nested resource table on every row of the project table that you can expand using the button circled below to create a crossjoined table:

BA_Pete_2-1701931892499.png

 

You should now have a table that contains all possible combinations of [Unique Project] and [Unique Resource Name], something like this:

BA_Pete_3-1701931968326.png

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Thank you! This is exactly what I was looking for. 

BA_Pete
Super User
Super User

Hi @Syndicate_Admin ,

 

Your requirement to duplicate these tables X times and then append seems a little odd.

I'm going to answer this on the assumption that your actual question was "How do I get a table that contains all unique combinations of [Project] and [Resource]?". If I've got this wrong feel free to explain further, but here's my answer to the imagined question:

 

-1- Duplicate your Unique Projects query by right-clicking on it in the Queries pane and selecting Duplicate (this is just so you get to keep the original, it's not a critical step).

 

-2- In the new query, add a new Custom Column that references your entire resource table, like this:

BA_Pete_0-1701931728219.png

 

-3- This will give you a nested resource table on every row of the project table that you can expand using the button circled below to create a crossjoined table:

BA_Pete_2-1701931892499.png

 

You should now have a table that contains all possible combinations of [Unique Project] and [Unique Resource Name], something like this:

BA_Pete_3-1701931968326.png

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




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.