Table Sorting

  • Last update:  2023-04-03
  • Overview

    Application Scenarios

    When you are creating table components, you may hope that the data can be displayed in a certain order based on the filtered results of the filtering component.

    Functions

    There are two ways to sort the table: by dimension fields of the analysis area and by the table header of the chart generation area.

    Note: Detail table only supports sorting by the table header.

     1.png

    Exclusion

    Table Type

    Description

    Detail Table

    Data in the detail table cannot be sorted by dimension fields.

    Data in calculation fields cannot be sorted by the table header.

    All Tables

    Date fields are not available in Custom Sort. You can only customize numeric fields through Interval grouping settings.

    Sorting of Dimension Fields

    Note: Detail table cannot be sorted by dimension fields.

    Ascending/Descending Sorting

    You can designate fields as sorting rules in Dimensions.

    Fields that can be set as sorting rules are as follows:

    Field

    Sort according to the field itself.

    Sort according to other fields in Dimensions.

    Sort according to the indicator fields dragged into the analysis area.

    (The analysis area includes result filters and table properties.)

     2.png

     

    1. Sorting According to the Field Itself

    The dimension field will sort itself automatically If the first character is identical, the subsequent character will be compared to determine the sort order. For example, sort the Contract Signing Time field in descending order based on itself.

     3.png

    The Contract Signing Time will be sorted in descending order based on the latest date.

    Note: The default sorting rule is UTF-8.

     4.png

    2. Sorting According to Other Fields

    a. Sort according to fields in Indicator

    For example, sort the Contract Type in ascending order based on Purchase Quantity field.

    b. Sort according to other fields in Dimensions

    • If other fields have a one-to-one correspondence with the field to be sorted, the field will be sorted accordingly. For example, sort the Contract ID field in ascending order based on Contract Signing Time.

    • If other fields correspond to multiple values, it will be sorted in ascending/descending order based on the smallest/largest field value in the group.

    For example, sort Contract Type in ascending order based on Contract Signing Time. Then Contract Type will be sorted in ascending order based on the value of Contract Signing Time.

     9.png

    Custom Sorting

    You can customize the  order by dragging and dropping.

    For example, to set custom sorting for contract types, click Custom Sort as follows:

     10.png

    Drag and drop field to set custom sorting and click OK to save.

     Animation 1.gif

    The sorting icon will not be displayed in the header if you select Custom Sort.

     11.png

    Sorting by Table Header

    The following will introduce different sorting rules in the header through different table components.

    Group Table

    Note: Sorting rules set for fields in Indicators will override those set for fields in Dimensions. Because of the grouping logic of the group table and cross table, it will first be sorted by summary values and then sorted within the group.

    How to sort field values in the header in the group table:

     12.png

    For example, set the Contract Type to sort by ascending order and the Contract Signing Time to sort by ascending order within the group.

     13.png

    Note: The default sorting rule is UTF-8.

    Sort Purchase Quantity in descending order. Because of the grouping logic of the group table and the cross table, field values will be sorted according to the summary value first and then sorted within the group.

    To be specific, sort the total purchase quantity of different contract types in descending order. Then sort the purchase quantity corresponding to the Contract Signing Time in each contract type in descending order within the group.

     14.png

    Cross Table

    Dimensions: supports Ascending and Descending order.

    Indicators: supports Ascending, Descending, and Not Sorting. The sorting rules set in fields of Indicators will override those set in the Dimensions. Because of the grouping logic of the group table and cross table, it will first be sorted by summary values and then sorted within the group.

    The header sorting of the cross table is basically the same as the header sorting of the grouped table. You can see section "Group Table" in this article.

    Note: When there are identical fields in the row and column dimensions, sorting one field will also synchronize the sorting for the other. For example, if both contract types are present in a cross table, sorting any contract type will also synchronize the sorting for the other contract type.

     Animation 2.gif

    Detail Table

    After the first field in the detail table has been sorted, the second and subsequent fields will be sorted within the group based on the sorting of the first field.

    Note: Calculation fields cannot be sorted.

    For example, sort the contract type, contract signing time, and contract amount in descending order. Then the Contract Amount will be sorted in descending order within the group after the first two descending sorting rules have been met.

     15.png

    Notes

    Sorting Empty Value

    Empty value is the minimum value. It will be sorted at the front in ascending order and at the end in descending order. .

     16.png

    Using Custom Sorting and Filter Components Together

    When utilizing the filter component and custom sorting in the table, all data (not just the filtered results) will be presented during sorting.

    附件列表


    主题: 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