Can you chart a series with GetPivotData (or something like?)

Grizlore

Active Member
Joined
Aug 22, 2006
Messages
259
Can you chart with GetPivotData (or something like?)

I have a sheet with numerous charts, plotting data from a pivot.
The chart are using series values like this
Code:
 =ScorecardData!$B$8:$N$8
This is fine, however when the pivot changes, I lose the references and everything gets mixed up.

Is there a way to use a sort of names range to chart from a pivot? So the chart plots the data in relation to the name?
Getting a single number works with this, but I can’t work out how to plot a series
Code:
 =GETPIVOTDATA("[Measures].[Attendance]",LastMonthData!$A$7)

Any help please?
 

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
No, I have one large pivot table containing dozens of values, spanning 13mths and off that dozens of charts plotting individual items.

Once I use a pivot chart it'll change the pivot
 
Upvote 0
Have another pivot off the data, just for that chart.
 
Upvote 0
But I would need several dozen of pivots, one for each chart. Which would be a bigger nightmare.

Do all charts series need to be reference like this?

Code:
=LastMonthData!$A$13:$C$13

Surely there much be a way to use a lookup?
 
Upvote 0
Could you do it with INDEX and MATCH? Use GetPivotData for the find argument in MATCH, and pull the whole row in INDEX?
 
Upvote 0
Could you do it with INDEX and MATCH? Use GetPivotData for the find argument in MATCH, and pull the whole row in INDEX?

Ummm... I don't know.

When adding a series into a chart, it doenst seem to like formulae. Can it?

I need to pick up a 13 month range (obviously 13 numbers) and chart it, so I'll have to look into how I could do that with your suggestion
 
Upvote 0
Can you retrieve all 13 values by using 13 cells with GETPIVOTDATA? So, you make a table for charting from?
 
Upvote 0
Can you retrieve all 13 values by using 13 cells with GETPIVOTDATA? So, you make a table for charting from?

I was thinking that might have to be the solution, although I was going to use VLOOKUP, as I am not sure how to capture each of the 13 values with GetPivotData.

VLOOKUP is easiest for this (? no?)

This does seem an un-elegant solution though, having to create another table off of a pivot table.

I would have thought that this was a common problem, and would have an elegant solution
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,812
Members
449,048
Latest member
greyangel23

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