反馈已提交

网络繁忙

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

Stack column chart shows total and part

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

    1.1 Expected effects

    Stacked column chart can show the data accumulation of each layer, and the sum represents the height of the whole column.

    However, sometimes users need a column to display both the total collection amount and the collection amount of a region (for example, Jiangsu Province) (both calculated from 0 and do not accumulate). Here the collection amount of Jiangsu Province in the total collection amount is displayed, as shown in the following figure:

    effect.png

    1.2 Implementation ideas

    1) Copy the "sales volume" and filter "sales volume" of "Jiangsu" Province.

    2) Calculate the difference: add a calculation field,SUM_AGG(${sales volume})-SUM_AGG(${Jiangsu volume}).

    3) Display using stacked columns.

    2. Operation steps

    Sample data:

    316.AC-sales.xlsx

    2.1 Calculate sales volume of Jiangsu

    Create a dashboard and add a new component, select the "AC-sales" dataset, and copy the "sales volume", as shown in the following figure:

    创建仪表板并新建组件.png

    Modify the copied field name as "Jiangsu volume", and set the "Detail Filtering" condition as follows: "area" in "Fixed value" "Jiangsu", as shown in the following figure:

    修改字段.png

    2.2 Calculate difference

    Calculate the difference between the collection amount of all provinces and that of Jiangsu Province.

    Create a calculation indicator, name it "difference" and enter the formula: SUM_AGG(${sales volume})-SUM_AGG(${Jiangsu volume}), click "OK", as shown in the figure below:

    计算差值.png

    Formula description:

    FormulaDescription
    SUM_AGG(${sales volume})The collection "sales volume" is summarized according to dimension fields, such as sales channel, that is, the total amount of each sales channel.
    SUM_AGG(${Jiangsu volume})The collection amount of Jiangsu Province is summarized according to dimension fields, such as sales channel, that is, the total collection amount of Jiangsu of each sales channel.

    SUM_AGG(${sales volume})-

    SUM_AGG(${Jiangsu volume})

    The dimension is the sales channel. Calculate the total sales channel's collection amount - the total sales channel's collection amount of Jiangsu Province

    2.3 Display by charts

    Select "stacked column chart", darg the field to the analysis area, as shown in the following figure:

    柱形图.png

    Filter the top N sales channels, as shown in the following figure:

    过滤.png

    Drag "Jiangsu volume" to the "tag" under "Jiangsu volume", drag "difference" to the "tag" under "difference", as shown in the following figure:

    2.4 View the effects

    2.4.1 PC terminal

    See more details in section 1.1 in this file.

    2.4.2 Mobile terminal

    mobile.png

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