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

How to combine different rows into a single row that belongs to same category ?

Hi Community,

 

Could some one please help me with the below requirement. I know how to do this in SQL using stuff function. However, with huge data i do not want to use STUFF function . I want to do this in power bi . 

 

Support i have a requirement like below : 

 

Capture.PNG

 

As the Server and serial no (first 2 columns) are same for 2 different app names and App Id's , i want the output to be like shown below. 

 

Capture.PNG

 

I usually do this in SQL using stuff function .However, i would like to do this in power bi going forward. Kindly assist. 

 

Thanks,

G Venkatesh 

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hi @Anonymous ,

you can do it like this:

 

16-05-_2021_13-10-17.png

 

App ids = CONCATENATEX(VALUES('Table'[App id]), 'Table'[App id], ". ")

app names = CONCATENATEX(VALUES('Table'[app name]), 'Table'[app name],", ")

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks for Providing the solution. I also want to provide a different method which i tried and worked. I used Summarize and created a new table . 

 

Concatenate values table =
SUMMARIZE( 'Servers', 'Servers'[Server Name],'Servers'[Serial#],
//We are grouping all Application details by Server Name //
"App ID", CONCATENATEX('Servers', 'Servers'[Application ID], ", "),
"App Name", CONCATENATEX('Servers', 'Servers'[Application Name], ", "))
PaulDBrown
Community Champion
Community Champion

You can do this by creating measures using CONCATENATEX. For example,

app name = CONCATENATEX(VALUES(Table[app name]), Table [app name], ", ")





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






FrankAT
Community Champion
Community Champion

Hi @Anonymous ,

you can do it like this:

 

16-05-_2021_13-10-17.png

 

App ids = CONCATENATEX(VALUES('Table'[App id]), 'Table'[App id], ". ")

app names = CONCATENATEX(VALUES('Table'[app name]), 'Table'[app name],", ")

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

 

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.

Top Solution Authors