Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[data grid] Support filter group / query builder #4217

Open
oliviertassinari opened this issue Mar 17, 2022 · 12 comments
Open

[data grid] Support filter group / query builder #4217

oliviertassinari opened this issue Mar 17, 2022 · 12 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Filtering Related to the data grid Filtering feature new feature New feature or request waiting for 👍 Waiting for upvotes

Comments

@oliviertassinari
Copy link
Member

oliviertassinari commented Mar 17, 2022

Summary 💡

Have the ability to have "and"/"or" filter at the same time.

Benchmarks

Screenshot 2022-03-17 at 17 19 06

https://developers.notion.com/reference/post-database-query

Screenshot 2022-03-17 at 17 20 04

Screenshot 2023-09-27 at 17 13 53

Motivation 🔦

It's meant to solve advanced filtering use cases, similar to what you can do with SQL queries. This feature is not available in Excel.

@oliviertassinari oliviertassinari added component: data grid This is the name of the generic UI component, not the React module! new feature New feature or request waiting for 👍 Waiting for upvotes feature: Filtering Related to the data grid Filtering feature labels Mar 17, 2022
@m4theushw
Copy link
Member

#2437 requested the same feature. At that time, the user needed to filter rows that had one value of a list of values, so the isAnyOf operator was created. This operator can be used to create the query from the second screenshot (fields between OR are the same). However, isAnyOf can't be used in cases where the fields differ (first screenshot).

@flaviendelangle
Copy link
Member

flaviendelangle commented Mar 18, 2022

Related to #3719

I would distinguish two things:

  1. Improve the filtering engine to support models with nested operators
  2. Improve the UI to support these new models

The part 1 can be done without doing the part 2 if we want to allow users to build there UI for a time and then build our own.

@Pustelto
Copy link

Pustelto commented Jun 8, 2022

Hi, it would be great if the engine could support group filters. We will need this feature as well, but we are ok with building our own UI (we already plan to do it anyway). So if at least the point No. 1 could be implemented, that would be a huge help.

Improve the filtering engine to support models with nested operators

Thanks a lot 🙏

@vlad-healthhelper
Copy link

vlad-healthhelper commented Jul 16, 2022

Hi everyone, we are having the same issue. We are using the Data Grid Pro and we need to be able to combine ANDs and ORs while filtering. Here is an example of the filter we need: Person name is John AND Person height is more than 6 feet AND (dob is empty OR dob is before 1/1/1990).

Data Grid is awesome! Thank you all for what you put together!

@russjman
Copy link

russjman commented Nov 3, 2022

Hi everyone, we are having the same issue. We are using the Data Grid Pro and we need to be able to combine ANDs and ORs while filtering. Here is an example of the filter we need: Person name is John AND Person height is more than 6 feet AND (dob is empty OR dob is before 1/1/1990).

Data Grid is awesome! Thank you all for what you put together!

We are also needing this type of advanced filtering( nested/grouped ). Any idea if this is being worked on or considered? Our team has a pro license

@tnoetzel

This comment was marked as spam.

@agrauch
Copy link

agrauch commented Mar 17, 2023

We would also like to have the ability to group filters

@Mengying1717
Copy link

Hi Everyone, our team has a pro license and we have the same issue here as well. Group filter will be very helpful. Would like to know is this being considered? Thanks!

@muckinger
Copy link

We are also Pro-Users and urgently need the ability to group filters. Any plans or Updates? I think this is a very common usecase. Thx!

@hdale94
Copy link

hdale94 commented Mar 11, 2024

Also looking for this feature. When you have several groups of columns using the same headerNames, the filter and column visibility menus become a confusing mess.

Hope this gets implemented ASAP, thanks!

@oliviertassinari oliviertassinari changed the title [data grid] Support filter group [data grid] Support filter group / query builder May 15, 2024
@subashthiru3
Copy link

Hi,
When I given add filter multiple times in MUI Data grid (and & or) was disabled can explain the reason and if any possible to enable.
Note: I'M using data grid Pro version
AddFilter

@shotokai
Copy link

My team are also Pro users and we really need this. Recently switched from another paid solution where this was a feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Filtering Related to the data grid Filtering feature new feature New feature or request waiting for 👍 Waiting for upvotes
Projects
None yet
Development

No branches or pull requests