Simple Multi-Source Report

  • Last update:May 17, 2024
  • Overview

    Version

    Report Server Version

    Functional Change

    11.0

    /

    Expected Effect

    A multi-source report contains data from multiple datasets. These datasets come from different database tables and have data associations among themselves, namely the same fields.

    For example, the table below consists of data from the two datasets: ds1 and ds2. The ds1 data come from the database table Orders and the ds2 data from Client, but the two datasets have the same field: Customer ID, which means an association exists between them.

    ec3c8ce1e94bb6eb762c785183bf452.png

    The effect is shown in the following figure.

    ba0cdc7b3b8fedc14c5a5d85bdf07e6.png

    Implementation Method

    If you do not want to write complicated SQL statements, you can utilize the same field (Customer ID) through certain functions to create the association between datasets and display data relations.

    Example

    Data Preparation

    1. Create a dataset named ds1. The SQL query statement is SELECT * FROM Orders.

    2. Create a dataset named ds2. The SQL query statement is SELECT * FROM Client.

    The two datasets have the same field: Customer ID.

    1bfe9f7c84478c78da57175fea5462b.png

    Designing a Table

    Design a table according to the effect shown in the following figure and drag the fields from the two datasets into corresponding cells.

    Fields in the ds1 dataset are dragged into cells A2 to D2. Fields in the ds2 dataset are dragged into cells E2 to F2.

    ec3c8ce1e94bb6eb762c785183bf452.png

    Adding a Dataset Association

    After dragging fields into cells, you still cannot preview the template because the data in the two datasets are associated, and you need to display that association.

    Double-click cell E2 to add a filter condition to the cell. Set the values in the Customer ID field in ds2 to be equal to those in ds1 to associate the two datasets.

    7bf5bb431fbef65e44043c4f8ce0b0c.png

    Effect Display

    1. On PC

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

    2. On Mobile Terminals

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

    7ca80b2e4b5d768d08f4f624b0552db.png

    Template Download

    You can download the template: Simple Multi-Source Report.cpt.

    Attachment List


    Theme: Report Application
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    9s后關閉

    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