mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.55k stars 1.33k forks source link

[data grid] Implement Pivoting #214

Open oliviertassinari opened 4 years ago

oliviertassinari commented 4 years ago

What a pivot table is?

TLDR

Transform row data from given selected field(s) into column headers; values under these columns are aggregations of all the rows that share the same value on the selected fields(s)

A pivot table is a statistics tool that summarizes and reorganizes selected columns and rows of data in a spreadsheet or data table to obtain a desired report.

It’s an extension of the behavior of combining row grouping and aggregation. With the ability to pivot columns, users can break down the row-grouped values in a new dimension, and the aggregation functions are used to compute the crossed values between rows and columns.

It’s a tool that targets end-users and enables them to build a new table by combining different computed values based on the original dataset.

How does pivoting work?

A pivot table is built over four distinct concepts.

Examples of use cases

When a user turns on the pivoting:

  1. The Data Grid stops displaying the original dataset
  2. The Data Grid displays the tool for building the pivot table:
    • A list of all the available fields.
    • 3 inputs for columns, rows, and computed values.
    • Access to the filter panel to apply filters to the original dataset
  3. The Data Grid renders the pivot table based on which fields are used on each of the four inputs.

Where can users access this function?

At the new “Manage columns” panel https://github.com/mui/mui-x/issues/5700

Challenges

Benchmark

Screenshot 2022-05-03 at 14 34 27
ghost commented 3 years ago

im looking foward to it :D

deepankarmalhan commented 3 years ago

Has this been confirmed to be in Jul - Sep timeframe?

LukeXF commented 3 years ago

Is this still due for Q4? Hoping to see it soon!

shubhamgoswamiofficial commented 3 years ago

I thought we are the only one who always extend the deadline :laughing:

dagi377 commented 3 years ago

Is this feature coming out by the end of this year?

akshaykadambatt commented 2 years ago

This feature will come out in ....

oliviertassinari commented 2 years ago

We don't yet have a deadline for this feature. We have changed the roadmap presentation a bit. We now have an internal roadmap where we set ambitious targets and a public one where we try to under promise, so we can more consistently overdeliver.

KlausFabian commented 2 years ago

Main issue for me is that I can't make column headers stick - not being scrolled out. Maybe there is a way but I didn't see it.

m4theushw commented 2 years ago

@KlausFabian Is this what you're looking for? https://mui.com/components/data-grid/columns/#column-pinning

KlausFabian commented 2 years ago

@m4theushw That looks exactly what I have been looking for!!! Thanks a lot. But does that only work with the DataGridPro?

rmrice commented 2 years ago

Hoping to see this re-prioritized - my team will definitely use this as soon as it's available.

GJmelody commented 2 years ago

Looking forward to this new feature! Hope it can be prioritized

thespencercox commented 2 years ago

Also need this!

daee-premise commented 2 years ago

WE NEED THIS!

paulleonartcalvo commented 2 years ago

As a customer we would like to see this re-prioritized

Rvalle23 commented 2 years ago

I am new customer too; also please re-prioritized this would be amazing

srinivaassunil commented 2 years ago

We are in need of this feature very much, Please re-prioritize this.

joserodolfofreitas commented 2 years ago

I'm happy to listen to your pain points, expectations, and use cases. Let us know if you're willing to give us a user interview.

Rvalle23 commented 2 years ago

Hi @joserodolfofreitas ; thats an amazing initial point; we would love yo see that; let us know and in the future if any testing needed. Also; probably would connect soon; there were some issues with the export excel functionality. Kind regards, Ricardo

davidespejo commented 2 years ago

We really need this feature to make datagrid even more powerful!

thiagoaragao commented 1 year ago

That's killer for us!

aimad-majdou commented 1 year ago

Any updates on this ?

demetriad commented 1 year ago

Second that. I feel like this feature is a must.

imhazige commented 1 year ago

+1

ks0430 commented 1 year ago

+1

h4r3en commented 1 year ago

+1, Please add the feature asap. We need this for our new saas.

I am dam sure many people are ready to take higher plan for the same.

h4r3en commented 1 year ago

Can anyone please please provide ETA for this

vaynevayne commented 1 year ago

Can anyone please please provide ETA for this

I do not look forward to, can not afford, Ha Ha

olegschwarz commented 1 year ago

Really need this asap! We're on the pro now, we will upgrade to premium if this will be released soon!

mrityunjay-cnuro commented 1 year ago

+1 for this feature

andrejremic commented 1 year ago

+1 - We would also need it in near future, otherwise we will have to find alternative solution.

srgg commented 1 year ago

Is there any progress on this?

oliviertassinari commented 1 year ago

Is there any progress on this?

@srgg We recently moved the feature to "Next in queue" in our public MUI X roadmap https://github.com/mui/mui-x/projects/1#card-45123122

Screenshot 2023-07-15 at 18 05 20

Our next step is to run a proof of concept, we recently started to look into it.

Can anyone please please provide ETA for this

@h4r3en Assuming we plan for the worse case: the first unstable API release before the end of year and a stable API for March 2024 feels like something we won't struggle to pull off.

voidnothings commented 1 year ago

+1

scamden commented 10 months ago

the first unstable API release before the end of year

did this happen? can i test it somewhere?

syuan100 commented 10 months ago

the first unstable API release before the end of year

did this happen? can i test it somewhere?

Would also like to know if unstable API is available somewhere

olegschwarz commented 10 months ago

Same here, Where can we check the existing API for pivoting? Is it available somewhere?

cherniavskii commented 10 months ago

Hi everyone, We plan to release the Pivoting feature this quarter! Here is a proof of concept PR: https://github.com/mui/mui-x/pull/9877. You can preview the feature here https://deploy-preview-9877--material-ui-x.netlify.app/x/react-data-grid/pivoting/ - give it a try. The UI for pivoting will be different, but the overall concept will stay the same. Let us know what you think!

anu365 commented 9 months ago

Can we support fields to be searchable text instead of select box. As we can have thousands of columns and it will be difficult to scroll through them.

srinivaassunil commented 9 months ago

If you are looking for an alternative meanwhile, i have found this library https://perspective.finos.org/

delpiersos commented 8 months ago

Is this still on track for this quarter?

cherniavskii commented 7 months ago

Hi @delpiersos We didn't make it in Q1, but it's on track for Q2. You can check out the preview in https://github.com/mui/mui-x/pull/9877: https://deploy-preview-9877--material-ui-x.netlify.app/x/react-data-grid/pivoting/ We would appreciate your feedback!

delpiersos commented 6 months ago

Hi @delpiersos We didn't make it in Q1, but it's on track for Q2. You can check out the preview in #9877: https://deploy-preview-9877--material-ui-x.netlify.app/x/react-data-grid/pivoting/ We would appreciate your feedback!

Hi @cherniavskii - thanks for the update, really hoping to see it soon. Some feedback on the preview you've shared (not sure if there's anything more recent); note i'm a PM, not an engineer - apologies if my views appear to take things too simply or I'm missing a technical point somewhere:

It's really encouraging progress; the feedback above make it a bit difficult to incorporate into my use case in a way that my users would be able to leverage.

RomanMain commented 4 months ago

Hey. @cherniavskii Can we know the approximate delivery time for this functionality in the stable version? Since Q2 is over, when can we expect it? Thank you!

anu365 commented 2 months ago

Hey. @cherniavskii Can we know the approximate delivery time for this functionality in the stable version? Since Q3 is also over, when can we expect it?