Forum

Detect when a categ...
 
Notifications
Clear all

Detect when a category on a PivotChart is expanded

5 Posts
2 Users
0 Reactions
87 Views
(@pjm)
Posts: 16
Eminent Member
Topic starter
 

Hi,

I have a PivotChart that works well enough, but when a user double clicks a category to expand the detail shown I'd like to remove the categories that have not been expanded. When the chart is collapsed I'd like to then reshow those hidden categories.  Most of that I think I can achieve with VBA, but what I haven't yet achieved is finding a way of detecting changes to the PivotChart so that I can then run a macro.  

The start position is the chart shown in 'Initial Chart', if I then double click on 'management' I get the 'Current Drilled Down Chart', but what I'd like to achieve is shown in the 'Required Drilled Down Chart'.

Grateful for any ideas.

Regards

Current-Drilled-Down-Chart.JPGInitial-Chart.JPGRequired-Drilled-Down-Chart.JPG

 
Posted : 25/07/2020 11:48 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Peter,

I've moved this topic to the VBA forum as it's not something you can do with the built in tools available. What you need to do is alter the filters after the user chooses which level to drill down on.

An alternative is to have the chart in the drilled down view and then teach the users to select the level from the Slicer, thus filtering the chart.

Mynda

 
Posted : 25/07/2020 7:28 pm
(@pjm)
Posts: 16
Eminent Member
Topic starter
 

Hi Mynda,

Absolutely happy with your placing the post wherever best suits the forum.

You commented that I "..need to ... is alter the filters after the user chooses which level to drill down on" and while I know how to alter the filters, what I don't know how to do is to detect when the PivotChart has been double clicked. (is that even possible?)

Your alternative answer is possible, but due to the way the app has been setup (and the users like) I'd have quite a bit of work to do to manage the choices they see in the slicers.  Perhaps thats the only answer, but currently the relevant slicer isn't shown against the chart and the axis categories are where they want to make the selection.

Regards,

Peter

 
Posted : 26/07/2020 11:31 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Peter,

The idea is that the user doesn't double click to drill down. The chart is already drilled down and they simply select the item from the Slicer that they want to focus on.

Mynda

 
Posted : 26/07/2020 9:02 pm
(@pjm)
Posts: 16
Eminent Member
Topic starter
 

Thanks Mynda, 

 
Posted : 27/07/2020 6:43 am
Share: