Creating Application Filters that Control Optional Measures

  1. Open the previously created application World Regional Populations. It contains the visual Regional Populations.
  2. In left navigation, switch to Filters tab.
  3. Click Create Parameter to create a second filter.
  4. Hover over the new filter until the controls appear on the top right, and click the icon (gear).
  5. In the Settings modal window, switch to Values tab, and enter the following:

    • Under Title, enter Display Measures.
    • Under Output Parameter, enter mes.

      Note that this is the parameter from Creating Visuals with Optional Measures.

    • Under Specified values, enter the following two rows:

      • Value: life_expectancy, Label: Life Expectancy
      • Value: gdp_per_capita, Label: GDP per Capita
    Configuring Values Settings for the Optional Measure
    Configuring Values Settings for the Optional Measure
  6. In the Settings modal window, switch to Display Settings tab, and select options Permit only one item to be selected and In single select mode, include a 'No Selection' option.

    Ensure that the other options are not checked.

    Click Apply.

  7. Click Save in the upper left corner to preserve the changes to the application.
  8. Switch to application viewing mode, and select World Regional Populations.

    Application with Optional Dimension and Measures, at Runtime
    Application with Optional Dimension and Measures, at Runtime
  9. In the Display Measures filter, select Life Expectancy.

    Choosing to Filter on 'Life Expectancy'
    Choosing to Filter on 'Life Expectancy'

    Note that the table now has a new column, life_expectancy.

    Optional Measure 'Life Expectancy' Included in Application
    Optional Measure 'Life Expectancy' Included in Application
  10. In the Display Measures filter, select GDP per Capita.

    Choosing to Filter on 'GDP per Capita'
    Choosing to Filter on 'GDP per Capita'

    Note that the additional column is now titled gdp_per_capita, not life_expectancy.

    If you hover the pointer over the filter indicator at the top right corner of the application, you will see that there are two filter parameters: dim: country, and mes: gdp_per_capita.

    Optional Measure 'GDP per Capita' Included in Application
    Optional Measure 'GDP per Capita' Included in Application
  11. [Optional] You can easily navigate between the permutations of filter outputs you create by using filter navigation controls at the top right corner.