Skip to content

Filtering Dashboards Using Drop-down

When creating dashboard widgets, you may want to let end users filter the widget’s output based on a selected value. This can be achieved using a dynamic dropdown variable from Global Settings.

For example, you may want to list customer names stored in a data table and allow users to select a specific customer from a dropdown, so the widget only displays data related to that customer.

  1. Go to Data-store → Views → click Create New.
  2. Configure the new view as follows:
    • Choose the column containing the values you want to display in the dynamic drop-down.

    • Add a filter:

      • Condition: Text Contains

      • Value type: Placeholder

      • Value: type filter and press Enter.

    • Add a DISTINCT clause to ensure only unique options appear in the drop-down.

    • Set the output column to the one containing the drop-down values.

  1. Publish the view.

Step 2: Create a Dynamic Drop-down Variable in Global Settings

Section titled “Step 2: Create a Dynamic Drop-down Variable in Global Settings”
  1. Navigate to Dashboard V2 → Global Settings → Add New Variable.
  2. Configure the variable:
    • Name: Enter a descriptive name.

    • Type: Select Dynamic Drop-down.

    • View: Select the view you created in Step 1.

    • Column: Select the column to display options from.

    • (Optional) Default Value: Set if needed.

  3. Click Add to save the variable.

Step 3: Apply the Dynamic Dropdown Variable as a Widget Filter

Section titled “Step 3: Apply the Dynamic Dropdown Variable as a Widget Filter”
  1. Edit the widget where you want the filter applied.
  2. In the filter settings, select the Global Settings variable you created.
  3. Save and Publish the widget.

Once published, the filter will be available in the dashboard view for end users to interact with.