Pivot getting messy

theta

Well-known Member
Joined
Jun 9, 2009
Messages
960
Hi, I have a pivot where I need to getpivotdata based on 3 criteria :

1. Date (used as top axis)
2. Items code
3. Item status
4. Item supplier

The 4th item is the least important and used the least in analysis

My pivot looks like this :

----------------01/01/2010----01/02/2010----01/03/2010----01/04/2010
VALID
--RECEIVED
----SUPPLIER1
----SUPPLIER2
----SUPPLIER3
INVALID
--NO ID
----SUPPLIER1
----SUPPLIER7
--NO NAME
----SUPPLIER8
----SUPPLIER10
----SUPPLIER11

This allows me to produce all sorts of nice analysis using GETPIVOTDATA for the date / item / status.

How many valid 'x' did we have on a given date etc (ignoring supplier)

But now I need to produce another graph showing all INVALID items for a given supplier. So now I have been stuck using GETPIVOTDATA and listing all possible combo for INVALID :

(INVALID / NO ID) + (INVALID / NO NAME)

This is not ideal because a new reason code may appear meaning I would have to update all of my formulas

Any ideas, or better way of writing the GETPIVOT to summarise all data (or use an {array} for the INVALID status?)
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Can't you create another pivot table based on the original and change the order of the row fields so that supplier is first in the order?
 
Upvote 0
That's what I was thinking, isn't that a bit messy though?

Although another pivot with the order changed would ensure all my problems are solved (including new status introduced in the future etc)

No way of using arrays in GETPIVOTDATA?
 
Upvote 0
Thanks Andrew

Works better this way and is more scalable. Just copied the pivot tab so they will both be running off the same pivotcache.

Fixed all my probs...
 
Upvote 0

Forum statistics

Threads
1,224,544
Messages
6,179,430
Members
452,915
Latest member
hannnahheileen

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