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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
vinb4u2
Regular Visitor

Data format

I have table  like  below

AppidOS
APP0005WINDOWS SERVER 2012 DATA CENTER
APP0005WINDOWS SERVER 2016
APP0005WINDOWS SERVER 2019
APP0006WINDOWS SERVER 2012 R2 STANDARD
APP0006WINDOWS SERVER 2016
APP0006WINDOWS SERVER 2019
APP0006WINDOWS SERVER 2019
APP0005WINDOWS SERVER 2019

and I need to format like below .  please suggest 

App idOS
APP0005WINDOWS SERVER 2012, DATA CENTER,WINDOWS SERVER 2016,WINDOWS SERVER 2019
APP0006WINDOWS SERVER 2012 R2 STANDARD,WINDOWS SERVER 2016,WINDOWS SERVER 2019
5 REPLIES 5
amitchandak
Super User
Super User

@vinb4u2 , Please check the solution suggested by Sahir_Maharaj first.

 

I think you have two columns

Take App in visual (not summarized) with this measure can do

concatenatex(Table, Table[OS], ", ")

 

Concatenatex: https://www.youtube.com/watch?v=du2HSEzng2E&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=43

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Sahir_Maharaj
Super User
Super User

  1. To format the "OS" column with comma-separated values, select the column and click on the "Split Column" button in the "Transform" tab.

  2. In the "Split Column" dialog box, select "Custom" as the "Split type" and enter a comma "," as the delimiter.

  3. This will split the "OS" column into multiple columns with the same name.

  4. Finally, select all the new "OS" columns and click on the "Merge Columns" button in the "Transform" tab.

  5. In the "Merge Columns" dialog box, select a comma "," as the delimiter and enter "OS" as the new column name.

  6. Click "OK" to apply the changes.

This should give you the desired format.  Let me know if you might require further assistance.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ About: https://sahirmaharaj.com/about.html
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Hi Sahir,

For some reason Merge option not enabled in my power BI desktop

Sahir_Maharaj
Super User
Super User

Hello @vinb4u2,

 

  1. Load your table into Power Query Editor by selecting "Edit Queries" from the Home tab in Power BI Desktop.

  2. Select your table and click on the "Group By" button in the "Transform" tab.

  3. In the "Group By" dialog box, select "Appid" as the "Group by" column.

  4. In the "New column name" field, enter "OS" (or any name you prefer).

  5. In the "Operation" column, select "All Rows".

  6. Click "OK" to apply the changes.

  7. This will create a new table with a column for "Appid" and a column for "OS" where the values in the "OS" column are concatenated for each "Appid".


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ About: https://sahirmaharaj.com/about.html
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

vinb4u2_0-1678905340405.png

The above funtion not removing duplicates from Appid and not combining muliple OS value in single row using ',' as a seperator

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.