Order by and Limit
Check out the given walk-through to understand the Order by and Limit functions for a View.
![](https://docs.bdb.ai/~gitbook/image?url=https%3A%2F%2F972575688-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRYq1HgffNfbnIMWPu1D5%252Fuploads%252FURwlXPK2JWmcIeJONNNp%252FOrder%28Asc%2526Desc%29%2526Limit.gif%3Falt%3Dmedia%26token%3D3dd8681f-d8a6-40a4-905d-638ae529eb14&width=768&dpr=4&quality=100&sign=eb454bc5&sv=1)
The user can sort data values displayed in a chart by using this option from the chart Properties.
Drag and Drop the desired dimensions and measures to create an instant view.
The Mixed chart gets selected by default to present the dragged data values.
![](https://docs.bdb.ai/~gitbook/image?url=https%3A%2F%2F972575688-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRYq1HgffNfbnIMWPu1D5%252Fuploads%252FKy5zW9mygkFymnvlDNFa%252Fimage.png%3Falt%3Dmedia%26token%3D5453c152-64ee-4c22-a095-4b381ba38222&width=768&dpr=4&quality=100&sign=fbe29e39&sv=1)
Open the Properties tab.
By default, the None option gets selected for the Order field.
The user gets the following options to display the selected data in a particular order.
None
Ascending
Descending
Manual Sort
The Order By and Limit options get displayed if the selected Order option is either Ascending or Descending.
Order By: Select an option from the drop-down list to set the order of the view (the dragged dimension and measure display in the Order By drop-down list)
Limit: Insert a number to limit the displayed dimension and measured values.
The View gets filtered with the provided order by and limit options.
![](https://docs.bdb.ai/~gitbook/image?url=https%3A%2F%2F972575688-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRYq1HgffNfbnIMWPu1D5%252Fuploads%252FVlfSfolp2Iprp2RWbyO8%252Fimage.png%3Falt%3Dmedia%26token%3D657a1d50-3909-4450-ba18-79b1c7894757&width=768&dpr=4&quality=100&sign=4dfaf35&sv=1)
Please Note:
This feature does not work for KPI tile, Semi Gauge, Map, Treemap Chart, and Metric Summary.
The view-specific Sort By option is provided on the storyboard.
Sort based on Non-existing Dimension
The Design workspace contains the Hidden category to drop a Dimension to sort the View Data. The dragged dimension to the Hidden category gets added to the Order By drop-down menu from where the user can use it to order the display of the current view.
Create a View by dragging some Dimension and Measure.
Apply some Order and Sorting using the Order and Order By fields. E.g., for the current image the Order is Ascending and the View is Order By the Sum of monthly salary.
![](https://docs.bdb.ai/~gitbook/image?url=https%3A%2F%2F972575688-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRYq1HgffNfbnIMWPu1D5%252Fuploads%252FElF4qyHy8JXmLlONeloF%252Fimage.png%3Falt%3Dmedia%26token%3Dc70315b4-eb55-4704-b8b1-06b36cc34429&width=768&dpr=4&quality=100&sign=4894ac2e&sv=1)
Drag one Dimension to the Hidden space.
Open the Order By option from the Properties tab.
The dragged Dimension gets listed under the Order By context menu.
The View gets sorted by the hidden Dimension as well.
![](https://docs.bdb.ai/~gitbook/image?url=https%3A%2F%2F972575688-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRYq1HgffNfbnIMWPu1D5%252Fuploads%252FL83g542aUwIi4dg0RSGS%252Fimage.png%3Falt%3Dmedia%26token%3Dacf72b14-75d7-4ca9-b7a5-f743f53c3cb2&width=768&dpr=4&quality=100&sign=abe2570f&sv=1)
Manual Sort
![](https://docs.bdb.ai/~gitbook/image?url=https%3A%2F%2F972575688-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRYq1HgffNfbnIMWPu1D5%252Fuploads%252F1br9MN4c5mzzva8IjpDP%252FManualSort.gif%3Falt%3Dmedia%26token%3D1673609a-8b11-4232-9fd0-7d840103fc16&width=768&dpr=4&quality=100&sign=1909b295&sv=1)
The users can manually sort a view by choosing the customized order they require. They can save the customized order and reuse it whenever required.
Navigate to the Design workspace.
Choose any combination of one Dimension and Measure.
A chart gets displayed in some order (by default, the None order option gets selected).
![](https://docs.bdb.ai/~gitbook/image?url=https%3A%2F%2F972575688-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRYq1HgffNfbnIMWPu1D5%252Fuploads%252FVvzczyKuLUxnEw5bfH2h%252Fimage.png%3Falt%3Dmedia%26token%3D66bc3fef-1549-4f76-933e-32030998adee&width=768&dpr=4&quality=100&sign=a6f6faa3&sv=1)
Select the Manual Sort option using the Order drop-down icon.
Click the new icon that appears for Manual Sort.
The Manual Sort window opens.
Select the New tab.
Enter a title for the Order Name.
The dragged Dimension appears in the Select Dimension drop-down list.
Arrange the fields by dragging them or using the arrows (move up, move down, move to the top, move to bottom) to arrange them in order. E.g., In the below-given image, the BU 6 is selected to Move to Top of the list.
Click the APPLY option after arranging the fields in the desired order.
The selected Dimension value moves as per the selected order.
The View fields get displayed in the selected Manual Sort order.
![](https://docs.bdb.ai/~gitbook/image?url=https%3A%2F%2F972575688-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRYq1HgffNfbnIMWPu1D5%252Fuploads%252FeBHjuSVhLSAzjFqBOHtm%252Fimage.png%3Falt%3Dmedia%26token%3Dc5ee06c6-44fb-4c06-9c8f-230ff04db823&width=768&dpr=4&quality=100&sign=8ac0411b&sv=1)
Please Note: The Saved tab lists all the saved Orders by the user. Follow the below-given steps to use a saved order.
Open the Saved tab from the Manual Sort window.
Select a saved order using the Select Order drop-down.
Click the SAVE & APPLY option.
The saved manual sort applies to the current view.
![](https://docs.bdb.ai/~gitbook/image?url=https%3A%2F%2F972575688-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FRYq1HgffNfbnIMWPu1D5%252Fuploads%252Fn2YFcqyxKKFrkOjUCZGM%252Fimage.png%3Falt%3Dmedia%26token%3Db2a5052e-b49d-4f69-b7b0-2a14df6e383b&width=768&dpr=4&quality=100&sign=6844473d&sv=1)
Last updated