Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
nickz3
New Member

Need help to return multiple matchings rows and columns

Hi,

I am trying to return multiple matching rows and columns but keep receiving an error and not sure why.

 

I have two tables (please see below)

nickz3_0-1680033365226.png

 

and this is my desired outcome -

nickz3_1-1680033402184.png

I am trying to use power query to accomplish this. I first merged the two tables using the animal as the matching column.

nickz3_2-1680033468715.png

 

I then go to transform > group by > advanced and fill in the below

nickz3_3-1680033533553.png

 

After selecting ok, I create a custom column doing the following query but receive an erorr - 

nickz3_4-1680033773157.png

Could anyone please assist?

1 ACCEPTED SOLUTION
ChielFaber
Solution Supplier
Solution Supplier

I think you're looking for this. It uses te Text.Combine function. This will give you the result your looking for.

 

https://gorilla.bi/power-query/group-by-to-concatenate-text/

 

 


[Tip] Keep CALM and DAX on.
[Solved?] Hit “Accept as Solution” and leave a Kudos.
[About] Chiel | SuperUser (2023–2) |

View solution in original post

2 REPLIES 2
ChielFaber
Solution Supplier
Solution Supplier

I think you're looking for this. It uses te Text.Combine function. This will give you the result your looking for.

 

https://gorilla.bi/power-query/group-by-to-concatenate-text/

 

 


[Tip] Keep CALM and DAX on.
[Solved?] Hit “Accept as Solution” and leave a Kudos.
[About] Chiel | SuperUser (2023–2) |

Thank you!

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors