反馈已提交

网络繁忙

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

Show both current and previous year's data

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

    1.1 Expected effect

    Sometimes users need to display indicator data of different years in one chart at the same time. For example, they need to display the monthly amount data of 2008 and 2009 in the same chart, as shown in the following figure:

    image.png

    1.2 Solution

    Set a detailed filter for "AMOUNT", the filter condition is setting "SIGNDATE" to "2008";

    Copy the "AMOUNT" indicator, set a filter, and the filter condition is setting "SIGNDATE" to "2009";

    Drag two "AMOUNT" indicators into the indicator and "SIGNDATE" into the dimension, select "Contrast Column Chart", and set the condition for the vertical axis to "indicator juxtaposition".

    2. Steps

    Sample data: "Package>ORDERS".

    2.1 Set up detail filter for "AMOUNT"

    Create a new dashboard and select "ORDERS" to create a component, enter the component editing interface, set a "Detail Filtering" for "AMOUNT", and the filter condition is setting "SIGNDATE" to "2008", as shown in the following figure:

    Copy the "AMOUNT" indicator, as shown in the figure below:

    image (3).png

    Set a "Detail Filtering", the filter condition is setting "SIGNDATE" to "2009", as shown in the following figure:

    2.2 Make a chart

    Drag "SIGNDATE", "AMOUNT" "AMOUNT1" into the analysis area, as shown in the figure below:

    image (6).png

    Set the grouping basis of "SIGNDATE" to "month", as shown in the figure below:

    image (7).png

    Select the chart type as "Contrast Column Chart", hover the mouse on the field, and click to modify the field name, as shown in the following figure:

    image (8).png

    Drag the "TargetName" into the "color", as shown in the figure below:

    image (9).png

    2.3 Display effect

    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后关闭