Power Query the best way?

AndyH100

New Member
Joined
Jun 30, 2020
Messages
5
Office Version
2016
Platform
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.
 

Some videos you may like

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Bo_Ry

Board Regular
Joined
Oct 27, 2018
Messages
108
Office Version
365
Platform
Windows
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
 

AndyH100

New Member
Joined
Jun 30, 2020
Messages
5
Office Version
2016
Platform
Windows
Thanks Bo_Ry - I have over 150 columns - there isn't a maximum number of columns you can add is there?
 

Bo_Ry

Board Regular
Joined
Oct 27, 2018
Messages
108
Office Version
365
Platform
Windows
Start from Source,
1. Select column Name > right-click > Unpivot other columns
2. Select column Attribute > Ribbon Transfrom > Pivot column Values column > Select Values
 

AndyH100

New Member
Joined
Jun 30, 2020
Messages
5
Office Version
2016
Platform
Windows
Thanks again Bo_Ry but I can't find Ribbon Transform?
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,273
Messages
5,510,288
Members
408,784
Latest member
MarcianoPL

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top