反馈已提交

网络繁忙

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

Dynamically display the data before and after the filter component value

  • Recent Updates: April 25, 2022
  • 1. Overview

    Sometimes users need to display not the data corresponding to the setting conditions of the filter component, but the data before and after the filter component conditions. In this case, the filter component cannot simply be used for filtering.

    1.1 Expected effect

    Example 1: Using the "Year-Month" filter component, when a certain filter condition is selected, display the data of the current year before the time of the year.

    For example, when the filter condition of the selected year and month is "October 2014", the data will be displayed as the data of "January 2014-October 2014", as shown in the following figure:

    3.png

    Example 2: By default, the data 15 days before the current time is displayed. After the filter condition is set for the date filter component, the data also displays the data 15 days before the filter condition.

    For example, the current time is displayed by default, that is, the data 15 days before "2021-08-13". If the filter condition is "2020-12-01", the data 15 days before "2020-12-01" will be displayed. As shown in the figure:

    7.png

    1.2 Implementation ideas

    Create a chart and add a filter component without dragging the time field to the filter component setting box.

    In the chart, perform "Detail Filtering" on the indicator fields that need to be displayed in the chart, and set the filter conditions.

    2. Example 1

    Sample data: "Sales DEMO>Contract fact sheet"

    2.1 Create a chart and add a time filter component

    Create a dashboard and create a component, add the "Contract signing time" and "Contract amount", and then add the "Year-Month" filter component, as shown in the following figure:

    1.png

    2.2 Detailed filtering of the contract amount

    Select "Contract amount" and set "Detail Filtering". Since the time period that needs to be displayed is the current year data before the filter component value, the filter condition is "SomeDateBefore" and "All Year", as shown in the figure below:

    2.png

    2.3 Effect view

    See section 1.1 of this article for details.

    3. Example 2

    Sample data: 

    298.Filter specified time data.xlsx

    3.1 Create a chart and add a time filter component

    Create a dashboard and create components, add "Time" and "Transaction amount", and then add "Date" filter component, as shown in the following figure:

    4.png

    3.2 Detailed filtering of transaction amount

    Select "Transaction amount" and set "Detail Filtering". Since the time period that needs to be displayed is the data of 15 days before the filter component value, the filter condition is "SomeDateBefore" "Curr.D", and "SomeDateLater" "15DayBeforeCurr.D". As shown in the following figure:

    5.png

    3.3 Set dynamic time for filter components

    Since it is necessary to open the dashboard to display the data 15 days before the current time by default, click the filter component, select "Dynamic", set it to the "Curr.D", and click "OK". As shown in the following figure:

    6.png

    3.4 Effect view

    See section 1.1 of this article for details.

    Attachment List


    Theme: Build Charts and Analyze data
    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后关闭