Listing Specified Data When Other Data Is Grouped

  • Last update:April 28, 2025
  • Overview

    Version

    Report Server Version

    11.0

    Expected Effect

    The grouping function is often used in report design, and all expanded data columns are grouped by default. How to realize that part of the data is grouped and part of the data is ungrouped?

    For example, if the City column is empty, the data is shown in a list rather than in groups, as shown in the following figure.

     1.png

     Implementation Method

    The advanced grouping setting is used to transform specified data into different data through formulas, leaving some data ungrouped.

    Example

    Report Design

    1. Enter the SQL statement SELECT City,Gender,Full_name FROM Employe, to create a dataset, as shown in the following figure.

     2.png

    2. Design the report as shown in the following figure.

     3.png

    3. Select cell C2, and select Summary and Count for Data Setting, as shown in the following figure.

     4.png

    4. Select cell A2 and select Group and Advanced for Data Setting, as shown in the following figure.

     5.png

    5. Click Custom, select By Formula and Common Group, and set Custom Value to =if(len($$$)==0,seq()+"*",$$$), as shown in the following figure.

    iconNote:
    The formula seq() is used to generate different values, and adding a "*" is to make it easier to identify these processed values later.

    6.png

    Condition Attribute Setting

    Select cell A2, and add a condition attribute to set New Value to null when the current value ends with '*', as shown in the following figure.

     7.png

    Effect Display

    PC

    Save the template and click Pagination Preview. The effect is the same as that shown in section "Expected Effect."

    Mobile Terminal

    The preview effects on the DataAnalyst app and the HTML5 terminal are the same, as shown in the following figure.

    8.jpg

    Template Download

    For details, you can download the template: Listing Specified Data When Other Data Is Grouped.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