Skip to content

Set meaningful worksheet title for pivot table XLSX exports#84

Merged
nursix merged 1 commit intosahana:devfrom
NA-V10:pivot-xlsx-sheet-title-clean-2
Apr 7, 2026
Merged

Set meaningful worksheet title for pivot table XLSX exports#84
nursix merged 1 commit intosahana:devfrom
NA-V10:pivot-xlsx-sheet-title-clean-2

Conversation

@NA-V10
Copy link
Copy Markdown

@NA-V10 NA-V10 commented Apr 4, 2026

Overview
This PR sets a meaningful worksheet title for pivot table XLSX exports instead of using the default "Sheet" name.

Changes
Use the aggregated fact label as worksheet title when available
Fall back to the report title if needed
Fall back to "Report" if neither is available
Sanitize worksheet titles to remove invalid Excel characters
Truncate worksheet titles to Excel's 31-character limit
Example
Before:

Sheet
After:

Number of Shipments
Sent Quantity
Number of Items

@nursix nursix merged commit 03703a4 into sahana:dev Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants