I have 2 tables, Sales and Claims (for an insurance company).
The Sales table has Policy Number in the first column. As a Sale is renewed, it keeps the same policy number, hence this can be duplicated.
The Claims table has Policy Number in the first column. One Policy can have many claims.
I am looking to create a pivot table listing all of the unique Sales Policy Numbers and various summed calculations that lie within the Policy table, PLUS (and here's the tricky bit!) I want it to include the sum of Claims per Policy Number.
Is this possible? I've searched high and low, though the lack of answer for such a fundamental question is either very hidden, or I'm just not explaining it in the right terms!
I have 3 alternative options that all have their drawbacks:
Do it in SQL (the source is originally an SQL DB) - though I'm sadly not particularly SQL proficient and it requires a number of functions that are not available in SQL
Advanced filter and various Sumifs (trying to move away from formulas tbh for speed. Woudl like this executable in a few minutes)
Create a giant table, with the Sales table, then paste the claims table below it and to the right, though put the Policy Number in the first column, then Create a PT on the giant table as theoretically the sums will all add up.
As the data for Sales runs at about 300k the giant table may be a step too far in abusing excel resources
Any thoughts?!
The Sales table has Policy Number in the first column. As a Sale is renewed, it keeps the same policy number, hence this can be duplicated.
The Claims table has Policy Number in the first column. One Policy can have many claims.
I am looking to create a pivot table listing all of the unique Sales Policy Numbers and various summed calculations that lie within the Policy table, PLUS (and here's the tricky bit!) I want it to include the sum of Claims per Policy Number.
Is this possible? I've searched high and low, though the lack of answer for such a fundamental question is either very hidden, or I'm just not explaining it in the right terms!
I have 3 alternative options that all have their drawbacks:
Do it in SQL (the source is originally an SQL DB) - though I'm sadly not particularly SQL proficient and it requires a number of functions that are not available in SQL
Advanced filter and various Sumifs (trying to move away from formulas tbh for speed. Woudl like this executable in a few minutes)
Create a giant table, with the Sales table, then paste the claims table below it and to the right, though put the Policy Number in the first column, then Create a PT on the giant table as theoretically the sums will all add up.
As the data for Sales runs at about 300k the giant table may be a step too far in abusing excel resources
Any thoughts?!