Example: Add Metrics or Percentages
This example illustrates how to use a
Custom
calculation element to add a
metric or a percentage in a matrix report. A matrix report displays these accounts on the rows for FY2022:
- Revenue
- Cost of Goods Sold
- Gross Margin
Difference
calculation element. It provides the variance amount between Revenue and Cost of
Goods Sold. You want to add another calculation to display Gross Margin as a
percentage of Revenue.- Go toReports.The Overview page displays.
- Run the matrix report and clickEdit.
- In theElementstab, expand theCalculationselement.
- Drag theCustomcalculation element to the report rows and drop it after Gross Margin.
- Right-click theCustom Calculationelement and selectFormula Assistant.
- Build the formula to calculate gross margin percentage. Use theSafe DivisionandMultiplyoperators with account elements on the report .Example:div (RPT.Difference, RPT.4000_Revenue)*100
- ClickOKto close the formula assistant.
- In the report builder, right-click theCustom Calculationelement and selectProperties.
- Enter the label Gross Margin Percentage and clickApply.
- Save and run the report.
A Gross Margin Percentage row displays on the report. It displays the Gross Margin amount as a
percentage of the Revenue amount.