<?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 Group by using a filter/parameter in SQL dashboard? in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/group-by-using-a-filter-parameter-in-sql-dashboard/m-p/37908#M5467</link>
    <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I'm trying to build a SQL dashboard where the consumer can select a date range, but then can also select whether they want to see the results grouped by day/week/month over that timeframe. I think this is possible for a notebook dashboard by using a widget that has a drop down and then used pandas group by, but I'm not sure how this would work with a SQL dashboard.&lt;/P&gt;&lt;P&gt;I tried using a parameter and then a case when with to check the parameter and return the date as a date/week/month and then using group by on that, but SQL is unhappy with taking a parameter in the conditional.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 22:48:30 GMT</pubDate>
    <dc:creator>ehpogue</dc:creator>
    <dc:date>2023-07-18T22:48:30Z</dc:date>
    <item>
      <title>Group by using a filter/parameter in SQL dashboard?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/group-by-using-a-filter-parameter-in-sql-dashboard/m-p/37908#M5467</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I'm trying to build a SQL dashboard where the consumer can select a date range, but then can also select whether they want to see the results grouped by day/week/month over that timeframe. I think this is possible for a notebook dashboard by using a widget that has a drop down and then used pandas group by, but I'm not sure how this would work with a SQL dashboard.&lt;/P&gt;&lt;P&gt;I tried using a parameter and then a case when with to check the parameter and return the date as a date/week/month and then using group by on that, but SQL is unhappy with taking a parameter in the conditional.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 22:48:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/group-by-using-a-filter-parameter-in-sql-dashboard/m-p/37908#M5467</guid>
      <dc:creator>ehpogue</dc:creator>
      <dc:date>2023-07-18T22:48:30Z</dc:date>
    </item>
  </channel>
</rss>

