Filter Data in Query

In case you want to filter out some specific data, you can do it using the Filter building block. Following the steps from How to Create a Query. Here are the steps to filter data in a query.

  1. Go to Analytics > Dashboard Manager > Queries.

  2. Open an existing query.

  3. Click + under the default Series (S1) building block.

  4. In the Add building block menu:

    1. Select Filter.

      Add building block menu listing Join, Filter, and Summary, with Filter selected.
      Add building block menu
  5. In the Filter section:

    1. Click Add Rule.

    2. Select Column for filtering condition.

    3. Select Condition type.

    4. Select Value.

      Filter section with one rule. The column Gapminder Country, the condition equals, and the value Canada. Below the rule are the Add Rule, Add Group, and Add Match None Group buttons.
      Filter rule settings
  6. Close the filter setting section.

  7. Click Save.

The resulting query flows from the Series building block through the Filter building block to the Output.

Demo Query in the query editor, showing three connected building blocks. Series S1 with the Gapminder source, Filter F1 with the condition Gapminder Country equals Canada, and Output. A Valid label appears at the top of the editor.
Query with a filter applied

info You can click Preview Output to see filtered data.

Output preview table showing only rows where Country is Canada, for the years 1950 to 1959. Columns include Fertility, Life Expectancy, Population, Region, and Year, each with a search field.
Filtered output preview