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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Grouped rows and extract values DISTINCT?

Hello,

 

I have a dataset where I would like to Group based on Project ID, all the distinct values for Business Activity type.

 

First, I grouped Rows, and selected "All Rows" Operation. Called Column name "MyTable".

 

Then I added a custom column:

 

= Table.AddColumn(#"Grouped Rows", "Custom", each Table.Column([MyTable], "Business Activity"))

 

Then I selected Extract Values From List, using comma as delimter:

 

And here I got sometimes the same Business Acitivity 10 times for the same Project, since we had 10 rows with it.

 

Can I somehow make it distinct?

 

Capture.PNG

 

end of code:

 

#"Added Custom" = Table.AddColumn(#"Grouped Rows", "Custom", each Table.Column([MyTable], "Business Activity")),
#"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"MyTable"}),
#"Extracted Values" = Table.TransformColumns(#"Removed Columns", {"Custom", each Text.Combine(List.Transform(_, Text.From), ","), type text})
in
#"Extracted Values"

 

 

 

 

1 REPLY 1
AlexisOlson
Super User
Super User

Try replacing "_" with "List.Distinct(_)" or even "List.Sort(List.Distinct(_))".

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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