You may need to display the current time or the number of days to go until a countdown date.
Example 1:
Display the number of days to go until 2023/12/31 on the dashboard, as shown in the following figure.
Example 2:
Display the current time on the dashboard, as shown in the following figure.
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.
Create an analysis subject and upload the built-in table BIdemo_Sales Details.
Click Formula Column and name the added column as Countdown Date. Enter the formula TODATE("2023-12-31") and click OK.
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.
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.
Rename the field as Countdown Days (Text-type) and click Save All and Update.
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.
On PC
For the demonstration of this KPI card, see the first figure in section "Preview".
On Mobile Terminal
Add Formula Column and name the added column as Current Time. Enter the formula Now() and click OK.
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.
If the Current Time field is of the time type, you need to set the group way to Year-Month-Day-Hour-Minute-Second.
For the demonstration of this KPI card, see the second figure in section "Preview".
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy