Loading
Analyze Your Data
Write a Row-Level Formula

Write a Row-Level Formula

Writing a row-level formula adds a row-level formula column to your report that makes calculations on every report row. Write row-level formulas directly in the Lightning report builder.

Required Editions

Available in: Lightning Experience
Available in: Essentials, Group, Professional, Enterprise, Performance, Unlimited, and Developer Editions
Available in: Enhanced Folder Sharing
User Permissions Needed
To create, edit, and delete formulas in private reports:
Enhanced Folder Sharing
Create and Customize Reports
To create, edit, and delete formulas in public and private reports:
Enhanced Folder Sharing

Report Builder OR Report Builder (Lightning Experience)

Here's how to add a row-level formula to a report.

  1. Create or edit a report.
  2. From the Columns section of the Outline pane, click the more actions icon | Add Row-Level Formula.
    Adding a row-level formula
  3. From the Edit Row-Level Formula Column window, enter a Column Name (2), choose a Formula Output Type (3), and write a Formula (4). Optionally, enter a Description and set the number of Decimal Points.

    To test your formula for errors, click Validate. If necessary, resolve any errors. Then, click Apply (5).

    Tip
    Tip For a little row-level formula inspiration, see Examples: Evaluate Each Record in Reports with Row-Level Formulas in Salesforce Help.

    To learn more about writing formulas, see Formula Operators and Functions by Context in Salesforce Help.

    Writing a row-level formula
  4. The row-level formula appears as a column on the report (6).
    A row-level formula in a report
  5. To save and run the report, click Save & Run.

The report now features a row-level formula.

Note
Note Row-level formulas are supported only in reports that don't include external objects.
 
Loading
Salesforce Help | Article