I have two perfectly functional formulas that pull data from a pivot table. I want a formula that actually just adds those two numbers together
The working formulas I have are:
The important part here is the group called "ad grouping." You can see that the only difference between the formulas above is that they each reference a separate item within "ad grouping."
I was thinking that instead of making an unwieldy SUM to combine the two formulas above, I would create a new custom group that combines the two "ad_grouping" items. I created it. The new group is called ad_grouping2, and the new item is called NativeSlotTotal.
But I have not been successful in referencing that new grouping with a formula. Here is something I tried:
This returns #REF.
So I found this old article[url] about solving the problem in Excel 2003. I am using Excel 2016, but it seemed like the same problem. So, going with the recommendation in that article, I tried this:
The key part of the above being:
But Excel doesn't even recognize that as a formula.
Any thoughts on what I'm doing wrong?
I also tried this as an array:
But Excel doesn't seem to like the dashes there, which it treats as minus signs.
Many thanks.
The working formulas I have are:
Code:
=GETPIVOTDATA("total_imps",C87,"site_rollup","cbs","platform_type","Desktop","ad_grouping","Native Slot - Native Served","month_id",'F5 2016 new'!X1)
=GETPIVOTDATA("total_imps",C88,"site_rollup","cbs","platform_type","Desktop","ad_grouping","Native Slot - Non Native IAB Standard Served","month_id",'F5 2016 new'!X1)
The important part here is the group called "ad grouping." You can see that the only difference between the formulas above is that they each reference a separate item within "ad grouping."
I was thinking that instead of making an unwieldy SUM to combine the two formulas above, I would create a new custom group that combines the two "ad_grouping" items. I created it. The new group is called ad_grouping2, and the new item is called NativeSlotTotal.
But I have not been successful in referencing that new grouping with a formula. Here is something I tried:
Code:
=GETPIVOTDATA("total_imps",C88,"site_rollup","cbs","platform_type","Desktop","ad_grouping2","Native SlotTotal","month_id",'F5 2016 new'!X1)
This returns #REF.
So I found this old article[url] about solving the problem in Excel 2003. I am using Excel 2016, but it seemed like the same problem. So, going with the recommendation in that article, I tried this:
Code:
=GETPIVOTDATA("total_imps",C88,"site_rollup","cbs","platform_type","Desktop","ad_grouping2"["ad_grouping2";SUM],"Native SlotTotal","month_id",'F5 2016 new'!X1)
The key part of the above being:
Code:
"ad_grouping2"["ad_grouping2";SUM],"Native SlotTotal"[/]
Where I was attempting to imitate this:
[code] GETPIVOTDATA(<AnchorCell>,"<GroupName>[<GroupItem>;<FunctionName>]")
But Excel doesn't even recognize that as a formula.
Any thoughts on what I'm doing wrong?
I also tried this as an array:
Code:
=GETPIVOTDATA("total_imps",C88,"site_rollup","cbs","platform_type","Desktop","ad_grouping","{"Native Slot - Native Served","Native Slot - Non Native IAB Standard Served"},"month_id",'F5 2016 new'!X1)
Many thanks.