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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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/

 

 

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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