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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Merging rows with duplicate values

I have data in Power BI which has been obtained through an API linked to my companies LiveChat service. The data comes in as one row and each Agent and their category as a separate column. So there are 64 columns and 1 row.

I want to create a table with only 6 rows (one for each employee) and 9 columns (Name and 8 categories).

Screenshot 2023-11-01 141645.png

I have managed to Unpivot the columns, edit the names and remove null values but I'm still left with 48 rows (8 rows for every employee). I do have 9 columns, but there is only data in one cell per row.

I want the values to be as a list and no operations carried out.

I have tried following some suggestions from ChatGPT but I just seem to be going round in circles.

Screenshot 2023-11-01 141658.png

 

I'm sure there's a simple solution for this but I am relatively new to this program and I can't seem to figure this out.

 

Thanks

3 REPLIES 3
Ahmedx
Super User
Super User

The simplest solution is to look at all 8 columns and fill them in; except for the last ninth column, do not touch it.
You may first need to convert empty values to null

Screenshot_5.pngScreenshot_4.png
then filter the last column (column 9) removing null values

Ashish_Mathur
Super User
Super User

Hi,

Share data in a format that can be pasted in an MS Excel file and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
HotChilli
Community Champion
Community Champion

Power Query-> use a Group By with aggregations on each column

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.