Charting from a Pivot table, losing series values. (named range possible?)

Grizlore

Active Member
Joined
Aug 22, 2006
Messages
259
Hi All,

Is there a way to use a sort of names range, to chart from a pivot?

I currently have an ‘analysis’ worksheet which displays two pieces of data from two pivot tables, which are on different worksheets.

The ‘analysis’ worksheet displays the last months figure, and charts the history

To get the last month’s figure of any given metric, I use something like...

Code:
 =GETPIVOTDATA("[Measures].[Attendance]",LastMonthData!$A$7)

This works fine, as however the pivot table changes, the GETPIVOTDATA function finds it, wherever it is located in the pivot table.

When I come to chart data, I have a problem.

This is because the data for the chart is in a pivot table, but I link to it in a “normal” way, and however the pivot table changes, the data is lost.

The series value for the chart is like this...

Code:
 =ScorecardData!$B$8:$N$8

As you will see this is an absolute reference, and if the pivot table is changed, then I lose my data.

Is there a way to use a sort of names range, which finds then name (eg Attendance) and charts the 13 number sitting to the right of it, in a similar way to GETPIVOTDATA?


Any help would be greatly appreciated.

Regards
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
anyone know if you can link to a pivot chart, from a pivot table with and linked series, which won't disconnect when you sort the table
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,769
Members
452,941
Latest member
Greayliams

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