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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
JohnD78
New Member

Merge or group rows by ID

Appologies, I know what I want but don't know how to search for the solution as I don't know what terminology to use.

 

I would like to merge the contents of six rows into one.  A sample of the data is below to help you visualise.  Each Business has a "score" for each "condition".

Pic1.png

 

I used power Bi to create a conditional column for each "Condition" and put the corresponding score in for each.  See image below.  The plan was to then merge rows by Assessment ID and fill in the blanks but I don't know what terminology to use, group by was greyed out as you cant use that for data.

Pic2.png

 

Now I would like to try and merge the rows with the same "Assessment ID" into a single row, something like the image below, although in all honesty the Condition column isn't needed like it is on the image below.

 

Pic3.png

Is what I'm looking to do possible in power Bi?, or excel?

 

Thanks in advance.

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Load your data as is into Power BI. Let the Matrix visual do the pivoting.

View solution in original post

2 REPLIES 2
JohnD78
New Member

Thanks @Ibendlin that worked a treat, after a bit of work wrking out that it should be values instead of columns

lbendlin
Super User
Super User

Load your data as is into Power BI. Let the Matrix visual do the pivoting.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors