Get pivot data

KatSlif

New Member
Joined
Apr 3, 2014
Messages
28
Hello
I am using the below formula to source data a from a pivot:


=IFERROR(IF($C2="ROUTINE",GETPIVOTDATA("AllocatedNew",SLOTS!$B$52,"Date",B$6,"Years",B$5),IF($C2="URGENT",GETPIVOTDATA("AllocatedNew",SLOTS!$B$95,"Date",B$6,"Years",B$5),IF($C2="BOTH",GETPIVOTDATA("AllocatedNew",SLOTS!$B$126,"Date",B$6,"Years",B$5),IF($C2="ALL",GETPIVOTDATA("AllocatedNew",SLOTS!$B$6,"Date",B$6,"Years",B$5))))),"")

The beginning on the formula is looking at a drop down filter with 4 options:routine, urgent, both and All and it is bringing through the correct figures.

However, I have another filter where you can select a specialty and this datais available in the pivot, example:



Sum of AllocatedNew
Years
Date
2018
2018
2018
2018
SpecFinal
Apr
May
Jun
Jul
ANAE
123
456
789
123
BREAST
123
456
789
123
CARD
123
456
789
123
<tbody> </tbody>

I need the above formula to also look at the speciality dropdown filter but I am not sure where to put this code in the formula? The speciality drop down is found in cell A2

Does this make sense?
Any help appreciated
Katherine
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hello
I am using the below formula to source data a from a pivot:


=IFERROR(IF($C2="ROUTINE",GETPIVOTDATA("AllocatedNew",SLOTS!$B$52,"Date",B$6,"Years",B$5),IF($C2="URGENT",GETPIVOTDATA("AllocatedNew",SLOTS!$B$95,"Date",B$6,"Years",B$5),IF($C2="BOTH",GETPIVOTDATA("AllocatedNew",SLOTS!$B$126,"Date",B$6,"Years",B$5),IF($C2="ALL",GETPIVOTDATA("AllocatedNew",SLOTS!$B$6,"Date",B$6,"Years",B$5))))),"")

The beginning on the formula is looking at a drop down filter with 4 options:routine, urgent, both and All and it is bringing through the correct figures.

However, I have another filter where you can select a specialty and this datais available in the pivot, example:



Sum of AllocatedNewYearsDate
2018201820182018
SpecFinalAprMayJunJul
ANAE
123
456
789
123
BREAST
123
456
789
123
CARD
123
456
789
123

<tbody>
</tbody>

I need the above formula to also look at the speciality dropdown filter but I am not sure where to put this code in the formula? The speciality drop down is found in cell A2

Does this make sense?
Any help appreciated
Katherine

Hi Katherine,

It isn't clear as to what you want to achieve with the second dropdown.
Could you please give a better explaination as to what is the desired situation?
Both dropdown are linked to the same output? You fetch your data from the same pivot? Please give more information so I can provide you with a solution.

Thx,
Matt
 
Upvote 0

Forum statistics

Threads
1,214,561
Messages
6,120,225
Members
448,951
Latest member
jennlynn

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