Skip to content

feat: Rename 'Subtotal' to 'Subvalue' in Pivot Tables#37747

Closed
RamiNoodle733 wants to merge 1 commit intoapache:masterfrom
RamiNoodle733:fix-subtotal-to-subvalue
Closed

feat: Rename 'Subtotal' to 'Subvalue' in Pivot Tables#37747
RamiNoodle733 wants to merge 1 commit intoapache:masterfrom
RamiNoodle733:fix-subtotal-to-subvalue

Conversation

@RamiNoodle733
Copy link

SUMMARY

Fixes #35089

Pivot Table offers the possibility to show aggregated values by group. For example, when showing total sum of sales, the sub-group aggregations are labeled 'Subtotal'. However, when using other aggregation functions like Average, the label 'Subtotal' is misleading since it's not a sum.

This PR changes the user-facing label from 'Subtotal' to 'Subvalue' to be more accurate regardless of the aggregation function used.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A - Text label change from 'Subtotal' to 'Subvalue'

TESTING INSTRUCTIONS

  1. Create a Pivot Table chart with subtotals enabled
  2. Verify that the subtotal rows/columns now show 'Subvalue' instead of 'Subtotal'

ADDITIONAL INFORMATION

Pivot Table shows aggregated values by group. When using aggregation
functions like Average, the label shows 'Subtotal' which is misleading
since it's not a sum. This changes the label to 'Subvalue' to be more
accurate regardless of the aggregation function used.

Fixes apache#35089
Copy link
Contributor

@bito-code-review bito-code-review bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Agent Run #0a4592

Actionable Suggestions - 2
  • superset-frontend/plugins/plugin-chart-pivot-table/src/react-pivottable/TableRenderers.jsx - 2
Review Details
  • Files reviewed - 1 · Commit Range: 55d4657..55d4657
    • superset-frontend/plugins/plugin-chart-pivot-table/src/react-pivottable/TableRenderers.jsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

Comment on lines 720 to 722
>
{t('Subtotal')}
{t('Subvalue')}
</th>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect pivot table label

The change from 'Subtotal' to 'Subvalue' appears incorrect, as 'Subvalue' is not a standard term in pivot tables and doesn't align with the 'pvtSubtotalLabel' className. Pivot tables use 'Subtotal' for aggregated subgroup values, and this change could confuse users. Reverting to 'Subtotal' matches existing codebase usage and translations.

Code suggestion
Check the AI-generated fix before applying
Suggested change
>
{t('Subtotal')}
{t('Subvalue')}
</th>,
>
{t('Subtotal')}
</th>,

Code Review Run #0a4592


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

)}
>
{t('Subtotal')}
{t('Subvalue')}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect pivot table label

Similar to the other location, changing 'Subtotal' to 'Subvalue' is incorrect for pivot table terminology. 'Subvalue' isn't standard and mismatches the 'pvtSubtotalLabel' className. Revert to 'Subtotal' for consistency with pivot table conventions and existing code.

Code suggestion
Check the AI-generated fix before applying
Suggested change
{t('Subvalue')}
{t('Subtotal')}

Code Review Run #0a4592


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

@sadpandajoe
Copy link
Member

closing since there are multiple PRs for this fix. It looks like the same pr may have been opened multiple times.

@sadpandajoe sadpandajoe closed this Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename "Subtotal" to "Subvalue" in Pivot Tables

2 participants