In trying to understand the GETPIVOTDATA function and I not able to get the results I am seeking.
In the attached workbook I have a data table and a pivot table.
In cells G3:K3 are header labels.
G4:G5 are labels. In G6 there's a label and the "Year" needs to be come from H4 and I'm having a problem there also.
In H4 and H5 I'm using a Data Validation List for the Year and the Country.
In cell I6 and J6 there are GETPIVOTDATA functions where I'm trying to pull the Year from H4 and the Country from H5 then get a total.
In other words if I select a Year from H4 and a Country from H5 then only the data for that Year for that Country would appear. If I select Year(s) and all Country(s) then I'd get all the data.
Hopefully, I've made myself clear.