<?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 Databricks Dashboard Pivot Table: default collapsed state? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-dashboard-pivot-table-default-collapsed-state/m-p/168017#M55818</link>
    <description>&lt;P&gt;I'm building a financial dashboard in Databricks using a Pivot visualization with two dimensions in the row hierarchy.&lt;/P&gt;&lt;P&gt;The drill-down works as expected, but I'm having a usability issue: every time the view is loaded, both dimensions are fully expanded.&lt;/P&gt;&lt;P&gt;For this type of financial report, I'd prefer the initial state to be collapsed to the first level, so the user can click + on the items they want to explore, instead of having to click, repeatedly to close the hierarchy.&lt;/P&gt;&lt;P&gt;I couldn't find a setting that controls the initial expand/collapse state of the Pivot visualization.&lt;/P&gt;&lt;P&gt;Is there a configuration for this, or is there another way to make the hierarchy start collapsed by default?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 09 Sep 2026 02:10:33 GMT</pubDate>
    <dc:creator>1pedroosilva</dc:creator>
    <dc:date>2026-09-09T02:10:33Z</dc:date>
    <item>
      <title>Databricks Dashboard Pivot Table: default collapsed state?</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-dashboard-pivot-table-default-collapsed-state/m-p/168017#M55818</link>
      <description>&lt;P&gt;I'm building a financial dashboard in Databricks using a Pivot visualization with two dimensions in the row hierarchy.&lt;/P&gt;&lt;P&gt;The drill-down works as expected, but I'm having a usability issue: every time the view is loaded, both dimensions are fully expanded.&lt;/P&gt;&lt;P&gt;For this type of financial report, I'd prefer the initial state to be collapsed to the first level, so the user can click + on the items they want to explore, instead of having to click, repeatedly to close the hierarchy.&lt;/P&gt;&lt;P&gt;I couldn't find a setting that controls the initial expand/collapse state of the Pivot visualization.&lt;/P&gt;&lt;P&gt;Is there a configuration for this, or is there another way to make the hierarchy start collapsed by default?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2026 02:10:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-dashboard-pivot-table-default-collapsed-state/m-p/168017#M55818</guid>
      <dc:creator>1pedroosilva</dc:creator>
      <dc:date>2026-09-09T02:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Dashboard Pivot Table: default collapsed state?</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-dashboard-pivot-table-default-collapsed-state/m-p/168038#M55824</link>
      <description>&lt;P&gt;I'd say that is a limitation and no built-in configuration exists right now.&lt;/P&gt;&lt;P&gt;However, as a workaround, maybe&amp;nbsp;you could filter hierarchy levels by adding&amp;nbsp;dashboard parameters/filters in an additive way. With that filter in place, you could select set of levels to show (1, 2, ..., All or combinations) being "1" the default value. Not sure if this solves your issue or could arise other usability concerns as I don't have the full context. In any case, you should update your underlying query to include the hierarchy level, which is easy by using recursive CTE SQL queries:&lt;/P&gt;&lt;P&gt;WITH RECURSIVE hierarchy AS (&lt;BR /&gt;-- Root level&lt;BR /&gt;SELECT&lt;BR /&gt;id,&lt;BR /&gt;parent_id,&lt;BR /&gt;name,&lt;BR /&gt;1 AS hierarchy_level&lt;BR /&gt;FROM accounts&lt;BR /&gt;WHERE parent_id IS NULL&lt;/P&gt;&lt;P&gt;UNION ALL&lt;/P&gt;&lt;P&gt;-- Children&lt;BR /&gt;SELECT&lt;BR /&gt;a.id,&lt;BR /&gt;a.parent_id,&lt;BR /&gt;a.name,&lt;BR /&gt;h.hierarchy_level + 1&lt;BR /&gt;FROM accounts a&lt;BR /&gt;JOIN hierarchy h&lt;BR /&gt;ON a.parent_id = h.id&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;SELECT *&lt;BR /&gt;FROM hierarchy;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2026 06:43:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-dashboard-pivot-table-default-collapsed-state/m-p/168038#M55824</guid>
      <dc:creator>Coffee77</dc:creator>
      <dc:date>2026-09-09T06:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Dashboard Pivot Table: default collapsed state?</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-dashboard-pivot-table-default-collapsed-state/m-p/168044#M55826</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/248036"&gt;@1pedroosilva&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use a regular Table visualization with pre aggregated levels and follow below&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create dataset with only the top level aggregation - first dimension&lt;/LI&gt;&lt;LI&gt;Add filters that let you drill down to see detail when needed&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It gives you a collapsed view by default with manual filtering for exploration&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2026 07:20:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-dashboard-pivot-table-default-collapsed-state/m-p/168044#M55826</guid>
      <dc:creator>balajij8</dc:creator>
      <dc:date>2026-09-09T07:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Dashboard Pivot Table: default collapsed state?</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-dashboard-pivot-table-default-collapsed-state/m-p/168046#M55827</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/248036"&gt;@1pedroosilva&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested this in Databricks as well. The Pivot hierarchy can be expanded and collapsed interactively, but after collapsing the rows, saving, and publishing the dashboard, the published version still opens fully expanded.&lt;/P&gt;&lt;P&gt;So the expand/collapse state is not persisted as part of the published visualization, and I couldn’t find a setting to define the initial hierarchy state or default expansion depth and is possibly limitation currently.&lt;/P&gt;&lt;P&gt;Possible workarounds:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use a separate summary visualization for the top level and a second detail visualization for lower-level data.&lt;/LI&gt;&lt;LI&gt;Use a dashboard parameter to switch between summary and detailed views.&lt;/LI&gt;&lt;LI&gt;Flatten the hierarchy into a single dimension if expand/collapse behaviour is not required.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;These workarounds can give a cleaner initial view, but they don’t fully replicate the native experience of starting the Pivot collapsed and expanding individual rows. Would be best to raise as Databricks feature request.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2026 07:39:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-dashboard-pivot-table-default-collapsed-state/m-p/168046#M55827</guid>
      <dc:creator>data_pulse</dc:creator>
      <dc:date>2026-09-09T07:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Dashboard Pivot Table: default collapsed state?</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-dashboard-pivot-table-default-collapsed-state/m-p/168089#M55834</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/248036"&gt;@1pedroosilva&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;As others mentioned, there is no built-in setting for this yet. However, if you want a quick solution without changing anything in your dashboard or queries, here is a simple workaround.&lt;/P&gt;&lt;P&gt;Step1. Create a new bookmark in your browser.&lt;BR /&gt;Step2. Set the bookmark's URL to the following JavaScript snippet&amp;nbsp; (It's just a click event! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;javascript&amp;amp;colon; 
document.querySelectorAll('[data-component-id*=pivot-row-header-cell]').forEach(b=&amp;gt;b.click())&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;please make sure to replace "&amp;amp;colon;" with a regular colon ":" in your bookmark URL&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Once your dashboard loads, clicking this bookmark will instantly collapse the entire table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Note: While this is a very unofficial workaround, I think it could be helpful until Databricks natively implements this feature...)&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2026 13:01:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-dashboard-pivot-table-default-collapsed-state/m-p/168089#M55834</guid>
      <dc:creator>hayoni</dc:creator>
      <dc:date>2026-09-09T13:01:27Z</dc:date>
    </item>
  </channel>
</rss>

