Forum

Notifications
Clear all

Grand Totals on Pivot Charts

5 Posts
2 Users
0 Reactions
82 Views
(@e_m)
Posts: 6
Active Member
Topic starter
 

This tutorial was amazing: Grand Totals in Pivot Charts. However, like Justin, I want to add data (months) to my table on a regular basis, so it seems I must use a dynamic named range. Unfortunately, I am lost between these two steps. I have a data table, which I turned into a proper table and then loaded it to the data model (as I am doing other things to it.)

My data table is simple, for these purposes, only two columns: the first is a row of dates and the second is a city (London, Paris, or Rome.) The pivot table summarizes how many destinations were chosen per month/year. The final chart is supposed to be a stacked bar chart with the total trips taken above each bar.

Is what Mynda is saying is that even though the table really has many other columns in it I need two named ranges (for the two relevant columns) or one named range for the whole table?

 
Posted : 28/05/2023 2:05 pm
(@mynda)
Posts: 4761
Member Admin
 

The dynamic named ranges are for the data that feeds the chart so that as you add more months to your source data, those should feed thorugh to the CUBE formulas and you need dynamic named ranges that reference the cube formulas for the chart axis and value series.

If you're stuck, please upload your file or a sample file so we can see where you're up to and help you from there.

Mynda

 
Posted : 29/05/2023 1:44 am
(@e_m)
Posts: 6
Active Member
Topic starter
 

The goal is to have a stacked column chart by month that shows the referrals, sales, and cancelled, with the total for the month above it.

I can set up a dynamic range for the decision date and the outcome:
=Sheet1!$d$2:INDEX(Sheet1!$d$2:$d$1000,COUNTA(Sheet1!$d$2:$d$1000)) and

=Sheet1!$e$2:INDEX(Sheet1!$e$2:$e$1000,COUNTA(Sheet1!$e$2:$e$1000)) ...

but then, where do I put them?

Thanks,

 
Posted : 29/05/2023 6:31 pm
(@mynda)
Posts: 4761
Member Admin
 

The dynamic named ranges refer to the CUBE formula table, not the source data. You then use those names in your chart, as explained in the tutorial called create a regular charts from PivotTables

See file attached.

Mynda

 
Posted : 30/05/2023 2:35 am
(@e_m)
Posts: 6
Active Member
Topic starter
 

It worked perfectly! Thank you!

 
Posted : 31/05/2023 6:13 pm
Share: