We're going to dive into two built-out examples that show how advanced aggregators can help you keep topline ratios meaningful.
1. Forecast Table
In this first example, you’ll build a year-over-year growth table with your actual results for Y0 and your forecasts for Y+1. It’ll sum up your forecasts for each product line based on the growth you expect on your Y0 actuals.
For this, create the following Metrics and Tables:
Growth Forecast Metric
This Metric holds manual inputs giving the expected growth.
Create a Metric called Growth Forecast with Number data type. Its Dimensions are Product line and Year.
Input the forecasts by product line in the form of year-over-year expected growth percentages:
Forecast volume Metric
Take your Metric of Actuals for the current year and duplicate it.
Rename the copy Forecast volume and write in a formula of the type“Actuals * (1 + Growth Forecast)”.
The Metric populates with volume data for the year being forecast, reflecting the growth inputs:
Forecast data table
Create a Table for forecast data and add the following Metrics in this order:
Actuals
Forecast Volume
Growth Forecast
In Pivot, set the Metrics up as Columns. The example also has some product hierarchy levels, Casual Wear L1 and L2, for illustration:
Set up aggregators
The topline numbers are still blank in our Topline data table. Using the tools in the 𝝨 menu, found in the top toolbar, you can set up aggregations for these.
First the simple aggregators:
Select 𝝨 from the top toolbar.
Add Sum aggregators to all three Dimensions listed for the first two Metrics, six in total: This fills the blanks for overall total and first- and second-level aggregations.
Add advanced aggregators to fill the growth measures:
In the 𝝨 menu, select the third Metric, Growth Forecast.
Against each Dimension, instead of selecting the Sum aggregator, scroll down to the bottom of the drop-down and select Advanced aggregator.
In the pane that opens, for Calculation, select Growth.
Select yourForecast volumeMetric for Metric A and yourActuals Metric for Metric B.
Repeat for all three Dimensions. At the end your Table and aggregator panel should look like this:
2. Rule of 40
SaaS businesses sometimes use the "Rule of 40" as a key performance indicator. The rule says a company's combined year-over-year growth rate and profit margin should be more than 40%.
In this example, you'll set up a Table to check Rule of 40 compliance by month, across two distinct operational regions—and at the topline level, too.
Revenue Y0 and Y-1, and Costs
Create a Metric calledR40 Revenue Y0, with Number data type. Its Dimensions are Month and Country. Input your monthly revenues for the current year, Y0.
Duplicate it and rename the copyR40 Revenue Y-1. Add a formula such as'Revenue Y0' [BY CONSTANT: Month - 12]to become your Metric of revenues for last year, changing input values as desired.
Duplicate that and rename the copyR40 Costs. Input your monthly costs for the current year.
Add these to a Table.
In the Pivot menu, ensure that the Country Dimension is moved up to Pages.
It should look similar to the below:
Indicators
You now have the data needed to generate three indicators. Create three more Metrics named as in the below list, with the same Dimensions: Country and Month.
ForMargin%add a formula:('R40 Revenue Y0'/'R40 Costs')-1
ForRevenue growth%add a formula:('R40 Revenue Y0'/'R40 Revenue Y-1')-1
ForRule of 40add a formula:'R40 Margin%' + 'R40 Revenue growth%'
Notice that with ‘All’ countries selected in the Page selector, theMargin%andRevenue growth%are showing the sum of ratios, which is not meaningful. As a result theRule of 40measure is also not meaningful.
We need, instead, the ratio of sums. For this, we set up the following advanced aggregators on the Dimension not displayed in the grid: Country.
For theMargin%Metric:
Select 𝝨 from the top toolbar.
Select theMargin%Metric, opening the pane of aggregator options beneath.
Under OTHER DIMENSIONS > 1 non-Calendar Dimension, select Advanced aggregator from the drop-down.
In Calculation, select Growth.
SelectRevenue Y0for Metric A andCosts for Metric B.
For theRevenue growth%Metric:
Follow the stepthrough above as far as step 4, selectingRevenue growth%.
In Calculation, select Growth.
SelectRevenue Y0for Metric A andRevenue Y-1for Metric B.
For theRule of 40Metric:
Follow the stepthrough above as far as step 4, selecting theRule of 40Metric.
In Calculation, select Sum.
SelectMargin%for Metric A andRevenue growth%for Metric B.
The aggregations now appear updated:
We still have blanks to fill, however, as the ratio totals to the right are not calculated:
We need more ratio of sums advanced aggregators, this time built on other advanced aggregations:
Select 𝝨 from the top toolbar.
Select theMargin%Metric, opening the pane of aggregator options beneath.
Under DIMENSIONS IN GRID > Month, select Advanced aggregator from the drop-down.
In Calculation, select Growth.
SelectRevenue Y0for Metric A andCosts for Metric B.
Repeat for theRevenue growth%Metric, selectingRevenue Y0for Metric A andRevenue Y-1for Metric B.
Repeat for theRule of 40Metric, selecting Sum as the advanced aggregation type andMargin%andRevenue growth%as the Metrics to sum.
The Table is now fully updated:
Add ratios that reflect your selection dynamically
You can set up your Table so that ratios remain meaningful when you change the view on-the-fly using selectors:
In the Pivot menu, add the Country Dimension as a Row below your Metrics. The Pivot panel should look like this:
In the 𝝨 menu, for Revenue Y-1, Revenue Y0 and Costs, select Sum aggregators in the Month and Country Dimensions.
For Margin% and Revenue Growth%, select Advanced aggregator > Growth as above.
For Rule of 40, select Advanced aggregator > Sum as above
Now when you change your selection of countries in the Country Page Selector, the Table updates the numerical and ratio data.
I hope these two examples help you streamline your reporting in Pigment. If you’ve found a creative way to use advanced aggregators in your own workspace, drop a note in the comments! I’d love to see what you're building.