Archive of Mr Excel Message Board
Basically I've built a pivot table and used the wizard. I've put my Variable where I want and then used the page option. This builds the pivot table fine and then I build a graph from the data in the pivot table. (The graph is all data). Then if I select the item from the "dropdown" box it rebuilds the table with the vaules that only belong to the item selected in the drop down box. This works fine and the graph changes to reflect only these items. However the graph still contains "blank series" which are shown in the legend.
Is there a way, without going into the graph and changeing/removing series, to just have the series shown in the pivot table.
Note: The choices in the drop down box have different number of variable.
I hope I haven't confused you all.
Thanks


By the way, what ever happened on your earlier
posting about rows that disappeared when you
changed your PAGE field?

The answer is yes, I have selected the entire table before i created the table. But what I think might mess the dynamically changing series is that I've split up the graph.
Let me explain:-Basically I created the pivot table with,
Rows of "Date-Hour"
Cols of "Group"
Page of "Band"
And filled with sum of values.
I then created a graph of the entire Pivot table.
I need to split the data so I would have one graph for each week (my data has 5 weeks of "date-hour" data) So I tried pointing the graph at the relevent week, but it didn't like the pivot table. So I build a macro that changed the series pointers and it gave me the first weeks graph. & the i did the same for the second week. & so on.
But this way looses the dynamically changing series. Have I done the wrong thing if i need to select parts of pivot tables?
Is it possible to write a bit of VBA that take the Legend and hides the "blank" series? I know its not perfect but its an answer.
By the way I sorted out my problem with "rows disappearing, thanks for asking. It was a box I had'nt seen!! Typical.
Thanks, and I hope its clear!!!


I've added a new variable "week" (values 1-5) to my initial data, So now I've got a pivot table with "week" & "date-hour" as rows, "group" as columns & "band" as page.( and my data summed)
So can I build dynamically changing graphs for each week?
Thanks
Ben


Could I have 5 seperate graphs (1 for each week?)
Ben

