<?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 Lakeview dashboard dynamically change filter values in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/lakeview-dashboard-dynamically-change-filter-values/m-p/66061#M7031</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Greetings everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are trying to implement a series of visualizations. All these visualizations have queries assigned to them in the form of “ Select * from test table where timestamp between :Days start and :Days end”. The is also a filter applied to each one of those parameters so we can check the time period we want. We would like to have a schedule that refreshes once a day and dynamically uses the filters (for example the start time should be the current timestamp - 7 days and the end time should be the current timestamp). Is there any way to do that? Moreover is there anyway to setup a pre set warehouse that this dashboard will run on after without choosing it manually in the first time?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also during the development of the lakeview dashboards we noticed 2 inconsistencies with the dashboard. The first one is that the filter wouldn’t let us choose a different date (we don't know how to replicate this one).&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;The other one is that half of the visualizations were displaying data and some of them were not with the error “Missing selections for parameters”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To replicate this do the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Create queries in the data tab and have them to have parameters (2 of them)&amp;nbsp; in the form of “:parameter” with the type of “ Date and Time “.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;Leave those queries without a Default value for the parameters as shown in the screenshot below.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EDDatabricks_0-1712826834624.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7018iABE886C1F77BA620/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="EDDatabricks_0-1712826834624.png" alt="EDDatabricks_0-1712826834624.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Create 2 filters. One of them has one parameter and the other one has the other.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;If you try to set the value of the filters and refresh the dashboard some visualizations return this error message.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EDDatabricks_1-1712826864074.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7019i484447D41F8B1D92/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="EDDatabricks_1-1712826864074.png" alt="EDDatabricks_1-1712826864074.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Also we noticed that if you don't have a default value in the query parameter associated with the visualization you can’t edit the visualization. But if you add a default value in the query parameter, then edit and then remove the default value the dashboard remains as edited. Is there a way to not have a default parameter and edit the visualization without going through this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2024 09:28:21 GMT</pubDate>
    <dc:creator>EDDatabricks</dc:creator>
    <dc:date>2024-04-11T09:28:21Z</dc:date>
    <item>
      <title>Lakeview dashboard dynamically change filter values</title>
      <link>https://community.databricks.com/t5/get-started-discussions/lakeview-dashboard-dynamically-change-filter-values/m-p/66061#M7031</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Greetings everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are trying to implement a series of visualizations. All these visualizations have queries assigned to them in the form of “ Select * from test table where timestamp between :Days start and :Days end”. The is also a filter applied to each one of those parameters so we can check the time period we want. We would like to have a schedule that refreshes once a day and dynamically uses the filters (for example the start time should be the current timestamp - 7 days and the end time should be the current timestamp). Is there any way to do that? Moreover is there anyway to setup a pre set warehouse that this dashboard will run on after without choosing it manually in the first time?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also during the development of the lakeview dashboards we noticed 2 inconsistencies with the dashboard. The first one is that the filter wouldn’t let us choose a different date (we don't know how to replicate this one).&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;The other one is that half of the visualizations were displaying data and some of them were not with the error “Missing selections for parameters”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To replicate this do the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Create queries in the data tab and have them to have parameters (2 of them)&amp;nbsp; in the form of “:parameter” with the type of “ Date and Time “.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;Leave those queries without a Default value for the parameters as shown in the screenshot below.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EDDatabricks_0-1712826834624.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7018iABE886C1F77BA620/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="EDDatabricks_0-1712826834624.png" alt="EDDatabricks_0-1712826834624.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Create 2 filters. One of them has one parameter and the other one has the other.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;If you try to set the value of the filters and refresh the dashboard some visualizations return this error message.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EDDatabricks_1-1712826864074.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7019i484447D41F8B1D92/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="EDDatabricks_1-1712826864074.png" alt="EDDatabricks_1-1712826864074.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Also we noticed that if you don't have a default value in the query parameter associated with the visualization you can’t edit the visualization. But if you add a default value in the query parameter, then edit and then remove the default value the dashboard remains as edited. Is there a way to not have a default parameter and edit the visualization without going through this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 09:28:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/lakeview-dashboard-dynamically-change-filter-values/m-p/66061#M7031</guid>
      <dc:creator>EDDatabricks</dc:creator>
      <dc:date>2024-04-11T09:28:21Z</dc:date>
    </item>
  </channel>
</rss>

