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
Anonymous
Not applicable

How to group the data of the Multiple rows to a column

I have a task and trying to group the data which is in Multiple rows

 

Consider below the data in the Table

 

FileName                    Sharedwith

test.docx                      abc@123.com

test.docx                      xyz@123.com

test.dox                        123@abc.com 

test1.pptx                     abc@123.com 

test1.pptx                     zz@xyz.com 

 

and the output expected is

 

FileName                     Sharedwith

test.docx                     abc@123.com , xyz@123.com, 123@abc.com

test1.pptx                   abc@123.com, zz@xyz.com 

 

Request to help in how to group the data

Thanks in Advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

We can build a calculated column to solve this problem:

Group = CONCATENATEX(FILTER('Table','Table'[FileName]=EARLIER('Table'[FileName])),'Table'[Sharedwith],",")

Result is as below:

1.png

You can download the pbix file form this link:

https://qiuyunus-my.sharepoint.com/:u:/g/personal/tongzhou_qiuyunus_onmicrosoft_com/EbZMXeVO48lMtjVkCefJ4mcBMp81aeN2KirjD6tYFdyheg?e=ZvkNhf

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your problem or share me with your pbix file from your onedrive business.

 

Best Regards,

Rico Zhou

Anonymous
Not applicable

Hi @Anonymous 

We can build a calculated column to solve this problem:

Group = CONCATENATEX(FILTER('Table','Table'[FileName]=EARLIER('Table'[FileName])),'Table'[Sharedwith],",")

Result is as below:

1.png

You can download the pbix file form this link:

https://qiuyunus-my.sharepoint.com/:u:/g/personal/tongzhou_qiuyunus_onmicrosoft_com/EbZMXeVO48lMtjVkCefJ4mcBMp81aeN2KirjD6tYFdyheg?e=ZvkNhf

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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