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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ukeasyproj
Helper II
Helper II

how to aggregate on a column that contains combination of values

What I want to do is aggregate on a person's name and show all their projects:

 

Name | Project ID

--------

John   | 1

--------

Mike   | 2

--------

Mike, John | 3

--------

David | 4

 

so

 

for John, it should show project 1 as well as 3

For Mike, it shoulld show project 2 as well as 3

 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

hi @ukeasyproj

 

please follow this steps

 

1. your original data

 

Original dataOriginal data

2. in Edit Query Split column

 

By delimeter , (Comma)By delimeter , (Comma)

3. Unpivot Columns (Selecting ProjectID)

 

UnPivot ColumnsUnPivot Columns

 

4. Remove Attribute Column....Close & Apply

 

4.png

 

5. Create a measure to concatenate the projectid column

 

5.png




Lima - Peru

View solution in original post

2 REPLIES 2
Vvelarde
Community Champion
Community Champion

hi @ukeasyproj

 

please follow this steps

 

1. your original data

 

Original dataOriginal data

2. in Edit Query Split column

 

By delimeter , (Comma)By delimeter , (Comma)

3. Unpivot Columns (Selecting ProjectID)

 

UnPivot ColumnsUnPivot Columns

 

4. Remove Attribute Column....Close & Apply

 

4.png

 

5. Create a measure to concatenate the projectid column

 

5.png




Lima - Peru
Sean
Community Champion
Community Champion

You can do this in The Query Editor - just follow the Steps in the picture...

In your case your ProjectID column should be the Unique Row Identifier

And your Name column the Slicer column

 

Slicer Values.png

 

I believe there was another solution listed here but I have never tried the approach...

http://community.powerbi.com/t5/Desktop/implementing-where-on-slicer/td-p/43446

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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