Grouping Adjacent Identical Values

  • Last update:April 28, 2025
  • Overview

    Version

    Report Server Version

    11.0

    Expected Effect

    The data in the database table is recorded in chronological order. If you want to query some data and display them in the same sequence, while merging consecutive identical values of a field, you can achieve this through adjacent identical values grouping.

     1.png

    Implementation Method

    You can drag the data columns into the cells directly. Common, is selected for Data Setting by default, which means all identical items will be merged and displayed together. This document will introduce how to use the adjacent identical values grouping to merge consecutive identical items.

    Adjacent identical values grouping is often used in conjunction with sorting in SQL to achieve the general grouping, which offers better performance compared to the effect by using common grouping directly. For details, see Wise Use of Grouping Adjacent Identical Values

    Example

    Data Preparation

    Create a built-in dataset, as shown in the following figure.

     2.png

    Report Design

    Report Format Design

    Drag the fields and fill the text into the corresponding cells. Set the font alignment to Center and add the inside and outside borders, as shown in the following figure.

     3.png

    Consolidation and Summarization Setting

    1. Select the Region field, choose Cell Element > Basic > Data Setting, and select Group and Adjacent, as shown in the following figure.

     4.png

    2. Select the Salesperson field, choose Cell Element > Basic > Data Setting, and select Group and Adjacent, as shown in the following figure.

     5.png

    3. Select the Sales field, choose Cell Element > Basic > Data Setting, and select Summary and Sum, as shown in the following figure.

     6.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.

     7.jpg

    Template Download

    For details, you can download the example template: Grouping Adjacent Identical Values.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