Filtering data on a dashboard | Urbi Pro | Urbi Documentation
Urbi Pro

Filtering data on a dashboard

By default, dashboard scenes display all data from the samples that the layers in this scene are based on. When working with dashboards, you can apply additional filtering to data samples. For example, temporarily hide part of the data on the dashboard scene without changing the data sample.

You can filter data from the sample:

Important

When you filter data on a dashboard, data samples in the layers remain the same. Only the number of objects on the scene changes: on the map, in the legend, and in all widgets except a text widget and a timeline.

If you need to modify the data sample, use the Modifying data sample instruction.

Geofilters allow you to display data only for the selected territories on the dashboard scene without editing the sample. Apply geofilters to display data ​​only for specified territories on the map, in the legend, and in other widgets.

  1. Go to the Dashboards tab.

  2. Open the required dashboard.

  3. Open a scene using the arrows Left arrow and Right arrow. If there is only one scene in the dashboard, it opens automatically when you open the dashboard.

  4. To change territories for data displaying, use one of the following ways:

    • In the upper right corner of the dashboard scene, click on the names of the territories which data you need to hide:

      Filtering a data sample
    • Click Geofilters and specify the required territories in the Geofilter settings dialog. To hide the filter by territory, click Eye icon next to the geofilter name. To delete the geofilter, click Cross icon next to its name. To delete all geofilters, click Clear filters:

      Filtering a data sample

As a result, only data for the selected territory is left on the map and in the widgets.

Before applying the geofilter:

Geofilters are not applied

After applying the geofilter:

Geofilters are applied

You can interact with widgets to display only the data of your interest on the dashboard scene without editing the sample. Click one or multiple graph components (bars, columns, or slices) to display only relevant values on the map, in the legend, and in other widgets.

Example of widget with an active filter

Filtering is available for the following widget types:

You can apply filtering to both one layer and multiple layers (if the samples were created from one dataset).

For example, to apply the filtering for one layer to the dashboard scene created during Quick start:

  1. Go to the Dashboards tab.

  2. Open the required dashboard.

    On the scene, the Demand for pastry shops layer is hidden for convenience.

    Dashboard with no filters
  3. In the previously created Rating widget for the Pastry shops with a rating of 3 and above layer, click the 4-5 rating range (second line on the chart). As a result:

    • Only the pastry shops with a rating between 4 and 5 are left on the map.
    • Data in other widgets created from the same layer is updated. The Legend and the Number of reviews widgets display only the data for pastry shops with a rating between 4 and 5.
    • In the layers list, Filter applied icon appears next to the layer with the applied filter.
    Filter by rating is applied

    If the current dashboard scene contains widgets created from other layers, the filter does not affect them.

  4. To remove the filter, click Filter icon on the corresponding widget or click the selected range.

If the dashboard scene contains multiple layers which samples are created from the same dataset, you can apply a filter to all of them. For example, to apply the filtering for multiple layers on the dashboard scene created during Quick start:

  1. Go to the Dashboards tab.

  2. Open the required dashboard.

  3. Create a new layer from the same dataset as the Pastry shops with a rating of 3 and above layer. For example, a layer with Dubai downtown hotels:

    1. Create a layer from the Firms dataset.
    2. In the Geofilter settings dialog, select Burj Khalifa/Downtown Dubai and click Done.
    3. On the Filters tab, click Select categories. Then select Tourism / Leisure → Hotels and click Apply.

    Now two layers with firms are displayed on the dashboard scene.

    Dashboard with two layers with firms
  4. In the previously created Rating widget, click the 4-5 rating range (second line on the chart).

    By default, the filter is applied only to the Pastry shops with a rating of 3 and above layer, which it was created from.

    Filter is applied to the source layer only
  5. In the same widget, open the drop-down list next to Filter icon and select Apply to all layers.

    Apply the filter to all layers

    As a result:

    • Only pastry shops and hotels of the Dubai downtown with a rating between 4 and 5 are left on the map.
    • Data in other widgets from layers created from the same dataset is updated. The Legend and the Number of reviews widgets display only the data for pastry shops and hotels with a rating between 4 and 5.
    • In the layers list, Filter applied icon appears next to the layers with the applied filter.
    Filter is applied to all layers from the dame dataset

    The filter is not applied to the layers created from other datasets because the set of attributes is different.

  6. To apply the filter only to the source layer, open the drop-down list next to Filter icon again and select Source layer only.

  • You can select more than one chart component. In this case, filtering conditions are combined by the logical OR operator. For example, if you select two columns (4 and 5) in the Number of reviews widget, only the pastry shops that meet any of these conditions (with 4 or 5 reviews) are left on the map and in other widgets.

    Filter by two ranges of one widget is applied
  • You can filter data through multiple widgets at the same time. In this case, filtering conditions are combined by the logical AND operator. For example, if you select 4 reviews in the Number of reviews widget and the ≥5 rating range in the Rating widget, only the pastry shops that meet both of these conditions (with 4 reviews and ≥5 rating) are left on the map and in other widgets.

    If widgets belong to different layers, see more details in the Filtering for multiple layers section.

    Filter with ranges from two widgets is applied

If you uploaded a data file that contains an attribute of the Date type, you can filter the data from the sample by this attribute using the Timeline widget. The dashboard scene displays data for the selected time period.

See the Timeline instruction for more details.