ExcelAtEverything
Active Member
- Joined
- Jan 30, 2021
- Messages
- 351
- Office Version
- 2019
- Platform
- Windows
Pulling my hair out trying to figure out why this just pulls a #REF error instead of actually working. This formula is supposed to show the Avg Unit Price by dividing the monthly Gross Sales (GS$) by # of total items sold so far this month (GS Monthly). I know that it's the GETPIVOTDATA part that's not working correctly, but I haven't been able to figure out how to repair it.
Could someone help me to understand why this doesn't work? I used the same formula elsewhere in the "yesterday" section of the spreadsheet (out of view from the screenshot below), and it works flawlessly. The only change is the word "Yest" is changed to Monthly for this formula, because that Pivot Table is on a different tab. For this, thegreen/white table below is called "Month_To_Date". The Pivot Table below used in this formula is located on the "Item Totals Monthly" tab in a table called "Item_Tot_Monthly".
Thanks!
=IFERROR([@[GS$]]/GETPIVOTDATA("[Measures].[Sum of Quantity]",'Item Totals Monthly'!$B$3,"[Monthly Orders Reports].[Org #]","[Monthly Orders Reports].[Org #].&[" & [@[Org '#]] & "]"),"-")
Could someone help me to understand why this doesn't work? I used the same formula elsewhere in the "yesterday" section of the spreadsheet (out of view from the screenshot below), and it works flawlessly. The only change is the word "Yest" is changed to Monthly for this formula, because that Pivot Table is on a different tab. For this, thegreen/white table below is called "Month_To_Date". The Pivot Table below used in this formula is located on the "Item Totals Monthly" tab in a table called "Item_Tot_Monthly".
Thanks!
=IFERROR([@[GS$]]/GETPIVOTDATA("[Measures].[Sum of Quantity]",'Item Totals Monthly'!$B$3,"[Monthly Orders Reports].[Org #]","[Monthly Orders Reports].[Org #].&[" & [@[Org '#]] & "]"),"-")