Dynamic Time Display

  • Last update:  2023-09-26
  • Overview

    You may need to display the current time or the number of days to go until a countdown date.

    Preview

    Example 1:

    Display the number of days to go until 2023/12/31 on the dashboard, as shown in the following figure.

    1.png

    Example 2:

    Display the current time on the dashboard, as shown in the following figure.

    2.png

    Implementation Method

    Example 1: Use the TODATE function to specify a countdown date, add a time interval column to calculate the number of days to go until the countdown date, and convert the Field Type to Text. Create a KPI card component to display the result.

    Example 2: Use the NOW function to get the current time and create a KPI card component to display the result.

    Example 1

    Creating an Analysis Subject

    Create an analysis subject and upload the built-in table BIdemo_Sales Details.

    3.png

    Specifying the Countdown Date

    Click Formula Column and name the added column as Countdown Date. Enter the formula TODATE("2023-12-31") and click OK.

    4.png

    Calculating the Countdown Days

    Choose More > Time Interval and name the added column as Countdown Days. Set Time Interval to Countdown Date - Current time, Unit to Day(s), and click OK.

    5.png

    Converting Field Type to Text

    Since the Countdown Days field is value-type data, simply using this field for the KPI card component returns the accumulated value of all data rows. So you need to convert the Field Type of Countdown Days to Text.

    6.png

    Rename the field as Countdown Days (Text-type) and click Save All and Update.

    Creating a KPI Card

    Create a component, click KPI Indicator Card, and drag the Countdown Days (Text-type) field into Graphic Property > Text. To edit the content format, you can choose  > and customize the format.

    7.png

    Demonstration

    On PC

    For the demonstration of this KPI card, see the first figure in section "Preview".

    On Mobile Terminal

    8.png

    Example 2

    Calculating the Current Time

    Add Formula Column and name the added column as Current Time. Enter the formula Now() and click OK.

    9.png

    Creating a KPI Card

    Create a component, click KPI Indicator Card, and drag the Current Time field into Graphic Property > Text. To edit the content format, you can choose > and customize the format.

    10.png

    If the Current Time field is of the time type, you need to set the group way to Year-Month-Day-Hour-Minute-Second.

    11.png

    Demonstration

    On PC

    For the demonstration of this KPI card, see the second figure in section "Preview".

    On Mobile Terminal

    12.png

    附件列表


    主题: Adding and Editing Data
    • 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