Forum Discussion

Anthony530's avatar
Anthony530
Copper Contributor
Oct 28, 2024
Solved

GETPIVOTDATA Dynamic Referencing from Sliced Pivot Table

Hi all,   I'm using a Sliced Pivot Table to generate dynamic Charts and only realized after working on the rest of my Workbook that changing the reference week will not update the formula, leading ...
  • Riny_van_Eekelen's avatar
    Oct 29, 2024

    Anthony530 

    I mocked-up a simplified model to demonstrate a possible solution.

     

    Include the week number (sliced) in the filter area of the pivot table so that you can reference it in the GETPIVOTDATA function

    The key is in the part where you replace .[WEEK].&[42]" by .[WEEK].&[" & C3 & "]"

    See attached.

     

Resources