<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CSV export from AI/BI Dashboard table widget does not preserve visual column order in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/csv-export-from-ai-bi-dashboard-table-widget-does-not-preserve/m-p/168375#M55912</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Summary&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When downloading data as CSV from a table widget on an AI/BI Dashboard (kebab menu → Download → Data → Download CSV), the column order in the exported file does not match the column order displayed in the dashboard. All aggregated (measure) columns are placed before dimension columns, regardless of how columns are arranged in the widget configuration.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps to reproduce&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create an AI/BI Dashboard with a table widget containing both dimension and measure columns&lt;/LI&gt;&lt;LI&gt;Arrange columns in the widget so that dimensions appear before measures (e.g.,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;product_name,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;product_type, …,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SUM(available_stock), sum(reserved_stock))&lt;/LI&gt;&lt;LI&gt;Click the kebab menu (⋮) on the widget → Download → Data → Download CSV&lt;/LI&gt;&lt;LI&gt;Open the downloaded CSV file and inspect the column headers&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Expected behavior&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The CSV column order matches the column order configured in the table widget on the dashboard canvas.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actual behavior&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Aggregated columns (sum(...)) are moved to the beginning of the CSV, before all dimension columns. For example:&lt;/P&gt;&lt;P&gt;sum(available_stock), sum(reserved_stock), product_name, product_type, ...&lt;/P&gt;&lt;P&gt;Instead of the dashboard order:&lt;/P&gt;&lt;P&gt;product_name, product_type, ..., sum(available_stock), sum(reserved_stock)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Impact&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Users who rely on CSV exports for downstream processing or reporting receive columns in an unexpected order, requiring manual reordering every time. This is particularly disruptive when exports are shared with non-technical stakeholders who expect the CSV to mirror the dashboard layout.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Databricks AI/BI Dashboards (Lakeview)&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2026 14:27:14 GMT</pubDate>
    <dc:creator>Pavel_Sinkevich</dc:creator>
    <dc:date>2026-09-11T14:27:14Z</dc:date>
    <item>
      <title>CSV export from AI/BI Dashboard table widget does not preserve visual column order</title>
      <link>https://community.databricks.com/t5/data-engineering/csv-export-from-ai-bi-dashboard-table-widget-does-not-preserve/m-p/168375#M55912</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Summary&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When downloading data as CSV from a table widget on an AI/BI Dashboard (kebab menu → Download → Data → Download CSV), the column order in the exported file does not match the column order displayed in the dashboard. All aggregated (measure) columns are placed before dimension columns, regardless of how columns are arranged in the widget configuration.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps to reproduce&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create an AI/BI Dashboard with a table widget containing both dimension and measure columns&lt;/LI&gt;&lt;LI&gt;Arrange columns in the widget so that dimensions appear before measures (e.g.,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;product_name,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;product_type, …,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SUM(available_stock), sum(reserved_stock))&lt;/LI&gt;&lt;LI&gt;Click the kebab menu (⋮) on the widget → Download → Data → Download CSV&lt;/LI&gt;&lt;LI&gt;Open the downloaded CSV file and inspect the column headers&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Expected behavior&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The CSV column order matches the column order configured in the table widget on the dashboard canvas.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actual behavior&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Aggregated columns (sum(...)) are moved to the beginning of the CSV, before all dimension columns. For example:&lt;/P&gt;&lt;P&gt;sum(available_stock), sum(reserved_stock), product_name, product_type, ...&lt;/P&gt;&lt;P&gt;Instead of the dashboard order:&lt;/P&gt;&lt;P&gt;product_name, product_type, ..., sum(available_stock), sum(reserved_stock)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Impact&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Users who rely on CSV exports for downstream processing or reporting receive columns in an unexpected order, requiring manual reordering every time. This is particularly disruptive when exports are shared with non-technical stakeholders who expect the CSV to mirror the dashboard layout.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Databricks AI/BI Dashboards (Lakeview)&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2026 14:27:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/csv-export-from-ai-bi-dashboard-table-widget-does-not-preserve/m-p/168375#M55912</guid>
      <dc:creator>Pavel_Sinkevich</dc:creator>
      <dc:date>2026-09-11T14:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: CSV export from AI/BI Dashboard table widget does not preserve visual column order</title>
      <link>https://community.databricks.com/t5/data-engineering/csv-export-from-ai-bi-dashboard-table-widget-does-not-preserve/m-p/168388#M55917</link>
      <description>&lt;P&gt;I had a go at reproducing this on a current AI/BI build and couldn't get a plain table widget to misbehave. I built a table grouping dimensions plus sum(...) measures, arranged dimensions-first, and the exported CSV kept that order every time.&lt;/P&gt;
&lt;P&gt;I tested three ways: a small result (client-side export), a result over 64,000 rows (which forces the server-side export path), and a case where the widget's query listed the measures first while the display showed dimensions first. In all three the CSV column order matched the screen.&lt;/P&gt;
&lt;P&gt;So the trigger looks specific to your setup rather than table exports in general. A few questions to narrow it down:&lt;/P&gt;
&lt;P&gt;1. Is the widget a plain Table, or a Pivot table (or a table exported with the pivot option)? Pivot exports use a different serialisation path, and there's a known issue there with columns not lining up in the exported file that's being worked on.&lt;BR /&gt;2. How many rows does the table return, and does the download arrive instantly or after a short "preparing" delay?&amp;nbsp;&lt;BR /&gt;3. Did you drag columns to reorder them in the dashboard view before exporting? A reorder in the viewer isn't always saved back to the widget, so the export can fall back to the original order.&lt;BR /&gt;4. Any calculated fields, renamed columns, or conditional formatting on the table?&lt;BR /&gt;5. Which cloud, region, and browser? Export behaviour has shifted across builds, so this helps work out whether it's already been fixed.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2026 16:24:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/csv-export-from-ai-bi-dashboard-table-widget-does-not-preserve/m-p/168388#M55917</guid>
      <dc:creator>tom_n</dc:creator>
      <dc:date>2026-09-11T16:24:04Z</dc:date>
    </item>
  </channel>
</rss>

