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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Super User
Super User

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors