I have a pivot chart that was created from a pivot table. there are two columns, 2015 and 2016. The chart has weeks 1 through 52. I need to create a chart that will populate as data is added to week 2016. Right now the chart shows large values for 2015 and of course small values for 2016 because We are currently in 2016. I need to be able to display YTD values..which will only show values up to the current week that we are viewing.. If I were to enter a regular function if function, it would basically say... If value in 2016 is blank or 0 do not include the value from 2015 in the totals.. I'm sure this can be done in vba coding, but can't determine how to do it so that the chart updates as the pivot table updates.
I hope I am making since to you. I created a macro that creates the pivot chart... I just need to know how to do the rest. Here is the Macro...When creating it I randomly removed weeks 50, 51,52 just to see how excel references them.
Bookmarks