Skip to content

Support

How to filter and sort data using the data table

The Data table panel allows you to sort and filter data. Filter data to show a subset of your dataset in the map, chart, legend and data panel. To sort and filter data, you will need to select the…

The Data table panel allows you to sort and filter data. Filter data to show a subset of your dataset in the map, chart, legend and data panel.

Screenshot showing sort and filter in CartoVista when filtering and sort data using the data table

To sort and filter data, you will need to select the right layer in the data panel first if your map has multiple layers. Use the list in the top left-hand side corner of the data panel to select the layer you want to filter or sort:

Screenshot showing data table layer selection in CartoVista when filtering and sort data using the data table

If the columns you want to sort or filter by are not visible, you can select other columns to show in the data table settings

Screenshot showing info panel settings in CartoVista when filtering and sort data using the data table

in the top right-hand side corner of the data panel. See our dedicated article to learn more.

Sort data

Click on a column’s header to sort it. The first click will sort the data ascending

Screenshot showing sort ascending in CartoVista when filtering and sort data using the data table

, the second click will sort the data descending

Screenshot showing sort descending in CartoVista when filtering and sort data using the data table

, and the third click will clear the sort to go back to the original order.

Screenshot showing sort in CartoVista when filtering and sort data using the data table

You can use the page navigation below the table to navigate in your table: click on the numbers to navigate to a page, and use the arrows to navigate to the next/previous page or the first/last page:

Screenshot showing navigate pages in CartoVista when filtering and sort data using the data table

You can also change the number of items per page:

  • “auto”: the number of items will change when you resize the panel to always show the maximum number of items.
  • fixed number: select a fixed number of items. A scroll bar will be added to the panel to visualize all items.

Screenshot showing change items per page in CartoVista when filtering and sort data using the data table

Filter data

Click on

Screenshot showing filter in CartoVista when filtering and sort data using the data table

in the column header to filter the data table using this column:

  • if your column has a small number of different values, you can check the values you want and click “Filter“:

Screenshot showing filter dialog choice in CartoVista when filtering and sort data using the data table

  • if your column has a lot of different values, you will need to use the conditional filter. Choose one of the conditions (Is equal to, Is not equal to, Is greater than or equal to, Is greater than, Is less than or equal to, Is less than, Is null, Is not null), enter the value and click “Filter“. You can also set a secondary condition with “And” or “Or”.

Screenshot showing filter dialog condition in CartoVista when filtering and sort data using the data table

At what thresholds is the conditional filter used?

  • Numeric data: if there are more than 10 different values, the conditional filter is used.
  • String data: if there are more than 50 different values, the conditional filter is used.
  • Date/Time data: if there are more than 20 different values, the conditional filter is used.

When a column is filtered, the filter icon in the header will be blue:

Screenshot showing filtered in CartoVista when filtering and sort data using the data table

. You can set multiple filters on different columns. Click on

Screenshot showing remove filter in CartoVista when filtering and sort data using the data table

to clear all filters on the layer.

Please note that data cannot be filtered in the Selection tab. See our dedicated article on how to select data.

Save filters in the slide

Map Creators with edit permissions on the map can save filters in the current slide.

To save your filters, switch to the edit mode of your slide if you are not currently editing it:

Screenshot showing edit this slide in CartoVista when filtering and sort data using the data table

Then, save your changes by clicking “Save” or the green dot in the top bar 

Screenshot showing slide save button in CartoVista when filtering and sort data using the data table

:

Screenshot showing save slide in CartoVista when filtering and sort data using the data table

By saving your slide, all other slide elements will be saved. See what other elements will be saved here.

Search documentation