This field must be visible in the pivot table.
Get pivot table subtotal grouped date
To get the subtotal for a value field in a pivot table that has been grouped by date, you can use the GETPIVOTDATA function and a number that corresponds to the date grouping. In the example shown, the formula in I7 is: =GETPIVOTDATA("Sales",$B$4,"date",3) Although you can reference any cell in a pivot table with a normal reference (i.e. E10) the GETPIVOTDATA will continue to return correct values even when the pivot table changes.