I was told that this might be a better place to post this question than Microsoft Answers for Office.
I have a Table in which I need to use a GetPivotData function. I need to use a cell reference in that GetPivotData function. I have done this before with no problem in a normal cell range, but it seems like the syntax when using a Table screws things up. Can anyone help me out here?
The GetPivotTable function would normally look like this if not in a Table.
=GETPIVOTDATA("[Measures].[Total Blocked Dollars]",'Sheet2'!$A$4,"[Dim Prod Ctrl No].[By Prod Ctrl No]","[Dim Prod Ctrl No].[By Prod Ctrl No].&[18418]")
That formula sits in a column called "Block" in my Table. The 18418 sits in a column called "ID" in my table. So what I have tried is:
=GETPIVOTDATA("[Measures].[Total Blocked Dollars]",'--Report Blocks--'!$A$4,"[Dim Prod Ctrl No].[By Prod Ctrl No]",concatenate("[Dim Prod Ctrl No].[By Prod Ctrl No].&[",[@[ID]],"]"))
I have tried a few combinations like this but I can't seem to use a cell reference from a table (which requires the [@[field]] syntax) to work with the GetPivotData.
Any ideas?
Thanks!
- Edited by mateoc15 Thursday, May 17, 2012 3:23 PM Error made