Rainbow_P
New Member
- Joined
- May 6, 2022
- Messages
- 25
- Office Version
- 365
- Platform
- Windows
Good day!
Can you please help me with a reference question?
A workbook has 2 sheets. Sheet1 is a pivot table.
In sheet2, I use GETPIVOTDATA to return some values from the pivot table in Sheet1.
In sheet2, cells C2 and D2, there are direct formulas when I just clicked the cells (I want to take) from the pivot table in Sheet1.
Now I want to alter the formulas to make it reference the cells in Sheet2 for Customer ID and Staff.
For example in C2, I tried to change the formula to:
But it doesn't work.
What's the right way to do so? Thank you.
Can you please help me with a reference question?
A workbook has 2 sheets. Sheet1 is a pivot table.
In sheet2, I use GETPIVOTDATA to return some values from the pivot table in Sheet1.
In sheet2, cells C2 and D2, there are direct formulas when I just clicked the cells (I want to take) from the pivot table in Sheet1.
C2: GETPIVOTDATA("[Measures].[Car count]",Sheet1!$A$6,"[Customer].[Customer ID]","[Customer].[Customer ID].&[ABC Co., Ltd]","[Customer].[Staff]","[Customer].[Staff].&[David]")
D2: GETPIVOTDATA("[Measures].[Car count]",Sheet1!$A$6,"[Customer].[Customer ID]","[Customer].[Customer ID].&[ABC Co., Ltd]","[Product].[Item]","[Product].[Item].&[Fruit]","[Customer].[Staff]","[Customer].[Staff].&[David]")
Now I want to alter the formulas to make it reference the cells in Sheet2 for Customer ID and Staff.
For example in C2, I tried to change the formula to:
GETPIVOTDATA("[Measures].[Vessels Sold To (Distinct)]",Sheet1!$A$6,"[Customer].[Customer Sub Account]",A2,"[Customer].[Account Manager Name]",B2)
But it doesn't work.
What's the right way to do so? Thank you.