I have a table with dates, and two value columns, Item 1 and Item 2.
I want to make a PivotTable with the maximum monthly value for
Item 1
and Item 2
.
This works as expected. I then want to sum those maximum values, to get a total of the maximum for Item 1 and Item 2, in the PivotTable.
I have tried used a calculated field with both:
=SUM(MAX(' Item 1'), MAX(' Item 2'))
and =SUM('Item 1','Item 2')
.
But this sums all the values from that month for Item 1
and Item 2
, not only the maximums. It is easy to do with a formula outside the PivotTable, but I would like to do this within the PivotTable so I can chart it and add new data in the future. The image below shows the results of the two calculated fields described above (in red), and a simple formula outside the PivotTable, which gives the desired result (in green).
I am using Excel Professional Plus 2016 on Windows 10. Below is example data if you want to try.
Date Item 1 Item 2
01/01/2020 2 8
02/01/2020 3 6
03/01/2020 5 4
04/01/2020 3 7
05/01/2020 5 4
06/01/2020 2 7
07/01/2020 3 4
01/02/2020 7 6
02/02/2020 3 4
03/02/2020 6 3
04/02/2020 3 7
05/02/2020 2 8
06/02/2020 5 7
07/02/2020 5 3
01/03/2020 3 8
02/03/2020 5 6
03/03/2020 7 3
04/03/2020 8 7
05/03/2020 3 4
06/03/2020 2 2
07/03/2020 5 5
01/01/20
inA1:A5
, & applyMonth
format and create PT/Consolidate,, U get single Row for JAN and so others !! But never with your data.