Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Formatting in Table Visualization is not Respected on Export to Excel for Aggregated Fields #43039

Open
ixipixi opened this issue May 22, 2024 · 0 comments
Labels
.Backend Customization/Formatting Priority:P2 Average run of the mill bug Reporting/Export .Team/DashViz Dashboard and Viz team Type:Bug Product defects

Comments

@ixipixi
Copy link
Contributor

ixipixi commented May 22, 2024

Describe the bug

Exporting formatted data from a table visualization to Excel fails to retain the custom formatting if the fields were summarized in the underlying Question.

To Reproduce

  • Create a question
  • Group by some field
  • In the summarize box take a sum or max of a numeric field
  • Save it to a table visualization
  • Format the aggregated field as currency type, percent or any other visual customization
  • Export to Excel
  • Note the formatting is missing

If the formatting is applied to un-summarized fields the format in the export is correct.

Expected behavior

The format in the export should match the table viz.

Logs

No response

Information about your Metabase installation

{
  "browser-info": {
    "language": "en-US",
    "platform": "Win32",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
    "vendor": "Google Inc."
  },
  "system-info": {
    "file.encoding": "UTF-8",
    "java.runtime.name": "OpenJDK Runtime Environment",
    "java.runtime.version": "11.0.23+9",
    "java.vendor": "Eclipse Adoptium",
    "java.vendor.url": "https://adoptium.net/",
    "java.version": "11.0.23",
    "java.vm.name": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "11.0.23+9",
    "os.name": "Linux",
    "os.version": "5.15.133.1-microsoft-standard-WSL2",
    "user.language": "en",
    "user.timezone": "GMT"
  },
  "metabase-info": {
    "databases": [
      "h2",
      "postgres"
    ],
    "hosting-env": "unknown",
    "application-database": "postgres",
    "application-database-details": {
      "database": {
        "name": "PostgreSQL",
        "version": "11.22 (Debian 11.22-1.pgdg110+1)"
      },
      "jdbc-driver": {
        "name": "PostgreSQL JDBC Driver",
        "version": "42.7.2"
      }
    },
    "run-mode": "prod",
    "version": {
      "date": "2024-05-16",
      "tag": "v1.49.11",
      "hash": "b894f2d"
    },
    "settings": {
      "report-timezone": null
    }
  }
}

Severity

Annoying

Additional context

Loom recording illustrating export of un-summarized and summarized results to Excel:

https://www.loom.com/share/98c4d4374e62488e9c68283599442529

@ixipixi ixipixi added Type:Bug Product defects .Needs Triage labels May 22, 2024
@dosubot dosubot bot added Customization/Formatting Visualization/Tables Raw, summarized, and pivoted tables labels May 22, 2024
@kamilmielnik kamilmielnik added Priority:P2 Average run of the mill bug Reporting/Export .Team/DashViz Dashboard and Viz team .Backend and removed Visualization/Tables Raw, summarized, and pivoted tables .Needs Triage labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.Backend Customization/Formatting Priority:P2 Average run of the mill bug Reporting/Export .Team/DashViz Dashboard and Viz team Type:Bug Product defects
Projects
None yet
Development

No branches or pull requests

2 participants