Custom Comparison with Same/Previous Period

  • Last update:  2024-02-27
  • Overview

    Application Scenario

    The function is to calculate the same period and the previous period ratios based on a self-defined time period or a dynamic time.

    Function Description

    If the date field exists in the to-be-analyzed area rather than in Dimension, you can calculate the comparison value, growth value, and growth rate through the function.

    iconNote:
    The function is not available to calculation fields.

    1.png

    Comparison value: the value of the selected Comparison Time, that is, the values of the selected Date or Date Interval after filtering.

    Growth value: the increased value of Comparison Time compared to Selected Time. The decreased value will be displayed as a negative value.

    Growth rate: the increased ratio of Comparison Time to Selected Time. The decreased ratio will be displayed as a negative value.

    Ratio Calculation of the Same Period/Previous Period in a Fixed Time Period

    For example, you can calculate the growth of the lump sum for different types of contracts in January 2014 in comparison with that in March 2014.

    Calculation of Lump Sum in 2014-01 and 2014-03

    Go to the component editing page, drag the Type of Contract field into Dimension and the Lump Sum field into Indicator, and modify the name to 2014-01 Lump Sum. Click the icon 企业微信截图_17034958875941.png and choose Quick Calculation Comparison with Same Period/Comparison with Previous Period Custom Comparison with Same/Previous Period, as shown in the following figure.

     2.png

    Set Date Field to Contract Signing Time and Calculation Type to Comparison Value, set Date Interval between 2014-01-01 and 2014-01-31, and click OK, as shown in the following figure.

     3.jpg

    Similarly, copy a Lump Sum field and then calculate the lump sum of March 2014, as shown in the following figure.

     4.png

    5.png

    Growth Value Calculation

    To calculate the growth value of the lump sum for different types of contracts in January 2014 compared to that in March 2014, copy a second Lump Sum field, drag the copied field into Indicator, rename it Lump Sum Growth Value, and set the conditions for Custom Comparison with Same/Previous Period, as shown in the following figure.

     6.png

    Growth Rate Calculation

    To calculate the growth rate of the lump sum for different types of contracts in January 2014 compared to that in March 2014, copy one more Lump Sum field, drag the copied field into Indicator, rename it Lump Sum Growth Rate, and set the conditions for Custom Comparison with Same/Previous Period, as shown in the following figure.

     7.png

    Effect Display

    On PC

     8.png

    iconNote:
    In the calculation of the same period/previous period ratio, if the previous period value or the current period value is empty, the corresponding calculation results of the same period/previous period ratios (including the growth value and the growth rate) will be displayed as empty when the current period value and the previous period value are calculated.

    On Mobile Terminals

     9.png

    Ratio Calculation of the Same Period in a Dynamic Time

    Display the sales volume from the previous 30 days to the current day dynamically, and calculate the same period ratio.

    You can download the example data.Sales Data.xlsx

    Data Uploading

    Create an analysis subject and upload the example data, as shown in the following figure.

     10.png

    11.png

    Component Creation

    Create a component, as shown in the following figure.

     12.jpg

    Calculation of Sales Volume in the Past Ten Days

    1. Perform detailed filtering for the Sales Volume field to obtain the sales volume in the past ten days. Click the icon 企业微信截图_17034958875941.png and select Filter Detail from the drop-down list, as shown in the following figure.

     13.jpg

    2. Set the detailed filtering conditions to obtain the sales volume in the past ten days of the current date. Click Add Condition and Please Select Field, select Sales Date from the drop-down list, and set the parameter to Sales Date Since Time Point. Select Dynamic Time, tick Year and Day, and set 10 Day Before, and click OK.

     14.png

    Growth Rate Calculation of the Same Period

    Use the Custom Comparison with Same/Previous Period function in Quick Calculation.

    1. Click the icon 企业微信截图_17034958875941.png of the Sales Volume field, and select Copy from the drop-down list, as shown in the following figure.

     15.png

    2. Rename the copied field YOY Growth Rate and delete the detailed filtering condition, as shown in the following figure.

     16.png

    17.png

    3. Click the Group Table icon in Chart Type and drag the Salesperson field into Dimension, and the Sales Volume field and the YOY Grow Rate field into Indicator, as shown in the following figure.

     18.jpg

    4. Set specific parameters of Custom Comparison with Same/Previous Period. Set Date Field to Sales Date and Calculation Type to Growth Rate, and set the condition for the date interval, as shown in the following figure.

    Selected Time: ten days before the current day to current day in Dynamic Time.

     19.png

    20.png

    Comparison Time: last year's corresponding data, which refers to the data from the same time one year ago. The second date is set to the same day one year ago, while the first date is set to ten days before one year ago.

     21.png

    22.png

    5. After adding the conditions, click OK, and the effect is shown in the following figure.

     23.jpg

    Add the component to the dashboard to view the effect.

    Effect Display

    On PC

     24.png

    On Mobile Terminals

    The effect is shown as follows.

     25.png

    iconNote:
    In the calculation of the same period/previous period ratio, if the previous period value or the current period value is empty, the corresponding calculation results of the same period and previous period ratios (including the growth value and the growth rate) will be displayed as empty when the current period value and the previous period value are calculated.


    附件列表


    主题: Creating a Visual Component
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy