<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dashboard use 'Multiple values' in underlying query in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dashboard-use-multiple-values-in-underlying-query/m-p/93898#M38781</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;You've raised an important point about the current limitations in Databricks dashboards when it comes to multi-value parameter widgets and multi-line plots.&lt;/P&gt;&lt;P&gt;As of now, the Databricks dashboarding functionality does indeed have some limitations when handling multi-value dropdowns in queries and dynamically generating multi-line plots based on multiple selected values. This limitation can be a challenge for use cases like yours where users need to compare data for multiple units over time on the same plot.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Workarounds:&lt;/STRONG&gt;&lt;BR /&gt;Although multi-value parameters aren't directly supported, there are a few approaches you could consider to get closer to the desired functionality:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Custom Notebook Visualizations&lt;/STRONG&gt;: You can use Databricks notebooks with matplotlib, plotly, or seaborn to create custom multi-line plots. These libraries handle multi-line plots well, and you can set up a dbutils.widgets.multiselect to let users select multiple units. By dynamically generating the plot based on the widget input, this approach gives you more control over both the query and the visualization.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Query Adjustments&lt;/STRONG&gt;: You can handle multi-value selection logic within SQL queries in your notebook, using IN conditions to filter based on multiple selected units. Then, plot the results using Python/R visualization libraries within the notebook itself, if the dashboard interface isn’t flexible enough.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Future Plans&lt;/STRONG&gt;:&lt;BR /&gt;Regarding future support for this feature, it’s best to keep an eye on the Databricks release notes and the product roadmap for any updates. You can also submit a feature request to Databricks Product Management if this is a critical use case for you, as they actively consider feedback from the community to prioritize new features.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Tanishk Chaturvedi,&lt;BR /&gt;Senior Data Engineer.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2024 12:56:25 GMT</pubDate>
    <dc:creator>iamtanishk</dc:creator>
    <dc:date>2024-10-14T12:56:25Z</dc:date>
    <item>
      <title>Dashboard use 'Multiple values' in underlying query</title>
      <link>https://community.databricks.com/t5/data-engineering/dashboard-use-multiple-values-in-underlying-query/m-p/93837#M38771</link>
      <description>&lt;P&gt;Currently, it appears that the Dashboards functionality does not support linking a 'Multiple Values' widget to a query parameter, nor does it allow the creation of a line plot with multiple lines.&lt;/P&gt;&lt;P&gt;We are developing a dashboard where users need to visualize power over time for specific units, with the ability to select these units via a multi-value dropdown widget. The expectation is for the plot to dynamically add or remove lines based on the selected units.&lt;/P&gt;&lt;P&gt;At present, I cannot find an option to generate multi-line plots or to connect a multi-value parameter to a query—only single-value parameters seem to be supported.&lt;/P&gt;&lt;P&gt;Could you clarify if there are plans to introduce this feature in the near future? Alternatively, is there a specific reason why multi-value queries and multi-line plots are not currently available?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 10:00:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dashboard-use-multiple-values-in-underlying-query/m-p/93837#M38771</guid>
      <dc:creator>AnatolBeck</dc:creator>
      <dc:date>2024-10-14T10:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard use 'Multiple values' in underlying query</title>
      <link>https://community.databricks.com/t5/data-engineering/dashboard-use-multiple-values-in-underlying-query/m-p/93898#M38781</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;You've raised an important point about the current limitations in Databricks dashboards when it comes to multi-value parameter widgets and multi-line plots.&lt;/P&gt;&lt;P&gt;As of now, the Databricks dashboarding functionality does indeed have some limitations when handling multi-value dropdowns in queries and dynamically generating multi-line plots based on multiple selected values. This limitation can be a challenge for use cases like yours where users need to compare data for multiple units over time on the same plot.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Workarounds:&lt;/STRONG&gt;&lt;BR /&gt;Although multi-value parameters aren't directly supported, there are a few approaches you could consider to get closer to the desired functionality:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Custom Notebook Visualizations&lt;/STRONG&gt;: You can use Databricks notebooks with matplotlib, plotly, or seaborn to create custom multi-line plots. These libraries handle multi-line plots well, and you can set up a dbutils.widgets.multiselect to let users select multiple units. By dynamically generating the plot based on the widget input, this approach gives you more control over both the query and the visualization.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Query Adjustments&lt;/STRONG&gt;: You can handle multi-value selection logic within SQL queries in your notebook, using IN conditions to filter based on multiple selected units. Then, plot the results using Python/R visualization libraries within the notebook itself, if the dashboard interface isn’t flexible enough.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Future Plans&lt;/STRONG&gt;:&lt;BR /&gt;Regarding future support for this feature, it’s best to keep an eye on the Databricks release notes and the product roadmap for any updates. You can also submit a feature request to Databricks Product Management if this is a critical use case for you, as they actively consider feedback from the community to prioritize new features.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Tanishk Chaturvedi,&lt;BR /&gt;Senior Data Engineer.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 12:56:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dashboard-use-multiple-values-in-underlying-query/m-p/93898#M38781</guid>
      <dc:creator>iamtanishk</dc:creator>
      <dc:date>2024-10-14T12:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard use 'Multiple values' in underlying query</title>
      <link>https://community.databricks.com/t5/data-engineering/dashboard-use-multiple-values-in-underlying-query/m-p/96506#M39282</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thank you for your reply.&lt;/P&gt;&lt;P&gt;Notebooks are not really a workaround for me here but thank you for the walk through.&lt;/P&gt;&lt;P&gt;I think this feature is very important so I hope this reaches your backlog somehow. As this is something a Grafana for example is able to do out of the box. So this is not really something that should need a request for prioritization but should rather be a basic feature of dashboards.&lt;/P&gt;&lt;P&gt;I have not the time to contact and engage with your product management to be honest besides I don't know how to reach them.&lt;/P&gt;&lt;P&gt;Again thank you and best regards!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 13:01:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dashboard-use-multiple-values-in-underlying-query/m-p/96506#M39282</guid>
      <dc:creator>AnatolBeck</dc:creator>
      <dc:date>2024-10-28T13:01:11Z</dc:date>
    </item>
  </channel>
</rss>

