- Getting Started
- Administration Guide
-
User Guide
- An Introduction to Wyn Enterprise
- Document Portal for End Users
- Data Governance and Modeling
- Working-with-Resources
- Working with Reports
- Working with Dashboards
- View and Manage Documents
- Understanding Wyn Analytical Expressions
- Section 508 Compliance
- Developer Guide
Sort Data
Sorting is the most commonly used operation for data analysis. Users can sort the data by one or more columns, alphabetically or numerically, in ascending or descending order. Sorting helps users to organize, better understand, and quickly visualize the data in a table.
For example, you might want to arrange the following list of highest 20 claim payouts in ascending order of policy number.
Or, you might want to arrange the data in groups (i.e. policy type - new and renewal) in ascending order of policy number.
Note: Sorting applied on a group has higher precedence than the sorting applied on a table.
To Apply Sort in a Table Data Region
Follow the below steps to sort the data in a table and group.
Apply Sort to a Table
Select the table and go to the Properties panel on the right.
Under the Data section, find the Sort Expressions property. This property contains the name of the field or an expression based on which you want to sort the data.
Click the Add Item button and choose the desired field from the Data Binding dropdown. The dropdown lists all the available fields in the bound dataset. You can also add expressions.
For example, select the PolicyNumber field from the Data Binding dropdown.
Alternatively, select the Details group from the Group pane, and go to the Sort Expressions property under the Data section.
Use the Show Items button to display the list of sort items for the selected table.
Choose whether to sort the data in ascending or descending order through the Sort button. The default order is ascending.
Preview the report.
This is how the table looks like when you sort the data in increasing order of policy number.
Apply Sort to a Group
The following steps assume that you have already added a group to the Table data region.
From the Groups pane, select the details group.
Applying sort to the details group helps in organizing the data within the groups.Under the Data section, find the Sort Expressions property. This property contains the name of the field or an expression based on which you want to sort the data.
Click the Add Item button and choose the desired field from the Data Binding dropdown. The dropdown lists all the available fields in the bound dataset. You can also add expressions.
For example, select the PolicyNumber field from the Data Binding dropdown.
Choose whether to sort the data in ascending or descending order through the Sort button. The default order is ascending.
Preview the report.
The group is now sorted alphabetically in decreasing order of policy type.
To Apply Interactive Sort in a Table Data Region
Interactive sort enables you to sort the data for table and group when you preview a report. It adds interactive sort buttons on the chosen column header and allows you to toggle between the increasing and decreasing sorting order.
Apply Interactive Sort to a Table
Select the column header cell according to which you want to sort the data. For example, select the header cell of PolicyType column.
Go to the Properties panel on the right and find the Sort Expression property. This property contains the name of the field or an expression based on which you want to sort the data.
Choose the desired field from the Data Binding dropdown. The dropdown lists all the available fields in the bound dataset. You can also add expressions.
For example, select the PolicyNumber field from the Data Binding dropdown.
Specify the scope to which you want to apply the sort in the Sort Expression Scope property. The only possible value for this property is the currently selected table name.
Choose whether to set the Sort Target property to the dataset or table.
Preview the report.
This is how a table will appear when you apply an interactive sort to it.
Apply Interactive Sort to a Group
The following steps assume that you have already added a group to the Table data region.
Select the group header cell where you want to add the interactive sort buttons.
Go to the Properties panel and find the Sort Expression property under the User Sort section. This property contains the name of the field or an expression based on which you want to sort the data.
Choose the desired field from the Data Binding dropdown. The dropdown lists all the available fields in the bound dataset. You can also add expressions.
For example, select the PolicyNumber field from the Data Binding dropdown.
Specify the scope to which you want to apply the sort in the Sort Expression Scope property. The possible values are the currently selected table name and its associated group(s). Set the Sort Expression Scope property to the desired group name.
Choose whether to set the Sort Target property to dataset, table, or group.
Preview the report.
This is how a table will appear when you apply an interactive sort to a group. Only the data within the specific group is sorted, rest of the data in the table remains unchanged.