Following are some examples of simple MDX formulas that can be used in the Formula column for an account:
Task |
Syntax and Example |
---|---|
Adding two accounts |
Syntax:
Example PreTax Income:
End of the example. |
Adding a range of accounts |
Syntax:
Example Total Personnel Exp:
End of the example. |
Calculating a percentage |
Syntax:
or (to prevent division by zero):
Example Gross Margin Pct:
End of the example. |
Multiplying by a factor |
Syntax:
Example Taxes:
End of the example. |
Calculating a YTD value |
Syntax:
Example Current Year Net Income:
End of the example. |
Any software coding and/or code lines / strings ("Code") included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended to better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or by its gross negligence.