ExcelAtEverything
Active Member
- Joined
- Jan 30, 2021
- Messages
- 351
- Office Version
- 2019
- Platform
- Windows
I feel like I am having a senior moment here, and could sure use some assistance.
I cannot for the life of me get this simple GETPIVOTDATA reference to become dynamic.
In the Pivot Table below, the "Primary Categories" are items like basketballs, baseballs, footballs, soccer balls, etc. As it is, each day column C shows the top category for each Org #, and column D shows the dollar amount for that top category (for each Org #). That Org # list will grow as time goes on, and the "Primary Category" will be one of maybe 15-20 different categories that is showing here.
In this formula designed to reference D5 below, the "baseballs" part is what I can't seem to make dynamic. (Assume the catg "Baseballs" is what is showing in C5).
=GETPIVOTDATA("[Measures].[Sum of Inventory Value]",'Biggest Aging Category'!$B$4,"[Current Inventory Report].[Org #]","[Current Inventory Report].[Org #].&[" &[@[Org '#]]& "]","[Current Inventory Report].[Primary Category]","[Current Inventory Report].[Primary Category].&[Baseballs]")
Additionally, when I try to grab the GETPIVOTDATA formula for "Baseballs" in C5, all I get is this: ='Biggest Aging Category'!C5 ***Biggest Aging Category being the sheet name.
I cannot for the life of me get this simple GETPIVOTDATA reference to become dynamic.
In the Pivot Table below, the "Primary Categories" are items like basketballs, baseballs, footballs, soccer balls, etc. As it is, each day column C shows the top category for each Org #, and column D shows the dollar amount for that top category (for each Org #). That Org # list will grow as time goes on, and the "Primary Category" will be one of maybe 15-20 different categories that is showing here.
In this formula designed to reference D5 below, the "baseballs" part is what I can't seem to make dynamic. (Assume the catg "Baseballs" is what is showing in C5).
=GETPIVOTDATA("[Measures].[Sum of Inventory Value]",'Biggest Aging Category'!$B$4,"[Current Inventory Report].[Org #]","[Current Inventory Report].[Org #].&[" &[@[Org '#]]& "]","[Current Inventory Report].[Primary Category]","[Current Inventory Report].[Primary Category].&[Baseballs]")
Additionally, when I try to grab the GETPIVOTDATA formula for "Baseballs" in C5, all I get is this: ='Biggest Aging Category'!C5 ***Biggest Aging Category being the sheet name.