Complex Multi-Source Report

  • Last update:June 23, 2024
  • Overview

    Version

    Report Server Version

    11.0

    Expected Effect

    The previous document introduces simple multi-source reports. However, in practical applications, row/column data or data obtained from summary calculation in a cross table often comes from different databases.

    In the following report, data in columns Project Name, Total Projects, Required Finance, Self-Financedand Other Funds is all from different datasets.

    57dd5262f602bc12c996aaf2cbfda69.png

    Implementation Method

    Data in this report comes from five different datasets. You can associate and display the data in this report through data column association.

    This helps avoid using the traditional approach of combining five datasets into a single source with complex SQL statements, significantly reducing the difficulty of report creation and the requirement for SQL proficiency of report designers.

    Example

    Report Creation

    Dataset Creation

    The database has five data tables, one of which stores project ID and name data, and the other four store data on project quantity, financial subsidy funds, self-raised funds, and other funds, respectively.

    Each table establishes data associations with the table project through the field ID.

    iconNote:
    You can click the addition icon on the left dataset panel and select Built-in Dataset from the drop-down list to go to the Built-in Dataset editing page, on which you can create built-in datasets and add data to datasets directly.


    3b0d0ae3eb1a44d4aa3777b487a93da.png

    1. Project IDs and names (ID, Project Name) - project

    359f63d5805a51566557b8a1499efa9.png

    2. Project Quantity (ID, Quantity) - zs

    5626a10e192ee0de613225dc739bbb7.png

    3. Financial subsidy funds (IDAmount) - cz

    7870b28480d9fb823e5a4f9e32657aa.png

    4. Self-raised funds (ID, Amount) - dz

    8d38291326fc482262af2305cf65283.png

    5. Other funds (ID, Amount) - qt

    d620593ad46bc0be9f3d99fe1231e0f.png

    Report Style

    The following figure shows the report style.

    9485641cc2332d963709ca82d6aa8d2.png

    Data Column and Filter Settings

    Drag data columns into corresponding cells. The following table shows the setting for the cells.


    CellDatasetColumn NameSetting
    B4projectProject NameSet Data Setting to Group, Expansion Direction to Vertical, and others by default.
    C4

    zs

    Quantity

    Set Data Setting to Summary> Sum, Expansion Direction to No Expansion, the filter condition as (Column Name:ID) Equal 

    to  'project.ID', and others by default.

    E4

    cz

    Amount

    Set Data Setting to SummarySumExpansion Direction to No Expansion, the filter condition as (Column Name:ID) Equal 

    to  'project.ID', and others by default.

    F4

    dz

    Amount

    Set Data Setting to SummarySumExpansion Direction to No Expansion, the filter condition as (Column Name:ID) Equal 

    to  'project.ID', and others by default.

    G4

    qt

    Amount

    Set Data Setting to SummarySumExpansion Direction to No Expansion, the filter condition as (Column Name:ID) Equal 

    to  'project.ID', and others by default.

    The following figures show the data and filter setting of cell C4.

    92d0fc2cc76de47249e5fb422921597.png

    7b70857bf0befc736eb419130959387.png

    Other cells are similar and will not be explained further in this document.

    Numbers and Formulas

    Enter formulas in the cells where you need to add numbers and calculate totals, as shown in the following table.

    CellFormulaOther Setting

     A4

    =&B4

    Set Left Parent Cell to B4 on the right Expansion panel

    (The panel can be displayed by right-clicking cell A4 and selecting Expansion from the drop-down list).

     D4

    =sum(E4:G4)

    Set Expansion Direction to No Expansion.

    C5

    =SUM(C4)

    Set Expansion Direction to No Expansion.

    D5

    =SUM(D4)

    Set Expansion Direction to No Expansion.

    E5

    =SUM(E4)

    Set Expansion Direction to No Expansion.

    F5

    =SUM(F4)

    Set Expansion Direction to No Expansion.

    G5

    =SUM(G4)

    Set Expansion Direction to No Expansion.

    The following figure shows the setting of cell A4.

    图片1.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

    App

    1c9efa5cbc10779e3596635f420c6f1.jpg

    HTML5

    ece1f2a2128eb28587184494a2b5d2a.png

    Completed Template

    You can download the template: 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