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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mtrevisiol
Helper V
Helper V

Create column with list of values from another column

Hi everyone,

I've got a table like this:

 

mtrevisiol_0-1697720010312.png

 

 

I would like to create a third column containing the list of activities (second column) performed by each supplier (first columns). The ideal result is:

 

mtrevisiol_1-1697720061065.png

 

How can I do it through a calculated column / dax formula?

here is the link to the PBIX file: https://www.dropbox.com/scl/fi/unfh6jlr97e2hnogyr7lh/Create-column-with-list-of-values-from-another-...

 

Thank you in advance.

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

This calculated column formula works

Column = CONCATENATEX(FILTER('Table','Table'[Supplier]=EARLIER('Table'[Supplier])),'Table'[Activity],"|")

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

This calculated column formula works

Column = CONCATENATEX(FILTER('Table','Table'[Supplier]=EARLIER('Table'[Supplier])),'Table'[Activity],"|")

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

It works! Many thanks

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
vicky_
Super User
Super User

List of Activities = CONCATENATEX(FILTER(ALL('Table'), 'Table'[Supplier] = SELECTEDVALUE('Table'[Supplier])), 'Table'[Activity], " | ")
 
Try adapting the above for your table.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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