Salesforce Report Summary Functions Cheatsheet
Salesforce Report Summary Functions Cheatsheet
Summary
Group values in report
formulas by using the
PARENTGROUPVAL and
PREVGROUPVAL summary
functions.
Did you know that you can calculate relative values for groupings in reports? With summary functions in
custom summary formulas, you can!
PARENTGROUPVAL
Use this function to calculate values relative to a parent grouping.
Description:
Use:
Matrix: PARENTGROUPVAL(summary_field,
parent_row_grouping, parent_column_grouping)
TOTAL_PRICE:SUM/PARENTGROUPVAL(TOTAL_PRICE:SUM,
GRAND_SUMMARY)
This formula calculates, for each product, its relative size compared to the
grand total. In this example, the report is a summary of opportunities and
their products, grouped by Product Name.
PREVGROUPVAL
Use this function to calculate values relative to a peer grouping. If theres no previous grouping, the
function returns a null value.
Description:
or rows before the current summary. The default is 1; the maximum is 12.
You can only use this function in custom summary formulas for reports.
Use:
PREVGROUPVAL(summary_field, grouping_level [,
increment])
This formula calculates, for each month, the difference in amount from the
previous month shown in the report. In this example, the report is an
opportunity matrix with columns grouped by Close Date and rows by
Stage.