An analyst wants to display aggregated revenue trends over time using Databricks Dashboards, ensuring the query executes efficiently and filters dynamically based on user selections. Which approach should the analyst implement?
Trap 1: Hardcode the date ranges directly inside the visualization editor…
Hardcoded date ranges remove the parameterisation the scenario demands, so users cannot filter dynamically and every range change needs manual editing. This would be acceptable for a one-off fixed-period report, not for a dashboard serving variable stakeholder selections.
Trap 2: Export the raw revenue dataset into local browser memory and build…
Browser-side aggregation bypasses Databricks SQL warehousing, so dynamic filters cannot push down predicates to the underlying tables and the full dataset must be transferred. It would suit a small static dataset, not an aggregated revenue trend needing efficient warehouse execution.
Trap 3: Create separate static dashboards for every possible date…
Static dashboards cannot respond to user selections at query time, so each date combination requires separate maintenance and no dynamic filtering occurs. This suits fixed executive reporting where parameters never change, not the interactive filtering the scenario requires.
- A
Hardcode the date ranges directly inside the visualization editor to prevent users from accidentally querying large partitions of the underlying sales table.
Why it fails: Hardcoded date ranges remove the parameterisation the scenario demands, so users cannot filter dynamically and every range change needs manual editing. This would be acceptable for a one-off fixed-period report, not for a dashboard serving variable stakeholder selections.
- B
Write a standard SQL query grouping by date and configure dashboard-level filter widgets linked to query parameters to drive dynamic data retrieval.
Grouping by date in standard SQL pushes aggregation to the warehouse engine, while dashboard filter widgets bound to query parameters apply user selections at execution time. This satisfies both the dynamic filtering and efficient execution constraints without materialising redundant datasets.
- C
Export the raw revenue dataset into local browser memory and build JavaScript-based time-series filters within a custom HTML visualization card.
Why it fails: Browser-side aggregation bypasses Databricks SQL warehousing, so dynamic filters cannot push down predicates to the underlying tables and the full dataset must be transferred. It would suit a small static dataset, not an aggregated revenue trend needing efficient warehouse execution.
- D
Create separate static dashboards for every possible date combination required by different department stakeholders across the organization.
Why it fails: Static dashboards cannot respond to user selections at query time, so each date combination requires separate maintenance and no dynamic filtering occurs. This suits fixed executive reporting where parameters never change, not the interactive filtering the scenario requires.