Power Query the best way?

AndyH100

New Member
Joined
Jun 30, 2020
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
Hi, I'm trying to combine several lines of data into one row where the data to combine is for the same student and if there is a 1 anywhere in the subsequent columns a one is recorded in that column.
The raw data:
1594114907857.png

I have tried to combine the data using Power Query -
1594115041065.png

I have had a look at a couple of tutorials and I can't work out how to get the following for example:
David May 0, 0, 0 etc.
Bruce Bay 1, 1, 0 etc.
Penny Top 1, 0, 0 etc.
Dave Trill 0, 0, 0 etc.

How do you merge/combine across multiple columns or am I tackling this the wrong way?

Thanks,

Andy.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Start from Group by

Click advanced
1. New column name: …ADD1 operation: Sum Column …ADD1
2. click add aggregation
repeat step 1,2 but change to the next column
 
Upvote 0
Thanks Bo_Ry - I have over 150 columns - there isn't a maximum number of columns you can add is there?
 
Upvote 0
Start from Source,
1. Select column Name > right-click > Unpivot other columns
2. Select column Attribute > Ribbon Transfrom > Pivot column Values column > Select Values
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,040
Members
449,063
Latest member
ak94

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top