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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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/

 

 

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/

 

 

Thank you!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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