Hi,
Is it possible to make the data field dynamic in a "GETPIVOTDATA" formula when using power pivot?
My formula is below, I have made the some of the items dynamic with no issue, but I want to make the item "sum of 71.Heat & Light" dynamic too, as its a reference to our GL codes and i'll be repeating the formula for each one.
I have tried the formula: &["& Cell ref &"]" but it returns a #ref error. With a regular pivot table i think it can be achieved using "concenate function", but i can't get this to work either.
=GETPIVOTDATA("[Measures].[Sum of 71.Heat & Light]",'Flash Act'!$A$1,"[Date LkUp].[PdWk]","[Date LkUp].[PdWk].&["&$BX8&"]","[Site LkUp].[Code]","[Site LkUp].[Code].&["&BY$7&"]")
Any advice is greatly appreciated, pretty new to PP so may well be missing something obvious. Cheers!