反馈已提交

网络繁忙

You are viewing 5.1 help doc. More details are displayed in the latest help doc.

Calculate time difference

  • Recent Updates: April 14, 2022
  • 1 Overview

    1.1 Expected effect

    Sometimes users need to calculate time difference between two time data. For example, we need to calculate the difference between "contract signing time" and "registration time", as shown in the following figure:

    113-13.png

    1.2 Implementation ideas

    Implement with the function DATESUBDATE.

    Select "New column>Time difference" in the self-service dataset to achieve the purpose.

    2. Add new column to calculate time difference

    Our example uses "Contract Fact Sheet".

    2.1 Create self-service dataset

    Create self-service dataset, and select "Contract Fact Sheet". Select all fields, as shown in the following figure:

    113-9.png

    2.2 Calculate time difference

    Click "+" to add "New column", as shown in the figure below:

    113-10.png

    Name the newly added column as "Time Difference-Day", click "time difference", set time difference equals "Contract Signing Time-Registration Time", select "day", and click "OK", as shown in the figure below:

    113-11.png

    Just save or go on with your self-service dataset analysis.

    2.3 Effect view

    You can refer to section 1.1 for details.

    3. Implement with DATESUBDATE function

    3.1 Implement with self-service data set

    3.1.1 Create self-service dataset

    Similar to section 2.1, we create a self-service dataset, as shown in the figure below:

    113-9 (1).png

    3.1.2 Use function to calculate time difference

    Click "+" to add "New column", as shown in the figure below:

    113-10 (1).png

    Name the newly added column as "Time Difference-Day", click "Formula/Function", enter the formula DATESUBDATE (Contract Signing Time, Registration Time, "d"), and click "OK", as shown in the figure below:

    113-12.png

    Note: The functions and fields in the formula box need to be selected by clicking the selection area on the left, and cannot be entered manually.

    Just save or go on with self-service dataset analysis.

    3.2  Implement with sashboard

    3.2.1 Create Dashboard

    Click "Dashboard> New Dashboard", name and select the storage location, and click "OK", as shown in the figure below:

    113-14.png

    3.2.2 Use function to calculate time difference

    "Add component" and select "Contract Fact Sheet", click "+" to add a calculation field, enter the formula DATESUBDATE(contract signing time, registration time, "d"), and click "OK", as shown below:

    3.2.3 Effect view

    Drag the corresponding fields into the analysis area, the effect is shown in the figure below:

    113-17.png

    Attachment List


    Theme: Data Processing
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    售前咨询电话

    400-811-8890转1

    在线技术支持

    在线QQ:800049425

    热线电话:400-811-8890转2

    总裁办24H投诉

    热线电话:173-1278-1526

    文 档反 馈

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    10s后关闭