Detailed Report

  • Last update:  2020-12-03
  • I. Overview

    1)A report is commonly used for data calculation, data statistics and data presentation.

    2)This article takes an annual income and expenditure statement as an example to introduce how FineReport helps you to do data calculation, data statistics and data presentation, as well as FineReport’s other functions such as sort order, intra-group calculation and typical formulas.

    3)This article also introduces how to design a simple page format.

    II. Design a basic report

    1. Create a new data set

    1) Click [+] and select [DB Query]


    2) In the pop-up DB Query window, select [FRDemo] and enter the following SQL statement

    select * from Annual


    2. Design the report

    1) Input headers in the cell range C2: I2:

    Actual Cost, Budget Cost, Actual Expenditure, Budgeted Expenditure, Actual Income, Budgeted Income, Actual Profit

    2) Drag datasets into cells

    • Drag [Region] into B3.

    • Drag [Month], [Actual Cost], [Budget cost], [Actual expenditure], [Budgeted expenditure], [Actual income], [Budgeted income] into the cell range B4: H4.


    3) Preview


    III. Add formulas

    1. Add summary formulas into the cell range C3:H3

     SUM(C4), SUM(D4), SUM(E4), SUM(F4), SUM(G4), SUM(H4)


    2. Add formulas in I3 and I4

    • Formula: Actual Profit = Actual Income - Actual Expenditure - Actual Cost

    • I3: G3 - E3 - C3

    • I4: G4 - E4 - C4


    3. Preview

    VI. Set a parent cell

    1. Click B4

    2. In the right-hand pane, select [Expand] and set B3 as the left parent cell.


    3. Preview

    VII. Add a Tree Node button

    1. Select B3

    2. Add a widget and configure its settings in the right-hand Widget Setting pane as follows

    • Select Widget: Button

    • Button Type: Tree Node Button


    3. Preview

    VIII. Set conditional formatting

    1. Select I4

    2. Take the following steps to set the property: click [+], and select [foreground], [Current Row] and [Red]

    3. Enter the formula: count(B4[!0]{B3=$B3&&I4>$I4})=0

    Meaning: Get the highest profits within the region by calculation and mark it in red


    4. Preview

    IX. Add regional statistics

    1. Select B5

    2. Combine the cell range [B5:I5]

    3. Enter the following formula: "Profitable Months: "+COUNT(B4{I4>0})

    Meaning: Profitable months within the region

    4. Set B3 as the left parent cell of B5


    5. Preview

    X. Set the sort order

    1. Select B4

    2. Select [Insert Cell Element] and [Advanced]

    3. Sort: Ascending

    4. Formula

    switch($$$,"Jan",1,"Feb",2,"Mar",3,"Apr",4,"May",5,"Jun",6,"July",7,"Aug",8,"Sep",9,"Oct",10,"Nov",11,"Dec",12)


    5. Preview

    XI. Optimize the display

    1. Set Arial font

    2. Set the background color of a header to grey and add borders

    3. Align texts in a cell, center align data columns in a cell, and left align and indent the first column

    4. Change the column width and the row height


    5. Preview


    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