Filtering a PivotTable for the MAX of a ROW field

ddander54

Board Regular
Joined
Oct 18, 2012
Messages
97
I'm wondering what the best way to approach this is....

I have an sql data table behind this pivot table that includes ppm_id, Estimate_Type and the individual row values for Total_Estimate. I used Power Query to add a conditional field to get the Est_Weight. The purpose of the pivot table was to get all the data rows for a given Estimate_Type.

So,
Initial ROM = 1,
Post-Rqmts=2
Post-Design =3
Blank =0

My thinking was that I could then look for MAX of Est_Weight to leave me 1 row per ppm_id. So now my challenge is to see if I can filter this pivot table to be just 1 row per ppm-id with the current Estimate_Type and Total_Estimate for that row.

PPM_MBR_SQL_v2_20200812.xlsx
ABCD
3ppm_idEstimate_TypeEst_WeightSum of Total_Estimate
446088Post-Design31798
5Post-Rqmts21798
646241Post-Rqmts2798
746650Initial ROM1500
846678Initial ROM151
946719Initial ROM194
1046780Post-Rqmts2191
1146781Post-Rqmts21720
1246856Initial ROM185
1346859Post-Design3201
1446971Post-Design396
1547165Initial ROM1268
1647168Initial ROM1416
1747170040
18Initial ROM1757
1947171Initial ROM1895
2047199Initial ROM12000
2147200Initial ROM1385
ptEstimates


If I need to do this with a table vs a pivot table would I be better just creating the table to begin with or use the pivot table to create the table.....assuming I can't do this with a pivot table of a pivot table....if that makes sense.

The end goal is to be able to use the ppm_id to get the do an Index/Match to add the Total Estimate to another user pivot table or excel table, so this is a supporting table to get data in the right format if that makes a difference.

Thx,
Don
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,214,951
Messages
6,122,442
Members
449,083
Latest member
Ava19

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