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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jpino
New Member

How do I stop Power BI from repeating the unique ID in a table?

I am pulling data (which I have no control over) into Power BI via direct query. I know that this data has repeating values in several columns, but my unique ID is the project that one or more people are working on together. My table visualization has columns for ProjectID, KeyPersonnel, ProjectStatus, and ProjectTitle. I want to organize the table by ID and list all personnel in the second column. Unfortunately, my table is instead repeating the ID with a row for each person on the project.

 

For example:

ProjectIDKeyPersonnelProjectStatusProjectTitle
190884Smith, JohnComplete"Random Title"
190884Doe, JaneComplete"Random Title"
190892Bush, KateIn Progress "Other Title"

 

I want it to look like this:

ProjectIDKeyPersonnelProjectStatusProjectTitle
190884Smith, John; Doe, JaneComplete "Random Title"
190892Bush, KateIn Progress "Other Title"

 

I have tried switching to a matrix, with ProjectID under rows and everything else under values, but that just forced my users to click on the + symbol to view more than the first person named and it still showed repeating rows. Any ideas? I am not very familiar with DAX yet, so if that is the solution, please tell me what I need to paste into a blank query.

1 ACCEPTED SOLUTION

I found a simple solution by right-clicking on the column in my visual and choosing "new quick measure." Then I chose the calculation for text: concatenated list of values. This created a new "measure" under fields, which I've been able to customzie as needed. It now shows all my key personnel in one column with a semicolon between the names. It hasn't seemed to interfere with my direct query yet.

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

This measure works

Personnel = CONCATENATEX(VALUES(Data[KeyPersonnel]),Data[KeyPersonnel],",")

Hope this helps.

Untitled.png


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

You'll need to use the CONCATENATEX function to get the names to show in one line. Assuming that the Personnel are in a separate table from the project details, it would be something like
Key Personnel = CONCATENATEX(PersonnelTable, [Key Personnel], "; ")

I've noticed that you are using Direct Query mode, and there are some cases where you CONCATENATEX will not work, so please read the docs. 

I found a simple solution by right-clicking on the column in my visual and choosing "new quick measure." Then I chose the calculation for text: concatenated list of values. This created a new "measure" under fields, which I've been able to customzie as needed. It now shows all my key personnel in one column with a semicolon between the names. It hasn't seemed to interfere with my direct query yet.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors