Sorting the Cross Table Based on Each Column Indicator

  • Last update:June 26, 2023
  • Overview

    Functions

    You may hope to sort a column of data in the created cross table.

    For example, you use the Contract Information table to create a transaction volume cross table containing Registration Time and Contract Type. In this case, you want to sort the data of 2017 in descending order and view the corresponding contract volume for the contract type in 2017.

    Implementation Method

    • Copy the indicator field Contract Volume that needs to be sorted, and use Detail filtering to filter out the data that needs to be sorted separately.

    • Drag the copied indicator field into Result Filter.

    • Set the row dimension to be sorted based on the field dragged into Result Filter.

    Procedures

    Sample data: Contract Information.xlsx

    Copying the Field and Filtering Data

    To sort Contract Type of 2017, you need to first filter the data of 2017 (while other year's data still needs to be displayed in the cross table).

    The solution is to copy the Contract Volume field and use Detail filtering (equal to adding a column to the base table and filtering to the data of 2017).

    1. Copy the indicator field Contract Volume that needs to be sorted.

    2. Use Detail Filtering to filter out the Contract Volume data of 2017 that needs to be sorted separately.

    Enter the filtering condition: YEAR(Registration Time)=YEAR("2017/01/01")

    Setting the Sorting Criterion

    1. Set Registration Time to be grouped by year.

    2. Drag Contract Volume 1 into Result Filter.

    Set the Contract Type field in the row dimension to be sorted in descending order based on the Contract Volume 1 field.

    Demonstration

    Notes

    If the grouping criterion in section "Setting the Sorting Criterion" is set to YM (year and month), the filter condition can be set to LEFT(Registration Time,7)="2017-04".

    Ensure that the copied fields can accurately filter the data that needs to be sorted.


    附件列表


    主题: Creating a Visual Component
    • 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