May 29 2020 10:33 PM
May 29 2020 10:33 PM
Please see my sample workbook.
I have a few pivot charts in a worksheet.
Currently, it is hard to compare the charts as their Y-AXIS scale is different.
I would like to align the scale of all charts in the worksheet based on the maximum scale in all charts.
For example, when all departments are selected, the maximum scale is 600 (chart 1), hence the scale for chart 2 and 3 to be set as 600 too.
For example, if dept AZ is selected in slicer, the maximum scale of the 3 charts is 3.5 (chart 1), hence the scale for chart 2 and 3 to be set as 3.5 too.
Appreciate the advice.
May 30 2020 07:35 PM - edited May 30 2020 07:36 PM
@cswshaun Please see the attached sample solution.
In your Data Tab, I will add 4 more data rows that caps the value for Dept As and Dept Bs (Admin, Manual) to max of available values above (I round it up but you can do whatever you want as long as those values are the same and are the highest value in Value column.
Note that in column A, for the 4 new data rows, you must type in a space. This help to scale all charts' upper bound to the same value but not show the label for those series on the horizontal axis. If you leave column A for those 4 new data rows as empty instead of a space, their labels will be shown on horizontal axis as (blank).
Then you go to each of your charts, select only 2 series point for those new data rows on each chart (they are the last 2 highest vertical line at the right-most of your chart) - carefully to select only the series points alone, not the whole series. Then you right click on each vertical line, select Format Data Point/Fill (the icon of Paint Can)/Select No Fill, No Border to make them invisible. Finally select each data labels for each new data row on top of those vertical lines, delete them.
I also remove the Grand Total (off for both Rows and Columns) in each of your pivot tables because you will not want to include Grand Total in the charts which is too large as compared to individual values and can skew your charts significantly.
Jun 01 2020 05:25 PM
Hi hynguyen ,
Thanks for the workaround.
Just wondering if this will work for charts refreshed by slicers? Please see attached image. I selected a few depts from the slicer but the scale of the 3 charts are not aligned.
Jun 01 2020 05:59 PM
@cswshaun If you also select the first "empty space" dept, it would work because it helps scale all charts to the same upper bound.