web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Percentage calculation not working

(0) ShareShare
ReportReport
Posted on by

Hello,

My company has recently migrated over to MR from Frx I have managed to get all the reports to work but cannot figure out how to get the percentage calculation to work across columns i.e. @Sales/GM

It's probably something simple

Thanks!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Redbeard Profile Picture
    12,931 on at
    RE: Percentage calculation not working

    Peter,

    I am not sure exactly what you mean, but when you say across columns, I assume you mean, you want to divide a value by a value from another column (like A and B).  The simple answer to this is use the following format   b.90/a.30  to mix columns.

    Here is a link to a fairly comprehensive overview of your options for calculations:

    http://office.microsoft.com/en-us/performancepoint-server/calculation-formulas-in-management-reporter-HA010248430.aspx

  • Community Member Profile Picture
    on at
    RE: Percentage calculation not working

    Hi Redbeard,

    I need to get the percentage each row (as opposed to it's own column) in each month (column) of the report - hopefully I explained that correctly

    Also, that link does not work  (sorry)

    I put an except below:

    2200 Services Gross Margin  CAL @880-@2050

    2230                                  ---

    2260                                  CBR 940

    2290 Total Gross Margin          CAL @2140 + @2200

    2320                                 ===

    2350 Product GM%                  CAL @2140/@550

    2380 Services GM%                  CAL @2200/@880

    2410 Overall GM%                  CAL @2290/@940

    Thanks for your quick reply btw!

    Peterabb

  • Suggested answer
    Redbeard Profile Picture
    12,931 on at
    RE: Percentage calculation not working

    Calculation formulas in Management Reporter

    The Formula detail row applies to calculation columns (those with column type CALC).

    You can add, subtract, multiply, or divide the amounts in columns. You can also perform any type of complex calculation by including IF/THEN/ELSE statements within the formula.

    Column calculations can refer to any other column, including subsequent columns. Microsoft Office PerformancePoint 2007 Management Reporter resolves the dependent columns first. If you refer a column to another column that, in turn, refers back to the first column, a circular reference error results.

    To express the calculation result as a percentage, use a special format mask.

     NOTE    The results of calculation formulas do not include the values in non-printing columns.

    A calculation formula can include any or all of the following:

    Add, Subtract

    To add or subtract amounts in the columns, specify the column letter and the plus sign (+) or minus sign (-), for example:

    A+B or A-B+C

    You can also use the colon (:) separator to add a range of consecutive columns, for example:

    A:D

    Top of Page TOP OF PAGE

    Multiply, Divide

    To multiply and divide columns, type the column letters in the order of computation. Use the appropriate operator to separate each column letter (* for multiplication, / for division). For example, if you type B*D, you are instructing Management Reporter to multiply column B by column D.

    You can also refer to a specific report cell by typing a column letter and a row code. For example, B.100 refers to column B, row code 100.

    You can divide an entire column by a specific report cell amount that is in the same column. For example, if you type B/B.100, you are instructing Management Reporter to divide the entire column B by the value in column B, row code 100.

     NOTE    This calculation will be incorrect if you change the report's calculation priority. You can set the calculation priority on the Settings tab of the report definition.

    Top of Page TOP OF PAGE

    Complex calculations

    SucceededA complex calculation can contain any combination of cell references, operators, values, and levels of nested parentheses. For example, to compute the average of columns A and B, type:

    ((A+B)/2)

    Top of Page TOP OF PAGE

    Multiply or Divide by Base Row

    You can create a column that displays all of the values in a specified column as a percentage of a base number. This feature provides a method to show relationships between rows, such as a percentage of a sales row or a percentage of a total expenses row.

    To multiply or divide each row in a specific column by a base row, type the column to be used in the calculation, and then type *CBR or /CBR (for example, type C*CBR or C/CBR).

     NOTE    When you use a base row calculation in a column definition, make sure that each row definition that is used with this column definition contains at least one base row for calculations. For more information, see Setting the Base Row for a Column Calculation.

    Top of Page TOP OF PAGE

    IF/THEN/ELSE Statements

    An IF/THEN/ELSE statement enables any calculation to be conditional upon the results of any other column. You can refer to other columns, but not to a report cell in the IF statement; thus, any calculation must be applied to the entire column.

    For example, the statement IF B>100 THEN B ELSE C*1.25 means the following: If the amount in column B is greater than 100, then place the value from column B in the CALC column. If the amount is not greater than 100, multiply the value in column C by 1.25, and place the result in the CALC column.

    Always follow the IF clause with a logic statement which evaluates to TRUE or FALSE. The formulas that you use for both the THEN clause and the ELSE clause can contain references to any number of columns, and may be as complex as you want.

     NOTE    You cannot place the results of a calculation in any other column; the results must be in the column that contains the formula.

    Top of Page TOP OF PAGE

    Divide by the Number of Periods

    You can divide the amount in a column by a specified number of periods. For example, the calculation B/Periodsdivides the value in column B by the number of periods in column B. If the calculation spans multiple columns, specify the number of periods to use in the calculation.

    For example, the formula (B+C)/Periods means to add the amounts in columns B and C, and then divide the result by the value of the Period for this column.

  • Community Member Profile Picture
    on at
    RE: Percentage calculation not working

    Redbeard,

    I tried that above now I get incorrect percentages results or 0 depending on which calculation priority I run the report in. Column then row: returns a erroneous number

    Row then column: returns a 0%

    Also "BASE" returned an error so I used "940"

    Thanks

    Peterabb

  • Suggested answer
    Redbeard Profile Picture
    12,931 on at
    RE: Percentage calculation not working

    Peter,

    I posted the information, since the link I sent earlier didn't work.  Here is a Link which should work to a solid post on using the CBR feature in Management Report, which differs from how it worked in FRx.

    www.boyerassoc.com/.../management-reporter-tips-tricks-1-change-base-row-cbr

    The main difference is the use of the word BASEROW in calculations on the Column Layout to calculate the percentages.

  • Community Member Profile Picture
    on at
    RE: Percentage calculation not working

    Redbeard,

    Thank you but unfortunately I don't want the percentages in a separate column but rather in the same row. It is not addressed in that help screen (which I was now able to access)

    Thanks again

    Peterabb

  • Redbeard Profile Picture
    12,931 on at
    RE: Percentage calculation not working

    Peterabb,

    I won't be able to comment for a bit, after this post, and hope it resolves your issue.  

    I tested this a few minutes ago, and it seems like the best approach to calculating percentages in the same column is what we started with @Row/@Row.

    It is imperative when dividing by rows to make sure you don't create a circular reference;

    2290 Total Gross Margin         CAL @2140 + @2200

    2320                                ===

    2350 Product GM%                 CAL @2140/@550

    2380 Services GM%                 CAL @2200/@880

    2410 Overall GM%                 CAL @2290/@940

    Make sure that none of the referenced columns are within the range of the calculation.  I had to move around the rows in my report to get it to work the way I wanted.  It seemed to work fine when set up with the final calculations coming after the sum line, as you had it laid out here.

  • Community Member Profile Picture
    on at
    RE: Percentage calculation not working

    Thanks you've been helpful! I still don't understand why the Sums work but the Division (percentage) doesn't . I don't see any circular references and the format override in column E has the appropriate code for percentages. A conundrum indeed.

    Pete

  • Robyn Profile Picture
    1,753 on at
    RE: Percentage calculation not working

    Did you ever find a fix for this?

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Percentage calculation not working

    This appears to be resolved here. It worked for us and we have the same issue.

    http://community.dynamics.com/gp/f/32/p/70427/438207#438207

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans