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

Conditionally Rolling up values from a column based on another column (Non-M approach)

I have two tables (below) related by Group ID. Table one is a list of users belonging to groups. Their roles are indicated by the [Role] column. I would like to take and roll up the values from [Person Name] by [GroupID], also filtering by [Role]="GH" . The second table would be the desired result. I can do this in M by filtering Table, joining it to 2, and Grouping By. HOWEVER, I also need a column that rollus up [Role]=RWs and duplicating the large table to join it twice doesn't make sense. I imagine there is a way to do this both in DAX (ConcatenateX) and more efficiently in M. TIA

TABLE 1

GroupID  |  Role  |   Person Name

 

340                GH              Joe Smith

340                GH            Tim Grogan

340                RW           Jenny Slate

240                GH             Barbara Wexham

240                 GH               Jimmy Neutron

 

 

 

TABLE 2

GroupID  | Person Name

340                Joe Smith;Tim Grogan; Barbara Wexham

240                Jimmy Neutron

 

1 REPLY 1
Ahmedx
Super User
Super User

Screen Capture #263.png

Sample PBIX file attached
https://dropmefiles.com/bgrhc

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.