The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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'