Help with GETPIVOTDATA drag down formula

ExcelAtEverything

Active Member
Joined
Jan 30, 2021
Messages
351
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I'm trying to use GETPIVOTDATA to fill in the "GS$" column shown below, with info pulled from the Pivot Table next to it (but on a different sheet in my WB). I'm running into the common problem where I grab the 1st cell no problem, but then when I drag the cell with my GETPIVOTDATA formula down, it continues grabbing the sales number for the first Org # (Org 237), instead of next grabbing the info for Org 839, etc.

=GETPIVOTDATA("[Measures].[Sum of Line Item Total]",'Yest GS'!$B$3,"[Monthly Orders Reports].[Date]","[Monthly Orders Reports].[Date].&[2021-03-27T00:00:00]","[Monthly Orders Reports].[Org #]","[Monthly Orders Reports].[Org #].&[237]")
***"Monthy Orders Reports" by the way is just the name of the data folder where all of my data is.
I tried replacing the last part :
"[Monthly Orders Reports].[Org #].&[237]"
with this:
E6 (E6 is the cell below which contains the number "237"
but it's giving me a #REF error.

Could someone please help me figure this out?

Green/white table is on "Proj" tab: Black/white Pivot Table is on "Yest GS" tab:
1616917460051.png
1616917536462.png
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Is Monthly Orders Reports the name of the left table?
 
Last edited:
Upvote 0
And: [@Org #]
Or: [@[Org '#]]
 
Last edited:
Upvote 0
Is Monthly Orders Reports the name of the left table?
No, it's the name of the folder on my desktop which is holding all of the data sheets for these Pivot Tables. I'm pretty new to Pivot Tables, so I'm not sure why that's included in this GETPIVOTDATA formula. I just typed "=" and clicked on the needed cell in order to build that formula.
 
Upvote 0

=GETPIVOTDATA("[Measures].[Sum of Line Item Total]",'Yest GS'!$B$3,"[Monthly Orders Reports].[Date]","[Monthly Orders Reports].[Date].&[2021-03-27T00:00:00]","[Monthly Orders Reports].[Org #]",[@Org #])

1616922645552.png
 
Upvote 0
The name of the folder uses Excel when you have the table in an other workbook.
But in your case the tables are in the same workbook on two different sheets.
You can find the name of your left table with: DESIGN - PROPERTIES - TABLENAME
And for your right table: ANALYZE - PIVOT TABLE - NAME OF PIVOT TABLE
 
Upvote 0
Have you tried this: [@[Org '#]]
Maybe the title ORG # isn't correct. The sign # is in my example replaced with '#
 
Upvote 0
The name of the folder uses Excel when you have the table in an other workbook.
But in your case the tables are in the same workbook on two different sheets.
You can find the name of your left table with: DESIGN - PROPERTIES - TABLENAME
And for your right table: ANALYZE - PIVOT TABLE - NAME OF PIVOT TABLE
Left table: Yesterday
Right Table: PivotTable3
 
Upvote 0

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top