GitHub user alx25 created a discussion: Pivot Table: add Collapse rows by 
default and Compact row tree

I would like to propose two improvements for the Pivot Table visualization, 
inspired by the Matrix behavior in Power BI.

Currently, when using multiple fields in Rows and enabling Show rows subtotal, 
the table supports expanding/collapsing row groups, but groups are expanded by 
default. Also, each row field is rendered as a separate column, which can make 
the table very wide when working with hierarchical data.

### Proposal:

**Collapse rows by default**

Add an option to make row groups collapsed by default when Show rows subtotal 
is enabled. Users could still expand each group manually using the existing 
arrows.

<img width="1113" height="531" alt="Collapse rows by default" 
src="https://github.com/user-attachments/assets/1a9cc293-6c00-41a4-abbe-736bc845082f";
 />


**Compact row tree**

Add a compact view where multiple Rows fields are rendered in a single 
hierarchical column, using indentation for each level, instead of creating one 
column per row field.

<img width="1113" height="531" alt="Compact row tree" 
src="https://github.com/user-attachments/assets/9cc3ca8f-c01d-4458-9ced-97ff89cac3bc";
 />


Benefits:

- Better UX for large hierarchies.
- Less horizontal scrolling.
- Easier reading when many fields are used in Rows.


GitHub link: https://github.com/apache/superset/discussions/39954

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to