<?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 Re: How to export clean values from ai/bi dashboard table that uses html formatted columns in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/how-to-export-clean-values-from-ai-bi-dashboard-table-that-uses/m-p/164676#M2662</link>
    <description>&lt;P&gt;Adding one option on top of the two-column approach above: depending on how attached you are to the exact progress-bar look, you may not need hand-rolled HTML at all anymore.&lt;/P&gt;&lt;P&gt;Table visualizations in AI/BI dashboards picked up richer native formatting in the 2026 updates — per-column conditional formatting, background color styling and color gradients. A background gradient on the pct column gets visually close to a bar, and since the cell remains a plain number, it renders styled AND exports clean — no second column, no regex, nothing to maintain when the template changes.&lt;/P&gt;&lt;P&gt;Worth a quick test before committing to the long-term HTML workaround: if native formatting covers your use case, the entire export problem disappears at the source. If it doesn't (e.g. you need a true proportional bar), the two-column pattern above is the right call — and a feature request for data bars would be well aimed, given how actively table formatting is evolving this year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Aug 2026 10:19:38 GMT</pubDate>
    <dc:creator>ThomazNeto</dc:creator>
    <dc:date>2026-08-02T10:19:38Z</dc:date>
    <item>
      <title>How to export clean values from ai/bi dashboard table that uses html formatted columns</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-export-clean-values-from-ai-bi-dashboard-table-that-uses/m-p/164658#M2660</link>
      <description>&lt;P&gt;I'm working on Databricks AI/BI dashboard containing a native visualization; to achieve custom styling such as progress bars, the dataset SQL Generates HTML strings using expressions similar to:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CONCAT( '&amp;lt;div style="..."&amp;gt;', CAST(value AS STRING), '&amp;lt;/div&amp;gt;' ) AS formatted_value&lt;/LI-CODE&gt;&lt;P&gt;The HTML renders correctly within dashboard table but when the data is exported the HTML tags are also exported along with it. Is it possible to export data without HTML tags?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anmolhhns_0-1785592434957.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/29667i7207D90D02749340/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anmolhhns_0-1785592434957.png" alt="anmolhhns_0-1785592434957.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2026 13:55:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-export-clean-values-from-ai-bi-dashboard-table-that-uses/m-p/164658#M2660</guid>
      <dc:creator>anmolhhns</dc:creator>
      <dc:date>2026-08-01T13:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to export clean values from ai/bi dashboard table that uses html formatted columns</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-export-clean-values-from-ai-bi-dashboard-table-that-uses/m-p/164659#M2661</link>
      <description>&lt;P&gt;The issue is that the HTML is stored as the actual string value. AI/BI dashboards render it when the column is configured as HTML, but exports use the underlying dataset value, so the tags are included. Databricks doesn’t currently provide an export option to render HTML visually while stripping it from CSV/Excel.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;A workaround could be to return two columns:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SELECT
  net_sales,
  outlet,
  pct_sales,          -- clean numeric export value

  CONCAT(
    '&amp;lt;div style="background:#e5f7ef;height:8px;width:100px;"&amp;gt;',
    '&amp;lt;div style="background:#00a972;height:8px;width:',
    CAST(ROUND(pct_sales * 100, 2) AS STRING),
    'px;"&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;'
  ) AS pct_bar_html
FROM sales_data;
&lt;/LI-CODE&gt;
&lt;P class="p8i6j01 paragraph"&gt;Configure &lt;STRONG&gt;pct_bar_html&lt;/STRONG&gt;&amp;nbsp; as &lt;STRONG&gt;Display type → HTML&lt;/STRONG&gt;, and use &lt;STRONG&gt;pct_sales&lt;/STRONG&gt; for downloads. Hide the raw column from the visual table if needed, or provide a separate export table/widget containing only clean fields.&lt;/P&gt;
&lt;P class="p8i6j01 paragraph"&gt;If you already have the HTML column, a temporary cleanup is:&lt;/P&gt;
&lt;DIV class="l8rrz21 _1ibi0s3en" data-ui-element="code-block-container"&gt;
&lt;PRE&gt;&lt;CODE class="markdown-code-sql p8i6j0e hljs language-sql _12n1b832"&gt;regexp_replace(formatted_value, &lt;SPAN class="hljs-string"&gt;'&amp;lt;[^&amp;gt;]*&amp;gt;'&lt;/SPAN&gt;, &lt;SPAN class="hljs-string"&gt;''&lt;/SPAN&gt;) &lt;SPAN class="hljs-keyword"&gt;AS&lt;/SPAN&gt; clean_value
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="l8rrz23 _1ibi0s3dp _1ibi0s332 _1ibi0s3eo _1ibi0s3bm _1ibi0s3ce"&gt;
&lt;DIV class="lqznwq0"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2026 15:10:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-export-clean-values-from-ai-bi-dashboard-table-that-uses/m-p/164659#M2661</guid>
      <dc:creator>adnan_alvee</dc:creator>
      <dc:date>2026-08-01T15:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to export clean values from ai/bi dashboard table that uses html formatted columns</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-export-clean-values-from-ai-bi-dashboard-table-that-uses/m-p/164676#M2662</link>
      <description>&lt;P&gt;Adding one option on top of the two-column approach above: depending on how attached you are to the exact progress-bar look, you may not need hand-rolled HTML at all anymore.&lt;/P&gt;&lt;P&gt;Table visualizations in AI/BI dashboards picked up richer native formatting in the 2026 updates — per-column conditional formatting, background color styling and color gradients. A background gradient on the pct column gets visually close to a bar, and since the cell remains a plain number, it renders styled AND exports clean — no second column, no regex, nothing to maintain when the template changes.&lt;/P&gt;&lt;P&gt;Worth a quick test before committing to the long-term HTML workaround: if native formatting covers your use case, the entire export problem disappears at the source. If it doesn't (e.g. you need a true proportional bar), the two-column pattern above is the right call — and a feature request for data bars would be well aimed, given how actively table formatting is evolving this year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2026 10:19:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-export-clean-values-from-ai-bi-dashboard-table-that-uses/m-p/164676#M2662</guid>
      <dc:creator>ThomazNeto</dc:creator>
      <dc:date>2026-08-02T10:19:38Z</dc:date>
    </item>
  </channel>
</rss>

