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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
gambleave
Helper II
Helper II

Concatenating text based on criteria

I would be grateful for advice. As depicted, I have a data table containing service interaction records that is linked to an index table containing employee names and their practice.

 

Screenshot 2023-03-02 203203.jpg

Screenshot 2023-03-02 203222.jpg

 

 

 

 

 

 

 

Currently I use a simple measure to concatenate the names of clients (“Contact Name”) who have received high touch (“HT”) service:

 

HT Recipients
=calculate(CONCATENATEX(values(ServiceDetails[Contact Name]), ServiceDetails[Contact Name],”, “), ServiceDetail[Service Type]=”HT”)

 

What I would like to do is to create a matrix/pivot table where I can select a particular employee, and for each Client (in rows), display the concatenated names of contacts for which other employees under the same Practice have service interactions – but the particular employee does not.

 

Even better (not sure if this part is actually possible), it would be great if the names appeared in descending order of how many interaction records exist for the contact. I have an existing measure for this count:

 

Distinct HT =calculate(DISTINCTCOUNT(ServiceDetails[Activity ID]), ServiceDetails[Service Type]=”HT”)

 

I would greatly appreciate some advice on how to approach this problem.

2 REPLIES 2
bolfri
Solution Sage
Solution Sage

Can you share a sample data and expected results eg in excel? It will be easier.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Afraid the data is in a corporate network and can't be shared. I made the sample screens through VDI on my Mac as I don't have PowerBI at home. 

Helpful resources

Announcements
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.