Skip to main content Skip to complementary content

The seventh sheet: Filters

In the seventh sheet you will add filters to limit the data used in a visualization to a specific subset of that data.

Filters sheet when finished

You can filter by:

  • Values: Filter using selected values from a field. For example, filter results to only include those values you select from a field.

  • Searches: Filter using matches from a search. For example, filter results to only include those that start with a specific code prefix.

  • Condition: Filter matching specified conditions. For example, filter results to only include those that meet a numeric threshold.

  • Clear selection: Filter to exclude selections made in other visualizations from this visualization for the chosen field.

For this sheet, you will create four visualizations and apply a filter to each one. Create a new sheet and name it Filters.

Filtering by values

For your first filtered visualization, you will create a donut chart that shows sales by city and filter it by the value Nordic from the field Region.

  1. In the assets panel, open Charts.

  2. Under Visualizations, select a pie chart and drag it to the sheet.

  3. In the properties panel, under AppearancePresentation select the Donut chart Donut.

  4. Go to Fields and drag and drop the field Cityonto the chart and add it as a dimension.

  5. Drag and drop the field Sales onto the chart.

  6. In the properties panel, under Filters, click Add and select the field Region.

  7. Click Region under Filters and select Values.

  8. Select Nordic.

  9. Click the Donut chart at the top of the donut chart and enter Sales by city (Nordic) as the title.

Filtering by search

For the next visualization, you will make a KPI chart and filter it to display only the sales results for juice.

  1. In the assets panel, open Charts.

  2. Under Visualizations, select the KPI KPI and place it to the right of Sales by city (Nordic).

  3. Drag and drop the field Sales onto the chart.

  4. In the properties panel, under Filters, click Add and select Product Sub Group.

  5. Click Product Sub Group under Filters and select Search.

  6. Select Matches exactly.

  7. Enter Juice.

  8. Click the Donut chart at the top of the KPI chart and enter Sales (Juice) as the title.

Filtering by condition

Next, you will create a vertical grouped bar chart and filter it so it only includes sales values greater than 40,000.

  1. In the assets panel, open Charts.
  2. Under Visualizations, drag a bar chart to the sheet, placing it beneath the donut chart.
  3. Under Data, click Add under Dimensions and select the field Product Type.

  4. Click Add under Measures and select the field Sales.

  5. Under Filters, click Add and select the field Sales.

  6. Click Sales under Filters.

  7. Select Condition.

  8. Select Compare.

  9. Under Greater than, enter 40000.

  10. Click the Donut chart icon on the bar chart and enter Sum of sales greater than 40K by product as the title.

Filtering by clearing the selection

Finally, you will create a donut chart and add a clear selection filter so that selections in other charts from Region do not impact this chart.

  1. In the assets panel, open Charts.
  2. Under Visualizations, drag a pie chart to the sheet, placing it to the right of Sum of sales greater than 40K by product.
  3. In the properties panel, under AppearancePresentation, select the Donut chart Donut.

  4. Go to Fields and drag and drop the field Region onto the chart as a dimension.

  5. Drag and drop the field Sales onto the chart.

  6. Under Filters, click Add and select the field Region.

  7. Click Region under Filters.

  8. Select Clear selection.

  9. Click the Donut chart icon at the top of the donut chart and enter Sales by region as the title.

You can now make selection in Region in other charts without changing this chart. Selections made in this chart impact other charts, however.

You are done making visualizations. Now you will complement your application with data storytelling.

Learn more

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!