cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Group by using a filter/parameter in SQL dashboard?

ehpogue
New Contributor III

Hey all,

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.

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.

Any thoughts?

0 REPLIES 0

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