Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
by power query, I'll give an example of the tables:
Table 1
Name |
Adam |
Frank |
Thomas |
I need an M formula to add a second column that repeats all the names for each name in column 1 except itself, so it looks like this:
Name | Partner |
Adam | Frank |
Adam | Thomas |
Frank | Adam |
Frank | Thomas |
Thomas | Adam |
Thomas | Frank |
Solved! Go to Solution.
Add a custom column:
List.RemoveItems(thePreviousStepName[Name], {[Name]})
then Expand the column 'To Rows'
Add a custom column:
List.RemoveItems(thePreviousStepName[Name], {[Name]})
then Expand the column 'To Rows'
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 8 | |
| 7 |