Yodelayheewho
Member
I have a spending plan and budget items are prioritized as A, B and C. I set up three scenarios so I could see what my budget at the end of the quarter would look like if 1) I spent money on 'A', 'B' and 'C' priority items, 2) only spent money on 'A' priorities, 3) If I spent money on 'A' and 'B' priorities.
I've discovered an anomaly. In the column that sums Priorities A & B, if the current quarter only has A''s, the GETPIVOTDATA formula returns a #REF error. If I change at least one of the A's to a B, the formula sums correctly. If I change ALL of the A's to B's, the formula sums correctly. Here is the formula:
=GETPIVOTDATA("sum of Balance",Pivot!$A$3,"QTR Ends",DATE(YEAR($K$24),((INT((MONTH($K$24)-1)/3)+1)*3)+1,1)-1,"Priority","A")+GETPIVOTDATA("sum of Balance",Pivot!$A$3,"QTR Ends",DATE(YEAR($K$24),((INT((MONTH($K$24)-1)/3)+1)*3)+1,1)-1,"Priority","B")
I even switched out the 'A' and 'B' in the formula, so 'B' was in the first half of the formula and no luck. I've attached a sample file.
Thank you for your consideration!
I've discovered an anomaly. In the column that sums Priorities A & B, if the current quarter only has A''s, the GETPIVOTDATA formula returns a #REF error. If I change at least one of the A's to a B, the formula sums correctly. If I change ALL of the A's to B's, the formula sums correctly. Here is the formula:
=GETPIVOTDATA("sum of Balance",Pivot!$A$3,"QTR Ends",DATE(YEAR($K$24),((INT((MONTH($K$24)-1)/3)+1)*3)+1,1)-1,"Priority","A")+GETPIVOTDATA("sum of Balance",Pivot!$A$3,"QTR Ends",DATE(YEAR($K$24),((INT((MONTH($K$24)-1)/3)+1)*3)+1,1)-1,"Priority","B")
I even switched out the 'A' and 'B' in the formula, so 'B' was in the first half of the formula and no luck. I've attached a sample file.
Thank you for your consideration!