Using the PREVGROUPVAL() function in Summary report

Let's create a Summary report:

  1. Use the Opportunity report type.
  2. Group by Stage and Close Date (Group Dates by Calendar Month).
  3. Add the summary formula and name it Prev Month Won with this formula: PREVGROUPVAL(AMOUNT:SUM, CLOSE_DATE).
  4. In this exercise, I'll filter the report to show the only Opportunity for 2 months of Close Date; This is only for simplicity in order to reduce data in the report, see the following screenshot for details:
  1. Add the formula summary to the Summary report.
  2. Add the Amount field and summarize it with Sum. You would see something similar to this report:

Let's ...

Get Salesforce Lightning Reporting and Dashboards now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.