The following procedure uses the Strategy Tutorial project to illustrate an issue where derived metrics of type “Percent to Total, Page Total” return incorrect data. This occurs only when attributes are added or removed from the report grid in Strategy Developer 9.x - 10.x.


Note that the derived metric 'Percent To Page Total (Revenue)' is not calculating its percentages based on the grand total of $1,884,444 for the metric Revenue for this page. The result is that the grand total for the derived metric 'Percent To Page Total (Revenue)' displays 21.23% and not 100%.

CAUSE:
This behavior occurs by design. The dimensionality of the derived metric 'Percent To Page Total (Revenue)' when it was created was for Year and Month. The dimensionality of derived metrics is static and does not change when attributes are added or removed from the report grid.
The following screen shot illustrates that the dimensionality of the derived metric' Percent To Page Total (Revenue)' remains at Year and Month after it is exchanged with the attributes Month and Quarter in the report grid:

WORKAROUND:
To workaround this design, employ one of the following two options:


In the following screenshot, the derived metric 'Percent To Page Total (Revenue) calculates its percentage based on the grand total of $1,884,444 for the metric Revenue for this page. The grand total for the derived metric 'Percent To Page Total (Revenue)' now displays 100%:
