Hi All,
I am trying to get a value from a pivot table using GETPIVOTDATA formula. Below is the formula.
In the above formula we have month as May and year as 2018. I want this to be replaced with cell range. In range A1 I have month updated manually and in A2 I have year updated. So in the above formula im trying to replace the month & year with range A1 & A2 but im getting #ref error. Below is the formula i modified. Can someone help me in fixing this pls.
I am trying to get a value from a pivot table using GETPIVOTDATA formula. Below is the formula.
Code:
GETPIVOTDATA("[Measures].[Distinct Count of id]",$A$3,"[Table1].[timeline]","[Table1].[timeline].&","[Table1].[approved (Month)]","[Table1].[approved (Month)].&[May]","[Table1].[approved (Year)]","[Table1].[approved (Year)].&[2018]")
In the above formula we have month as May and year as 2018. I want this to be replaced with cell range. In range A1 I have month updated manually and in A2 I have year updated. So in the above formula im trying to replace the month & year with range A1 & A2 but im getting #ref error. Below is the formula i modified. Can someone help me in fixing this pls.
Code:
GETPIVOTDATA("[Measures].[Distinct Count of id]",$A$3,"[Table1].[timeline]","[Table1].[timeline].&","[Table1].[approved (Month)]","[Table1].[approved (Month)].&[A1]","[Table1].[approved (Year)]","[Table1].[approved (Year)].&[A2]")