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
Anonymous
Not applicable

Concatenate all roles for a logonname in new column called 'all rows'

Hi, 

 

I have a table that has User Logon Name and Role. And this has a new row per role for each user. So there can be 10 rows for a single user. I could like to (for a visual) create a column that has all the roles for a single user concatenated, so one after the other. Any ideas how I would do this? 

 

I'm unsure how to get DAX to window like you can with SQL. 

 

Anna

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Also we can create a calculated column as below.

Column = CONCATENATEX(FILTER('Table','Table'[User Logon Name]=EARLIER('Table'[User Logon Name])),'Table'[Role])

Capture.PNG

 

Also you can find the pbix as attached.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Also we can create a calculated column as below.

Column = CONCATENATEX(FILTER('Table','Table'[User Logon Name]=EARLIER('Table'[User Logon Name])),'Table'[Role])

Capture.PNG

 

Also you can find the pbix as attached.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Nathaniel_C
Community Champion
Community Champion

Hi @Anonymous ,
Please try this:

 

 

MEASURE =CALCULATE(CONCATENEX(Table, Table[RoleColumn], ", "),AllEXCEPT(Table,Table[LOGONNAMEColumn]))

 

 

 
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





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

Proud to be a Super User!




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.

Top Kudoed Authors