Forum

Notifications
Clear all

Dynamic variables in a chart

3 Posts
2 Users
0 Reactions
62 Views
(@twigsthepnodude)
Posts: 2
New Member
Topic starter
 

Hi all,

I originally thought Excel would handle this through normal function, but after trial and error and I'm thinking what I want to do will only be possible with VBA, or I'm missing something subtle.

I have a set of data (call it B) that is pulling from an original set of data (call it A). Data set A has a lot of variables that would be too overwhelming to chart, so I'm having data B rank data set A, and then charting data set B. The point of the chart is to monitor trends overtime, so I'm graphing the top five values every period over a year.

 The thing is that Excel doesn't account for the fact that the variables it is graphing are changing over time. Whatever the variable is from the first period is what it goes with for the rest of the year.

 Does anyone know how to get the chart I want, either through normal function or through VBA? I've attached a generic example.

Thank you,

 
Posted : 09/02/2022 3:18 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Twigs,

Welcome to our forum! 

Your data is in the wrong layout for the chart to work the way you want. In the attached file I've unpivoted your data and inserted a PivotTable and Pivot Chart that does what you want. 

Hope that helps.

Mynda

 
Posted : 10/02/2022 8:12 am
(@twigsthepnodude)
Posts: 2
New Member
Topic starter
 

Mynda, this was great. Thank you so much, I didn't realize the PivotChart would auto correct the layout.

 
Posted : 10/02/2022 9:26 pm
Share: