Quarterly report

  • Last update:  2021-10-26
  • I. Overview

    There is a date-type data column in the database. When you want to input a date, the data of the quarter of the date can be queried, as shown in the figure below. How to achieve this?

    1.jpg

    II. Example

    1) Opening the template

    Open the template:%FR_HOME%\webroot\WEB-INF\reportlets\doc-EN\Parameter\Weekly_report.cpt

    2) Parameter settings

    You only need to change the weekly report in the parameter interface to the quarterly report. The table sample and parameter type in the parameter interface do not need to be modified.

    3) Setting filter conditions

    Delete the filter condition of the original A2 cell, and then set the filter condition for A2 cell again, as shown in the figure below:

    2.jpg

    The first formula:YEAR(Payment date) ==YEAR($Date);

    The second formula:ROUNDUP(MONTH(Payment date)/3.3,0) ==ROUNDUP(MONTH($Date)/3.3,0) ==ROUNDUP(MONTH($Date)/3.3,0)The quarter representing the order date should be the same as the quarter of the query.

    Note:ROUNDUP(MONTH(Payment date)/3.3,0) represents the quarter in which the month is retrieved.ROUNDUPis rounded up so that multiples of 3 are in the corresponding quarter, so the number 3.3 can be any decimal between 3 and 4. If it's June, six divided by 3.3 and rounded up is two, which means six in the second quarter, and so on. The second argument, 0, takes the decimal place to be 0.

    Save the template, click Pagination Preview, and select a date to query only the data for the quarter of the date, as shown above.

    For details, see the template: %FR_HOME%\webroot\WEB-INF\reportlets\doc-EN\Parameter\Quarterly_report.cpt

    Attachment List


    Theme: Parameter
    Already the First
    • 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