This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
hi,
I have a Column:
| A, B |
| B, C |
| A, C |
| D, E, F |
| D, E, G |
how can I combine the 2 rows into one row in Power Query, if they have any value common:
Expected result:
| A, B | A, B, C |
| B, C | A, B, C |
| A, C | A, B, C |
| D, E, F | D, E, F, G |
| D, E, G | D, E, F, G |
Thanks
Hi @Iamnvt
A bit more steps needed to implement, please see my pbix to catch the idea.
If you have any problem, please feel free to ask me.
Best Regards
Maggie
hi @v-juanli-msft,
thank you for your solution. I checked it, and have few comments:
1. If I change the sequence of the values in column1, this is not working anymore. Eg:
| A, B | A, B, C |
| D, E, F | D, E, F, G |
| A, C | A, B, C |
| B, C | A, B, C |
| D, E, G | D, E, F, G |
2. This solution is little bit brute force. My problem is not limited in 3 values in one column, but could extend to many values.
Is there any generalized approach to address this problem?
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 29 | |
| 29 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 71 | |
| 43 | |
| 33 | |
| 24 | |
| 23 |