<?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 Cumulative sum for ranking in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-ranking/m-p/4275676#M169630</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could someone help me create a Ranking measure that’s a cumulative sum of the Position measure, ensuring it adds up to 100%? Any tips or methods would be really appreciated.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Position = 

VAR TotalRev = 
    CALCULATE(
        [revenue],
        REMOVEFILTERS(ID[Product ID])
    )

VAR Result = 
    DIVIDE([revenue], TotalRev, 0)

RETURN
    Result&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 08 Nov 2024 13:15:19 GMT</pubDate>
    <dc:creator>Julia2023</dc:creator>
    <dc:date>2024-11-08T13:15:19Z</dc:date>
    <item>
      <title>Cumulative sum for ranking</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-ranking/m-p/4275676#M169630</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could someone help me create a Ranking measure that’s a cumulative sum of the Position measure, ensuring it adds up to 100%? Any tips or methods would be really appreciated.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Position = 

VAR TotalRev = 
    CALCULATE(
        [revenue],
        REMOVEFILTERS(ID[Product ID])
    )

VAR Result = 
    DIVIDE([revenue], TotalRev, 0)

RETURN
    Result&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 08 Nov 2024 13:15:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-ranking/m-p/4275676#M169630</guid>
      <dc:creator>Julia2023</dc:creator>
      <dc:date>2024-11-08T13:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum for ranking</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-ranking/m-p/4275718#M169631</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472779" data-lia-user-login="Julia2023" class="lia-mention lia-mention-user"&gt;Julia2023&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;To create a cumulative ranking measure that sums up to 100%, try this DAX:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt; CumulativePosition = VAR CurrentProduct = MAX(ID[Product ID]) RETURN CALCULATE( SUMX( FILTER( ALL(ID[Product ID]), ID[Product ID] &amp;lt;= CurrentProduct),[Position]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 12:57:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-ranking/m-p/4275718#M169631</guid>
      <dc:creator>rohit1991</dc:creator>
      <dc:date>2025-07-30T12:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum for ranking</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-ranking/m-p/4277067#M169707</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;revenue: = 
SUM(sales[revenue])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/window-function-dax?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;WINDOW function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;percentage by all revenue: = 
VAR _allrevenue =
    CALCULATE ( [revenue:], REMOVEFILTERS ( 'ID'[Product ID] ) )
VAR _cumulaterevenue =
    CALCULATE (
        [revenue:],
        WINDOW (
            1,
            ABS,
            0,
            REL,
            ALL ( 'ID'[Product ID] ),
            ORDERBY ( [revenue:], DESC )
        )
    )
RETURN
    DIVIDE ( _cumulaterevenue, _allrevenue )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 12:25:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-ranking/m-p/4277067#M169707</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-11-10T12:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum for ranking</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-ranking/m-p/4279952#M169852</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;, thank you so much for this detailed walkthrough. This solution (WINDOW) was exactly what I was looking for. However, in my case, if I don’t apply the TOP N filter with this measure, I get an error saying there isn’t enough memory. Do you know the reason for this and how I can resolve it?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 14:19:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-ranking/m-p/4279952#M169852</guid>
      <dc:creator>Julia2023</dc:creator>
      <dc:date>2024-11-12T14:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum for ranking</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-ranking/m-p/4301706#M170806</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472779" data-lia-user-login="Julia2023" class="lia-mention lia-mention-user"&gt;Julia2023&lt;/a&gt;&amp;nbsp;, hello&amp;nbsp;Jihwan_Kim and&amp;nbsp;rohit1991, thank you for your prompr reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consider optimizing your solution at different architectural layers. Layers include:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The data source(s)&lt;/LI&gt;
&lt;LI&gt;The data model&lt;/LI&gt;
&lt;LI&gt;Visualizations, including dashboards, Power BI reports, and Power BI paginated reports&lt;/LI&gt;
&lt;LI&gt;The environment, including capacities, data gateways, and the network&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;More information for your reference:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/guidance/power-bi-optimization" target="_blank"&gt;Optimization guide for Power BI - Power BI | Microsoft Learn&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Joyce&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 08:35:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-sum-for-ranking/m-p/4301706#M170806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-26T08:35:31Z</dc:date>
    </item>
  </channel>
</rss>

