Skip to content

🤖 backported "Fix XLSX export truncating decimal precision"#73476

Merged
github-automation-metabase merged 1 commit into
release-x.61.xfrom
backport-61-9129bbffc9d1959867f3a55cf9cde6e3b16d4b8f
Apr 30, 2026
Merged

🤖 backported "Fix XLSX export truncating decimal precision"#73476
github-automation-metabase merged 1 commit into
release-x.61.xfrom
backport-61-9129bbffc9d1959867f3a55cf9cde6e3b16d4b8f

Conversation

@github-automation-metabase
Copy link
Copy Markdown
Contributor

* Fix XLSX export truncating decimal precision (#71299)

XLSX exports applied a 2-decimal-place cell format to all numeric values,
causing values like 0.001 to display as 0. This was a display format issue
(the underlying data was preserved) but users perceived it as data loss.

Two changes:
- Increase default float format from "#,##0.##" to "#,##0.##########"
  (10 optional decimal places) so formatted exports show full precision
- When format-rows? is false (unformatted export), skip numeric cell
  styles entirely so Excel uses its General format with auto-precision

* Update download export test expectations for new decimal precision

The pivot table test now correctly expects full precision for averages
(2.966666667 instead of 2.97). The format-rows=false test now expects
no thousands separators since unformatted exports skip numeric styling.
@github-automation-metabase github-automation-metabase requested a review from a team as a code owner April 30, 2026 21:19
@github-automation-metabase github-automation-metabase added the was-backported apply this to PRs that are themselves backports label Apr 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 30, 2026

e2e tests failed on d68d6ea0017c49793d0da09ef870a816904f072d-1

e2e test run

File Test Name
model-actions.cy.spec.js Write actions on model detail page (postgres) > should respect impersonated permission
metrics-explorer.cy.spec.ts scenarios > metrics > explorer > Expression custom names > should preserve custom name when the expression is edited in place but keeps at least one original metric
native-database-source.cy.spec.js scenarios > question > native > database source > selecting a database in native editor for model actions should not persist the database

@github-automation-metabase github-automation-metabase merged commit 76738df into release-x.61.x Apr 30, 2026
410 of 418 checks passed
@github-automation-metabase github-automation-metabase deleted the backport-61-9129bbffc9d1959867f3a55cf9cde6e3b16d4b8f branch April 30, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

was-backported apply this to PRs that are themselves backports

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants