Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello and thank you for reading,
I am working on a large report mostly consisting of 2 tables, though I am not sure that I would need both.
The tables look like this:
Cases Table:
Contacts Table:
I am trying to create a new table that will allow me to show something like this:
| ContactID | Case1 | Case2 | Case3 | Case4 |
| abcd | Help with x | Information on y | ||
| hijk | Help with z | Information on y | ||
| hijk | Help with x | |||
| lmno | Help with x | Help with y | Help with z | Help with f |
So far I have gotten the list of contact IDs, however I need to write another column next to this which will return a filtered version of the Case table, where the contact IDs match in both tables.
I tried to write something to do this in power query and thought it was quite simple to do, however I keep getting the following error whenever I try to open up a table returned here in the custom column.
Any advice is appreciated as I am a newbie with powerBI and have no formal training in any data analysis etc.
Thank you,
El
Solved! Go to Solution.
Hi @Anonymous ,
your formula should look like so:
Table.SelectRows(Case, (eachCaseRow) => [ContantID] = eachCaseRow[ContactID] )
So you have to define your function in there with a uniquie identifier that you use for the field you want to adress from the lookkup-rows.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hello,
Thank you for your response, unfortunately I couldnt get this to work though, I am quite new with power query and don't quite understand the syntax there although I have tried to search online. If I copy paste what you have given I get the same error
Thanks
El
Hi @Anonymous ,
your formula should look like so:
Table.SelectRows(Case, (eachCaseRow) => [ContantID] = eachCaseRow[ContactID] )
So you have to define your function in there with a uniquie identifier that you use for the field you want to adress from the lookkup-rows.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.