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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.