Creating Application Filters that Control Variable Dimensions

  1. Open a new application based on US County Population dataset.
  2. Add the visual Average population by <<dim>> to the application.
  3. In left navigation, switch to Filters tab.
  4. Click Create Parameter.

  5. Hover over the new filter until the controls appear on the top right.

  6. Click the (gear) icon.

  7. In the Settings modal window, switch to Values tab, and enter the following:

    • Under Title, enter Dimension Level.
    • Under Output Parameter, enter dim.

      Note that this is the parameter from Creating Visuals with Variable Dimensions.

    • Under Specified values, enter the following two rows:

      • Value: stname, Label: State
      • Value: ctyname, Label: County
  8. In the Settings modal window, switch to Display Settings tab, and check the option next to Permit only one item to be selected.

    Ensure that the other options are not checked.

    Click Apply.

  9. Change the name of the application to Population by Different Aggregation Levels.
  10. Click Save.
  11. Switch to application View mode, and select Population by Different Aggregation Levels.

    Note that the default choice, stname, displays on the X axis.

  12. In the Dimension Level filter, select County.

    Note that the title of the graph and the axis changed to include ctyname.

    You may also notice that your graph does not appear to have any bars. In this particular dataset, there are large differences among populations of various counties; a great majority has populations under one million, and a select few represent urban areas with extremely dense population.

    In the application, scroll to the extreme right of the visual to see the graph.

  13. In the Dimension Level filter, select State.

    Notice that this time, the name of the dimension, stname, is part of the title.