Summing Series Values by Category

  • Last update:February 16, 2025
  • Overview

    Problem

    When there are multiple series in a chart, it is desired to display show the sum of the values of each series in the category name, as shown in the following figure.

    image 1.png

    Implementation Method

    You can set the form of the chart category name to solve the problem.

    Example

    Report Design

    1. Create a dataset named ds1. The database query statement is SELECT * FROM Sales_Volume.

    image 2.png

    2. Merge required cells, and insert Stacked Bar Chart, as shown in the following figure.

    image 3.png

    3. Set the Display of the chart, select Formula Form, and enter the formula $$$+":"+sum(value("ds1",5,4,$$$)).

    iconNote:
    $$$ refers to current values, and the following formula means to extract the data of the fifth column corresponding to the current value (namely Product) from ds1 and sum it up.

    image 4.png

    4. Set the chart label, as shown in the following figure.

    image 5.png

    Effect Display

    PC

    Save the report and click Pagination Preview. The following figure shows the preview effect.

    image 1.png

    Mobile Terminal

    96221e512daf2fe8f934d5d749af0fa.jpg

    Template Download

    For details, you can click to download template Summing Series Values by Category.cpt.

    Attachment List


    Theme: Chart
    • 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