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

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Bo_Ry

Board Regular
Joined
Oct 27, 2018
Messages
76
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
76
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?
 

Watch MrExcel Video

Forum statistics

Threads
1,102,145
Messages
5,484,990
Members
407,478
Latest member
wsupaul

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top