Forum Discussion

ddalton's avatar
ddalton
Icon for Resolver I rankResolver I
4 years ago
Solved

Create new table that sums rows based on matching column value

I have a table containing data with columns containing a reference (non-unique) and a type (non-unique). A representation is below:

 

TableA

ReferenceTypeValue
A123Type15521
A123Type1321
A123Type210
B321Type1450
B321Type2300
C231Type15000
C231Type2500
C231Type2550
.........

 

I would like to create a new summary table that has a row for each reference and columsn that some the values for each type, as below:

 

TableB

ReferenceType1Type2
A123584210
B321450300
C23150001050

 

I've created new Tables that simply Summarize columns from an existing Table and then created new Columns based on those (i.e., like the difference between two values etc.) but I'm not sure how to achieve this. 

9 Replies