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
I_LOVE_POWER_BI
Helper III
Helper III

Power Query: Add rows based on values in a list (based on combinations

Hi Power BI gurus!

 

My question, not sure if that is actually possible to realize:

 

I have a query with materials and another query with locations. Now what I want to do is to insert a list on row level in my base query material, which contains the information of each location from the other query. And by opening the list I want it to create new rows for all available combinations between material and locations.

 

In other words, I am too lazy to write down all possible combinations, so I want Power BI to add each combination based on my base query (material). So that in the end I have duplicated rows for each material but a unique material-location combination per row too.

 

Hope you got my point folks.

 

Thanks!

1 ACCEPTED SOLUTION
7 REPLIES 7
amitchandak
Super User
Super User

@I_LOVE_POWER_BI , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

This is less about the actual use case but more a general question whether it is possible at all or not to create new rows based on invoking a list into each row....

@I_LOVE_POWER_BI , Create a table using a list or Enter data and append it to your existing Table

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

That didn't work - because it add only null values in all other columns.

 

So here is more concrete what I want:

 

I_LOVE_POWER_BI_0-1629709975876.png

 

@I_LOVE_POWER_BI , Expand the list into rows. Either you should see an option on column two right angle(opposite direction) or on the right click.

 

refer if needed

https://docs.microsoft.com/en-us/powerquery-m/table-transformrows

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

The problem is, I don't know how to get to step 2 in my picture above. How to add such a column that includes to list???

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.