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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have a table that I need to expand possibly by using recursion in M language for Power BI report.
Each ID is contained in multiple Keys and each Key could contain multiple IDs. I need to expand this table with new columns to traverse so that for each Key I list all IDs that are related to it. This should go back and forth between ID and Key columns placing ID and Key values in new columns until traversing reaches the end, because there are so many ID and Key combinations.
This problem is too advanced for me so I need help solving it.
Solved! Go to Solution.
Please see this article with M code that does what I think you are describing.
Guest Post: Using List.Accumulate for Input/Output Genealogy – The BIccountant
Pat
Please see this article with M code that does what I think you are describing.
Guest Post: Using List.Accumulate for Input/Output Genealogy – The BIccountant
Pat
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 12 | |
| 9 | |
| 7 | |
| 6 |