<?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: Cumulative Sum by User not working properly in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-by-User-not-working-properly/m-p/4104034#M162853</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;, thank you for replying!&lt;/P&gt;&lt;P&gt;I've tried your solution and it looks like it's working properly.&lt;/P&gt;&lt;P&gt;thank you so much!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2024 10:08:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-08-16T10:08:37Z</dc:date>
    <item>
      <title>Cumulative Sum by User not working properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-by-User-not-working-properly/m-p/4100452#M162716</link>
      <description>&lt;P&gt;Hi there!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I want to look at the cumulative amount of savings ([&lt;STRONG&gt;savings&lt;/STRONG&gt;]) by user ([&lt;STRONG&gt;external_payment_id&lt;/STRONG&gt;]) over time ([&lt;STRONG&gt;event_month&lt;/STRONG&gt;]).&lt;/P&gt;&lt;P&gt;It's working for 1 or 2 specific users when I filter the plot on the user's id.&lt;/P&gt;&lt;P&gt;However, the cumulative sum doesn't make sense at all when I select all users.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand why it's working for a couple of random users, and not all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you guys have an idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code below as well as the plots shows on PowerBI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CumulativeSavings = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('monthly_user_metrics'[savings]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;('monthly_user_metrics', 'monthly_user_metrics'[external_payment_id]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'monthly_user_metrics'[event_month] &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('monthly_user_metrics'[event_month])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 14:29:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-by-User-not-working-properly/m-p/4100452#M162716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-14T14:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum by User not working properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-by-User-not-working-properly/m-p/4100501#M162719</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Try Better Running Total.&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Better-Running-Total/m-p/2755666#M885" target="_blank"&gt;Better Running Total - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 14:53:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-by-User-not-working-properly/m-p/4100501#M162719</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-08-14T14:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum by User not working properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-by-User-not-working-properly/m-p/4103585#M162836</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&amp;nbsp;Greg_Deckler, thank you for your prompt reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did a sample test based on your description, but was unable to reproduce your issue.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;Please check my test pbix to see if I missed anything, and if possible you can also upload your example file for better testing.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you for your understanding!&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;</description>
      <pubDate>Fri, 16 Aug 2024 05:32:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-by-User-not-working-properly/m-p/4103585#M162836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-16T05:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum by User not working properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-by-User-not-working-properly/m-p/4104029#M162852</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;, thank you so much for taking the time to test the issue on your own! I believe that there are some issues when I take into acconts a lot of users or some weird users I have in my database.&lt;/P&gt;&lt;P&gt;it's good to know that I got the right way though!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 10:07:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-by-User-not-working-properly/m-p/4104029#M162852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-16T10:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum by User not working properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-by-User-not-working-properly/m-p/4104034#M162853</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;, thank you for replying!&lt;/P&gt;&lt;P&gt;I've tried your solution and it looks like it's working properly.&lt;/P&gt;&lt;P&gt;thank you so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 10:08:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-by-User-not-working-properly/m-p/4104034#M162853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-16T10:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum by User not working properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-by-User-not-working-properly/m-p/4104062#M162856</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;, I tried the running total, but it looks like it doesn't cumulate sum properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the code I used to get the following chart:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RunningTotalSavings2bis =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;monthly_user_metrics&lt;/SPAN&gt;&lt;SPAN&gt;[savings]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;monthly_user_metrics&lt;/SPAN&gt;&lt;SPAN&gt;[external_payment_id]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'monthly_user_metrics'&lt;/SPAN&gt;&lt;SPAN&gt;[mss]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'monthly_user_metrics'&lt;/SPAN&gt;&lt;SPAN&gt;[mss]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'monthly_user_metrics'&lt;/SPAN&gt;&lt;SPAN&gt;[mss]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&lt;BR /&gt;do you have an idea why?&lt;BR /&gt;&lt;BR /&gt;thank you so much!&lt;BR /&gt;&lt;BR /&gt;Jacques&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Aug 2024 10:43:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-by-User-not-working-properly/m-p/4104062#M162856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-16T10:43:00Z</dc:date>
    </item>
  </channel>
</rss>

