Hi all
Done a bit of Googling and looked at things like CUBEVALUE etc but haven't quite worked out how to get GETPIVOTDATA working when some of the values come from cell references.
I've had to de-personalise this but basically I have:
=GETPIVOTDATA("[Measures].[Vol]",PivotTableName,"[TableResults].[ResultScored]","[TableResults].[ResultScored].&[Gold]","[TableDates].[Year]","[TableDates].[Year].&[Y2017]")
Which returns all the Gold results from Y2017. All I want to change is that the [Gold] and [Y2017] are based on values from cells rather than hard-coded. So that when filters are applied the formula will dynamically update if it needs to look at Silver in Y2016 for example.
Hope that makes sense - I'm sure there must be an obvious change to the syntax but I can't get it to work!
Thanks
Done a bit of Googling and looked at things like CUBEVALUE etc but haven't quite worked out how to get GETPIVOTDATA working when some of the values come from cell references.
I've had to de-personalise this but basically I have:
=GETPIVOTDATA("[Measures].[Vol]",PivotTableName,"[TableResults].[ResultScored]","[TableResults].[ResultScored].&[Gold]","[TableDates].[Year]","[TableDates].[Year].&[Y2017]")
Which returns all the Gold results from Y2017. All I want to change is that the [Gold] and [Y2017] are based on values from cells rather than hard-coded. So that when filters are applied the formula will dynamically update if it needs to look at Silver in Y2016 for example.
Hope that makes sense - I'm sure there must be an obvious change to the syntax but I can't get it to work!
Thanks