<?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 custom calculation of percentage of total and cumulative percentage in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/custom-calculation-of-percentage-of-total-and-cumulative/m-p/132346#M2247</link>
    <description>&lt;P&gt;Is there a way to calculate the percentage of total using the Databricks dashboard's custom calculations and also the cumulative percentage? What function would be equivalent to the DAX All and AllSelect functions, but using Databricks' aggregation functions through the custom calculation editor? I'm using the custom calculations because using a SQL query would lose the granularity of the data, which would cause errors in the visuals. For example: Sum(value)/sum(value) over()&lt;/P&gt;</description>
    <pubDate>Thu, 18 Sep 2025 02:15:53 GMT</pubDate>
    <dc:creator>genebaldorios</dc:creator>
    <dc:date>2025-09-18T02:15:53Z</dc:date>
    <item>
      <title>custom calculation of percentage of total and cumulative percentage</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/custom-calculation-of-percentage-of-total-and-cumulative/m-p/132346#M2247</link>
      <description>&lt;P&gt;Is there a way to calculate the percentage of total using the Databricks dashboard's custom calculations and also the cumulative percentage? What function would be equivalent to the DAX All and AllSelect functions, but using Databricks' aggregation functions through the custom calculation editor? I'm using the custom calculations because using a SQL query would lose the granularity of the data, which would cause errors in the visuals. For example: Sum(value)/sum(value) over()&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 02:15:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/custom-calculation-of-percentage-of-total-and-cumulative/m-p/132346#M2247</guid>
      <dc:creator>genebaldorios</dc:creator>
      <dc:date>2025-09-18T02:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: custom calculation of percentage of total and cumulative percentage</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/custom-calculation-of-percentage-of-total-and-cumulative/m-p/132365#M2248</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/185304"&gt;@genebaldorios&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I don't use databricks dashboards on my project (we are PBI shop), but I guess you need to use AGGREGATE OVER clause with cumulative frame:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1758179485012.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20079i2CB76493985C4DB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1758179485012.png" alt="szymon_dybczak_0-1758179485012.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 07:11:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/custom-calculation-of-percentage-of-total-and-cumulative/m-p/132365#M2248</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-09-18T07:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: custom calculation of percentage of total and cumulative percentage</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/custom-calculation-of-percentage-of-total-and-cumulative/m-p/132623#M2251</link>
      <description>&lt;P&gt;Thanks for the tip, the measurements are as follows:&lt;/P&gt;&lt;P&gt;1. Percentage of Total:&lt;/P&gt;&lt;P&gt;SUM(qty) / (SUM(qty) AGGREGATE OVER (ORDER BY status DESC ALL))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2. Cumulative Percentage SUM(qty) / (SUM(qty) AGGREGATE OVER (ORDER BY status DESC Cumulative))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Calculates the percentage of the cumulative total, sorted by status.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Sep 2025 01:28:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/custom-calculation-of-percentage-of-total-and-cumulative/m-p/132623#M2251</guid>
      <dc:creator>genebaldorios</dc:creator>
      <dc:date>2025-09-21T01:28:36Z</dc:date>
    </item>
  </channel>
</rss>

