Year-on-year (YoY) and period-on-period (PoP) calculations compare two metrics of the same dimension based on a specified time interval.
The product provides a YoY and PoP analysis component, supporting rapid calculation of YoY and PoP data for metrics.
Year-on-year: The ratio of the value of the metric during the reporting period to the value of the metric at the same stage in the previous statistical cycle, indicating the trend of the metric at the same stage in each statistical cycle.
YoY growth rate = (current period value - value in the same period last year) / value in the same period last year × 100%
Period-on-period: PoP refers to the ratio of the value of the metric during the reporting period to the value of the metric in the previous period, indicating the trend of the metric in each period.
PoP growth rate = (current period value - previous period value) / previous period value × 100%
Common application scenarios
(1) View the increase or decrease of data between two time periods
a. Metric card: The primary metric is the value for the time period selected by the filter, and the secondary metric is the percentage difference for YoY and PoP.
b. Table: Place a categorical field in the dimension, and the metrics display the value for the time period selected by the filter and the percentage difference for YoY and PoP.
(2) View the increase or decrease of data for each time period.
Line chart: Place the 'date' field in the dimension, and the metrics display the value for the time period selected by the filter and the difference for YoY and PoP.
Step 1: Select the analysis tab and click the Period-on-Period icon.
Step 2: Select a single date as the basis; by default, the first date field in the dimension is used. If the dimension does not contain a date field, the default is 'p_date'.
Multiple metrics can be selected for calculation.
Step 3: Select a single calculation basis; the default is 'PoP'.
Step 4: Select the calculation type. There are three types: 'percentage difference', 'difference value', and 'Raw Value'. The following examples illustrate the differences among these types. The default is 'percentage difference'.
(1 - current period data / previous period data) * 100% (that is, the base period is calculated using its absolute value).
Step 5: Click to view the calculation rules .
Step 6: Click "Apply" to add a new value to the metric. To set different calculation methods for different metrics, you can continue to add period-on-period and year-on-year comparisons.
"Based on date" is the reference time field for calculating period-on-period and year-on-year comparisons, and only supports date-type fields.
The selection range includes date fields in dimensions, filters, and "order_date", with the first date field in the dimension used by default. If there is no date field in the dimension, "order_date" is used by default.
Advanced configuration: Supports offsetting based on date with year as the time granularity, enabling calculation of period-on-period and year-on-year comparisons for metrics in the same period N years ago.
warning
If the required field is not in the dropdown menu, please confirm the following:
(1) Whether the field has been changed to the date type;
(2) Whether the field has been configured in the dimension or filter panel.
Calculation metrics are the metric fields that require period-on-period and year-on-year calculation, and all metric fields are used by default. If there are no metric fields, period-on-period and year-on-year comparisons cannot be configured.
The calculation method sets the comparison period for period-on-period and year-on-year, including five methods, such as period-on-period, week-on-week, and month-on-month comparisons.
For example: The week-on-week difference percentage for Thursday = (data for this Thursday - data for last Thursday) / data for last Thursday.
For example: The week-on-week difference value for Thursday = data for this Thursday - data for last Thursday.
For example: The week-on-week raw value for Thursday = data for last Thursday.
For the period-on-period comparison functionality, the system supports fast configuration. You can use Fast Period-on-Period comparison to improve operational efficiency. The steps are as follows:
Step 1: Configure the relevant metrics on the visual query page.
Step 2: Click the dropdown button on the left side of the metric dimension.
Step 3: Click Fast PoP and configure the relevant settings.
The Fast PoP feature now supports calculating the difference value contribution, where difference value contribution = current difference value / total difference value.
To quickly calculate the difference value contribution, follow the steps below.
Step 1: In Fast PoP, click the Difference Value Contribution button.
Step 2: Create a comparison analysis for the difference value and hide this capsule.
Step 3: Configure table calculations for the derived capsule of the difference value as follows:
(1) Calculation type: Total percentage
(2) Calculation metric: Derived capsule of the difference value
(3) Unit calculation area: The default value for "Unit Calculation Area" when creating table calculations in the current chart.
(4) Addressing direction: The default value for "Addressing Direction" when creating table calculations in the current chart.
(5) Do not enable secondary table calculation.
Caution: If the calculation type in Fast PoP includes both "Difference Value Contribution" and "Difference Value", only one derived capsule for the difference value is generated, not two. Additionally, since you have selected Difference Value, the capsule for the difference value will not be hidden this time.
When using the Fast PoP feature, there is a scenario where the current month is not yet complete. For example, today is 2013-7-20, and the cumulative data for this month is from 2013-7-1 to 2013-7-31. The practical steps are as follows:
(1) The data is as follows: the total for Road 65 is 32,857.62.
(2) Drag the date into the filter and set the time to the time you want to compare.
(3) Select Analysis—Comparison, and you can view the data for the previous month (2022-4-1 to 2022-4-19).