Setting Default Values for Dashboard Filter Components
Last updated: March 21, 2025
While filter selections are not saved between sessions, you can set default values for filter components like dropdowns when embedding a dashboard. This allows you to pre-select different values depending on where and how you embed the dashboard.
Setting Default Values
When embedding your dashboard, use the variables parameter to specify default values for your filter components. The variable name should match the name of your filter component.
<explo-dashboard
dashboard-id="your-dashboard-id"
variables='{"customerFilter": ["Customer A", "Customer B"]}'
></explo-dashboard>
This approach is particularly useful when:
Different users need different default selections set by default when the dashboard loads
You're embedding the same dashboard in multiple places with different initial states
You want to preset filters based on user context or preferences
For detailed implementation instructions, refer to our dashboard embedding documentation.