question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Only show valid filter combinations in Filter Box

See original GitHub issue

Hi, is it possible to have a filterbox with mutiple filters whose filter options are dependant on the already selected entries?

Let’s say we have the following table “sold_products”:

customer  | product | product_category | revenue
----------+---------+------------------+-----------
alice     | teddy   | toys             | 20
alice     | doll    | toys             | 10
alice     | skirt   | clothes          | 25
bob       | car     | toys             | 15
bob       | holmes  | books            | 10

Then I create a Filter Box with

  • customer
  • product
  • product_category

I would like to achieve the following:

  • When I select “customer” filter = “alice” products filter just shows [“teddy”, “doll”, “skirt”]
  • When I select “product_category” filter =“toys” products filter just shows [“teddy”, “doll”, “car”]
  • When I select “cutomser” filter =“alice” AND “product_category” filter =“toys” products filter just shows [“teddy”, “doll”]

Currently all values are always shown. Is there a way to achieve the behaviour described?
I know this will cause some DB stress, which is acceptable. Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
junlincccommented, Nov 27, 2020

Duplicate of #10013. Implemented in #5664 two years ago, but not merged because in a year or two we’ll get dashboard filters (#10285).

@Zverik @durchgedreht @Francoislinkt we looked at the old cascading filter PR, if we had merged it, it would introduce quite some complexity. the good news is, dashboard native cascading filter(not filter box) is on its way, you should expect it to be fully available in a few weeks.

2reactions
junlincccommented, Aug 27, 2020

Cascading filter feature is currently in our roadmap. we will announce it when it’s available. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

display filtered combo box value - Microsoft Community
The way I handle this is in the Got Focus event of the combo. By default the RowSource is unfiltered. So when a...
Read more >
Filters – combining multiple criteria - Practical Power Apps
Filters use various criteria to “dissect” a data source returning the records required, generally for a gallery, collection or other data ...
Read more >
Excel FILTER function with formula examples - Ablebits
See how to filter in Excel dynamically with formulas. Examples to filter duplicates, cells containing certain text, with multiple criteria, ...
Read more >
Creating a Drop Down Filter to Extract Data Based on Selection
In this tutorial, I will show you how to create a drop-down filter in Excel so that you can extract data based on...
Read more >
3 Ways to Display (Multiple Items) Filter Criteria in a Pivot Table
This is a great way to filter the report to only see data for ... Items box in the filter drop down menu...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found