Ranking

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

    1) A ranking is often used to indicate the relative position of a piece of data in a set of data, for instance:

    • The ranking of a salesperson nationwide by sales volume.

    • The ranking of a salesperson in his/her region by sales volume.

    2) This article introduces how to calculate a ranking through hierarchical coordinates.

    II. Steps

    1. Create a new dataset [ds1]

    1) Create a new DB Query.

    2) Input the following SQL function:

    SELECT Region, Salesperson, SUM(Sales_Volume) AS SalesFROM Sales_VolumeGROUP BY Region, Salesperson

    2. Design the report body

    1) Type headers.

    2) Drag data columns in [ds1] into the cell range B3:D3.

    3) Preview.


    3. Calculate the ranking

    1) Input the following formula in E3: COUNT(D3[!0]{B3 = $B3 && D3 > $D3}) + 1.

    Formula segment

    Meaning

    D3[!0]{B3 = $B3 && D3 > $D3}

    Fetch sales volumes higher than that of the current salesperson in the region where the salesperson is located.

    COUNT(D3[!0]{B3 = $B3 && D3 > $D3})

    Calculate how many pieces of data on sales volumes higher than that of the current salesperson in this region.

    If the current salesperson has the highest sales volume in the region, then the result is 0.

    COUNT(D3[!0]{B3 = $B3 && D3 > $D3}) + 1

    Add 1 to the result obtained in the previous step to get the ranking of the current salesperson in the region by sales volume.

    2) Input the following formula in F3: COUNT(D3[!0]{D3 > $D3}) + 1

    Formula segment

    Meaning

    D3[!0]{D3 > $D3}

    Fetch sales volumes higher than that of the current salesperson nationwide.

    COUNT(D3[!0]{D3 > $D3})

    Calculate how many pieces of data on sales volumes higher than that of the current salesperson nationwide.

    If the current salesperson has the highest sales volume nationwide, than the result is 0.

    COUNT(D3[!0]{D3 > $D3}) + 1

    Add 1 to the result obtained in the previous step to get the ranking of the current salesperson nationwide by sales volume.


    4. Preview


    Download the template

    Ranking.cpt


    Attachment List


    Theme: Report Features
    • 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