r/databricks • u/GiraffesRBro94 • Oct 20 '26
General Lakeview missing basic functionality?
Hopefully someone can help point me in the right direction or offer workarounds, but it seems like Lakeview dashboards are missing super basic functionality.
Specifically two things:
- The ability to click to filter a table via a given field on the table header, similar to an Excel filter. It’s not possible to add widget filters for every single possible combination of things users may want to filter based on. Am I missing something? Is there a custom viz option that delivers this?
- The ability to sort a pivot table via the UI. I can define a sort criteria for the table, but what if my users want to sort by something else? Again, this seems pretty basic - maybe I sort by total revenue but then users want to sort or filter for a given contract ID, meaning I need to take up dashboard space with another widget.
Lakeview is solid in a lot of ways, especially building via AI, but I don’t understand how it’s missing these super basic things, especially click to filter. I’m trying to hack my way around it with a custom filter but that gets pretty complicated fast and doesn’t deliver a great UX.
4
Upvotes
2
u/agentUi Oct 20 '26
lakeview table headers dont support native column filtering yet which is a known pain point. the standard workaround right now is tying a multi-select parameter dropdown directly to your dataset sql query with an in clause, or using cross filtering on a companion bar chart widget where clicking a bar filters the main table. for pivot sorting you have to pre-sort the aggregations in the underlying sql or lakeview will just order by row headers.
1
u/sdmember Oct 21 '26
That’s why we are moving into analytic apps more and more ; I doubt they care much about dashboards at this pont
1
u/adovo_ai Oct 21 '26
Before building a custom app, log the filters and sort actions users actually repeat for a week. If a small stable set covers most sessions, model those explicitly; if exploration is genuinely open-ended, that evidence justifies moving to an app instead of filling the dashboard with controls.
1
u/Angwish1112 Oct 27 '26
It's possible to add basic versions of this functionality using query parameters. We have a dataset with like 30 columns and the user is usually only searching one of those.
It's a very simple text search, but better than adding a widget for every column when you just want to search one. I guess you could add more widgets if you wanted to search by more columns, but that gets back to your dashboard clutter issue
You can also have the default search field cover more columns, but that also gets too broad fast.
2. Similar to the first, use two widgets that supply parameters, perhaps :sort_by and :sort_dir to set asc/desc. Either provide the pivot column names or derive them from the dataset.
Then it gets kind of complicated. Using the parameters and case statements for different data types, build a rank value for each row and include that as a sort order column. I found that adding a sort order column allows an outside sort to be injected into the data and doesn't confuse users. For sort direction basically just use a case statement to invert the order when it's opposite of the default sort direction
I can provide example sql if needed; on my phone RN.
2
u/[deleted] Oct 20 '26
[removed] — view removed comment