<?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: Databricks Dashboards - display totals in Tables in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/databricks-dashboards-display-totals-in-tables/m-p/139767#M2369</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/162686"&gt;@SFDataEng&lt;/a&gt;&amp;nbsp;For me the totals work correctly. Please double-check your data, metric, and chosen aggregation. You can perhaps best sanity-check it using some simple metric like count(*) and SUM aggregation.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Nov 2025 08:37:51 GMT</pubDate>
    <dc:creator>OndrejHavlicek</dc:creator>
    <dc:date>2025-11-20T08:37:51Z</dc:date>
    <item>
      <title>Databricks Dashboards - display totals in Tables</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/databricks-dashboards-display-totals-in-tables/m-p/138593#M2341</link>
      <description>&lt;P&gt;I was wondering if anyone has been able to display totals in a Table/Pivot visualization? Similar to what is possible in other BI tools?&lt;BR /&gt;&lt;BR /&gt;If I have a table with a bunch of rows and one of the columns is Total Cost, I want to be able to show a Total at the end of the table which sums the total cost of the column. Would also like for the Total to be flexible and always displayed.&lt;BR /&gt;&lt;BR /&gt;If possible would like to avoid calculating the Total in a SQL query, any ideas&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 13:03:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/databricks-dashboards-display-totals-in-tables/m-p/138593#M2341</guid>
      <dc:creator>Diegol1337</dc:creator>
      <dc:date>2025-11-11T13:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Dashboards - display totals in Tables</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/databricks-dashboards-display-totals-in-tables/m-p/138620#M2342</link>
      <description>&lt;P&gt;At the moment, &lt;STRONG&gt;Databricks visualizations do &lt;EM&gt;not&lt;/EM&gt;&lt;/STRONG&gt; natively support &lt;STRONG&gt;dynamic total rows or grand totals&lt;/STRONG&gt; like Excel or Power BI do.&lt;BR /&gt;You can show aggregations (SUM, AVG, etc.) in your query, but the visualization layer itself won’t automatically display a “Total” row at the bottom.&lt;/P&gt;&lt;P&gt;If you build dashboards through notebooks or SQL queries, you can use a &lt;STRONG&gt;DataFrame summary&lt;/STRONG&gt; and render via &lt;STRONG&gt;display(). &lt;/STRONG&gt;Simpler way, it is still sql, use UNION ALL. You can always built a custom visual.&lt;/P&gt;&lt;P&gt;Databricks has this feature on the roadmap for Lakeview Table visualizations,&amp;nbsp;expected to support total and subtotal rows similar to pivot tables soon, but I don't know the release date!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 16:26:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/databricks-dashboards-display-totals-in-tables/m-p/138620#M2342</guid>
      <dc:creator>bianca_unifeye</dc:creator>
      <dc:date>2025-11-11T16:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Dashboards - display totals in Tables</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/databricks-dashboards-display-totals-in-tables/m-p/139503#M2363</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OndrejHavlicek_0-1763460868072.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/21801i459BF80E308D6377/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OndrejHavlicek_0-1763460868072.png" alt="OndrejHavlicek_0-1763460868072.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Totals are possible in pivot tables now, for both row and column groups. The option "Display total" is a bit hidden in the group properties.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 10:15:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/databricks-dashboards-display-totals-in-tables/m-p/139503#M2363</guid>
      <dc:creator>OndrejHavlicek</dc:creator>
      <dc:date>2025-11-18T10:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Dashboards - display totals in Tables</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/databricks-dashboards-display-totals-in-tables/m-p/139719#M2368</link>
      <description>&lt;P&gt;In a Pivot Table, "Display total" is checked for the Row, a row for Grand Total gets added, and the layout looks correct, and there are values in each column for Grand Total, but the totals are wrong -- the Grand Total values are just repeats the values from the first row of the pivot table.&amp;nbsp; I tried refreshing the dataset.&lt;/P&gt;&lt;P&gt;I am very grateful for the existence of "Display totals" feature, but I wonder if it needs to be bugfixed or documented.&lt;/P&gt;&lt;P&gt;Since pivot table totals are a new feature, I comment in hopes that this helps iron out the functionality.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 19:54:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/databricks-dashboards-display-totals-in-tables/m-p/139719#M2368</guid>
      <dc:creator>SFDataEng</dc:creator>
      <dc:date>2025-11-19T19:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Dashboards - display totals in Tables</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/databricks-dashboards-display-totals-in-tables/m-p/139767#M2369</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/162686"&gt;@SFDataEng&lt;/a&gt;&amp;nbsp;For me the totals work correctly. Please double-check your data, metric, and chosen aggregation. You can perhaps best sanity-check it using some simple metric like count(*) and SUM aggregation.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 08:37:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/databricks-dashboards-display-totals-in-tables/m-p/139767#M2369</guid>
      <dc:creator>OndrejHavlicek</dc:creator>
      <dc:date>2025-11-20T08:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Dashboards - display totals in Tables</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/databricks-dashboards-display-totals-in-tables/m-p/139828#M2370</link>
      <description>&lt;H1&gt;Request: option for "Total (Sum)" row for Pivot Tables&lt;/H1&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/15140"&gt;@OndrejHavlicek&lt;/a&gt;,&amp;nbsp;your statement and implication appear &lt;STRONG&gt;correct&lt;/STRONG&gt;, if I understand accurately.&lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;Clarification&lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;The "Grand Total" line added by the &lt;STRONG&gt;"Display total"&lt;/STRONG&gt; checkbox &lt;STRONG&gt;uses the same aggregate function&lt;/STRONG&gt; as used for the individual rows in that column, but across all underlying data for that column, to get the Total-aggregate-result, called &lt;STRONG&gt;total&lt;/STRONG&gt; (in widget config pane) and &lt;STRONG&gt;Grand Total&lt;/STRONG&gt; (in row label).&lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;Source of confusion identified&lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;I had been &lt;STRONG&gt;anticipating&lt;/STRONG&gt; that the "&lt;STRONG&gt;Total&lt;/STRONG&gt;" row added would&lt;STRONG&gt; always perform a "Sum"&lt;/STRONG&gt; of the (potentially already aggregated) values above it.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;For context, this anticipation that "Display Total" would result in a "Total (Sum)" row matches the Pivot Table's optional "Summary" row functionality in Apache Superset dashboards.&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;This "summing of aggregates to arrive at a total", in order to summarize aggregates of a type other than SUM(), needs to be used carefully, but is valid in some data shapes and use cases.&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;&lt;STRONG&gt;Conclusion&lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;My comment was related to the OP's topic that&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/197371"&gt;@Diegol1337&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...I want to be able to show a Total at the end of the table which sums the total ... of the column. Would also like for the Total to be flexible and always displayed....&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;H2&gt;&lt;STRONG&gt;Kind request&lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;Given this clarity:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I am very grateful for the existing "Total / Grand Total" option that has been put in place, which appears to be a standard Pivot Table Total implementation.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;U&gt;&lt;EM&gt;I am very much hopeful and requesting for a second "Total (Sum) / Summary" option to be added to Pivot Tables, which would always Sum the values appearing immediately above it (even summing the aggregates arrived at by another function).&lt;/EM&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Image&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is a contrived example, but we could get into what data shapes would make this valid, and why they are useful.&amp;nbsp; Hopefully, that is not needed.&amp;nbsp; In my current view, as a refinement from the image below, probably the "Display total" checkbox and optional "Grand Total" row can stay as they are as a feature; but "Total (Sum)" would be a good name for the distinct feature concept I was looking for (and, for a moment, thought I had found in this discussion!).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Databricks Pivot Table Total row, 2025-11-20_17.51UTC.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/21853iF3AD01C91DE44559/image-size/large?v=v2&amp;amp;px=999" role="button" title="Databricks Pivot Table Total row, 2025-11-20_17.51UTC.png" alt="Databricks Pivot Table Total row, 2025-11-20_17.51UTC.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 18:06:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/databricks-dashboards-display-totals-in-tables/m-p/139828#M2370</guid>
      <dc:creator>SFDataEng</dc:creator>
      <dc:date>2025-11-20T18:06:50Z</dc:date>
    </item>
  </channel>
</rss>

