Grouped by Condition

  • Last update:  2022-01-26
  • I. Overview

    1. Expected effect

    The previous section introduced Grouped by Section . If you want to group some specific values into one group for data display, for example, the main areas of general enterprises are North China and South China. The south is the main viewing object, while other regions are aggregated in the "Other" group, which is merged grouping, as shown in the following figure:

    截屏2021-01-19 上午10.07.49.png


    2. Implementation ideas

    You can use the grouping in the data column properties to customize the grouping settings.

    II. Examples

    The steps of making the template are described below.

    1. Report design

    1) new report

    Create a new general report, add data set DS1, and the SQL statement is select * from sale, as shown in the figure below:

    截屏2021-01-19 上午10.05.23.png

    2) report style

    Drag the field to the corresponding cell to list the data of all regions. The report style is as follows:

    截屏2021-01-19 上午10.05.47.png


    2. Group setting

    Select the A2 cell where city is located, and modify the data settings to group and advanced. As shown in the figure below:

    截屏2021-01-19 上午10.25.14.png

    Click the custom button in the figure above to pop up the custom grouping dialog box. Select the conditional grouping to merge the cities into two groups. As shown in the figure below:

    Group 1: named North, set the city Beijing to North.


    Group 2: named South, set the city Shanghai to South.


    For the cities not grouped, you can choose to merge all the other groups from the drop-down box as above. 


    3. Effect preview

    1) PC terminal

    Save the template and select pagination preview, as shown below.

    截屏2021-01-19 上午10.18.53.png

    2) Mobile terminal

    The App  has the same effect as the HTML5 side, as shown in the following figure:

    4.png


    III. Template download

    For completed templates, please refer to:

    %fr_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\ReportApplication\BasicApplication\

    GroupInCon.cpt

    Click to download the template:

    GroupInCon.cpt

    Attachment List


    Theme: Report Application
    • 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