1. Home
  2. Knowledge Base
  3. Deprecated Documentation
  4. Creating Total Level Calculations

Creating Total Level Calculations

This method has been deprecated in lieu of Total-level/Margin Calculations.


On the m-Power hotline, we sometimes field calls from developers who are trying to compute values based on subtotal or grand total values within their Reports. As you already know, m-Power Report templates, by default, will always add values vertically to compute sub-total and grand total values. In these situations, employing the use of m-Painter’s Total Level calculation feature will be necessary.

As you can see from the video, m-Power is initially determining the grand total value for batting average simply by adding up all of the detail values in this section to derive the total. However, when working with values that divide, including percentages, the typical method of summing values on the detail level to determine subtotal and grand total values will not apply.

Since batting averages represent a percentage, I do not want them to be summed. Instead I’d rather have the values be determined at the subtotal level, that is to say horizontally, or East to West.

To accomplish this percentage, instead of creating my calculation in the m-Power interface, which will create the calculation at the detail level, I can use the Total Level Calculator within m-Painter to achieve this.

Open m-Painter, then click your cursor in the cell where you want your total level calculation to live. First delete the existing field, then click the Calculator icon, then specify the necessary fields, from the proper location.

Once your application has been saved, please run it. Notice now that this value is no longer be determined based on the sum of the column, but instead is being computed from the values listed on the subtotal or grand total level directly.

Updated on January 4, 2024

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support