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
JasonWhitehouse
New Member

How to show multiple text entries in a single column?

Hi,

 

Hoping someone can help explain how to show multiple text entires in a single column.

 

Currently I have selected 'Count (Distinct)' on '# countries' which returns the below table: 

JasonWhitehouse_2-1664875325141.png

However, in the same table I also want to see who the countries are. If I change 'Count (Distinct)' to 'Don't summarize' then I get the below view, but then each country is shown on a new row:

JasonWhitehouse_1-1664875248321.png

 

I'd like to have it where on a single row it shows that for a Company 'ie Crystal Martin', they operate in 2 countries, and those countries are show as 'Bangladesh, Sri Lanka'

 

Is this possible? Feels like an easy one but I haven't been able to find a solution.

 

Thanks in advance!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@JasonWhitehouse ,

 

Create a measure and use that

 

concatenateX(Table, Table[Country], ", ")

 

Concatenate Text- Measure, DAX Table, and Power Query Table: https://youtu.be/xAh3tz1qo24

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@JasonWhitehouse ,

 

Create a measure and use that

 

concatenateX(Table, Table[Country], ", ")

 

Concatenate Text- Measure, DAX Table, and Power Query Table: https://youtu.be/xAh3tz1qo24

Thanks so much @amitchandak!

 

The solution you provided returned the following:

 

Supplier Countries =

concatenateX(Table, Table[Country], ", ")

JasonWhitehouse_0-1664877828909.png

 

However, because I wanted distinct country values only, there was a solution in the link to the video you provided:

 

Supplier Countries =
    concatenateX(VALUES(Table[Country]), [Country], ", ")

JasonWhitehouse_1-1664877939384.png

 

Thanks once again for your help and prompt response!!

 

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.

Top Solution Authors