cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I make a parameter in a Databricks SQL dashboard apply to multiple visuals?

User16826992666
Valued Contributor

I have created a few queries and visualizations in Databricks SQL which use parameters. Each query has the same parameter. But when I pin the visualizations to a dashboard, each of the visuals keeps it's own parameter drop down.

I want to have one drop down at the top of the dashboard which applies to multiple visuals. Is this possible?

3 REPLIES 3

User16826992666
Valued Contributor

To achieve this, you can edit the source of the parameters on each of the visuals on the dashboard. The source for each visual can be changed to read from a shared dashboard parameter.

These are the steps to do this-

1.) First click on the three dots in the top right corner of the visual on the dashboard.

2.) Click on "Edit Parameters"

3.) Click the edit button underneath the "Value Source" column

4.) From there, you can either make that parameter a dashboard level parameter or choose an existing dashboard parameter as the source for the visual

Using this method, you can create one or a series of dashboard level parameters which can then be applied to all of the corresponding visuals on the dashboard.

Has this feature been removed? I cannot find the edit parameters in the menu anymore.

Aleks
New Contributor II

For parameters, the feature is changed. You are now able to assign a mapping to parameters upon adding a new visualization to the dashboard. Parameters which were added to the query AFTER it was included on a dashboard are not available and cause the visualization to fail. Removing and reattaching the visualization resolves the issue.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group