- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Here is the answer:
2 Tricks to Create Unique Combinations From Multiple Columns – Power Query #7 - YouTube
Super easy actually...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@I_LOVE_POWER_BI , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@I_LOVE_POWER_BI , Create a table using a list or Enter data and append it to your existing Table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

That didn't work - because it add only null values in all other columns.
So here is more concrete what I want:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Here is the answer:
2 Tricks to Create Unique Combinations From Multiple Columns – Power Query #7 - YouTube
Super easy actually...

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
02-02-2024 08:46 AM | |||
01-23-2024 09:15 AM | |||
11-25-2022 11:42 AM | |||
07-12-2024 05:14 AM | |||
08-07-2023 12:07 PM |
User | Count |
---|---|
141 | |
117 | |
80 | |
65 | |
47 |