<?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: Reset cumulative sum when sum of values is negative in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reset-cumulative-sum-when-sum-of-values-is-negative/m-p/2489873#M68517</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383961" data-lia-user-login="mahsan_ojaghian" class="lia-mention lia-mention-user"&gt;mahsan_ojaghian&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;According to your description, I create a sample below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The Sum column is the result of ordinary accumulation. You say "&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;resets when sum of values is negative&amp;nbsp;and starts&lt;/P&gt;
&lt;P&gt;with the positive value when meets a negative one." So, in my sample, for the value -6, -5, -3 in the Sum column, as it's negtive, is your expected result -20, 1, 2 remaining the same with Column1?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For my sample, could you please show the final expected result?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ kalyj&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 02:51:53 GMT</pubDate>
    <dc:creator>v-yanjiang-msft</dc:creator>
    <dc:date>2022-05-03T02:51:53Z</dc:date>
    <item>
      <title>Reset cumulative sum when sum of values is negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reset-cumulative-sum-when-sum-of-values-is-negative/m-p/2482274#M68001</link>
      <description>&lt;P&gt;Hi Guys!&lt;/P&gt;&lt;P&gt;I want to do cumulative sum on a calculate column and&lt;/P&gt;&lt;P&gt;I want it&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;U&gt;resets when sum of values is negative&lt;/U&gt;&lt;/STRONG&gt;&amp;nbsp;and starts&lt;/P&gt;&lt;P&gt;with the positive value when meets a negative one.&lt;/P&gt;&lt;P&gt;I'll be happy if somebody have an idea!!!&lt;/P&gt;&lt;P&gt;AND it would be the best if you have a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;STRONG&gt;DAX&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;formula!!!!&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 07:01:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reset-cumulative-sum-when-sum-of-values-is-negative/m-p/2482274#M68001</guid>
      <dc:creator>mahsan_ojaghian</dc:creator>
      <dc:date>2022-04-28T07:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reset cumulative sum when sum of values is negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reset-cumulative-sum-when-sum-of-values-is-negative/m-p/2489873#M68517</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383961" data-lia-user-login="mahsan_ojaghian" class="lia-mention lia-mention-user"&gt;mahsan_ojaghian&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;According to your description, I create a sample below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The Sum column is the result of ordinary accumulation. You say "&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;resets when sum of values is negative&amp;nbsp;and starts&lt;/P&gt;
&lt;P&gt;with the positive value when meets a negative one." So, in my sample, for the value -6, -5, -3 in the Sum column, as it's negtive, is your expected result -20, 1, 2 remaining the same with Column1?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For my sample, could you please show the final expected result?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ kalyj&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 02:51:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reset-cumulative-sum-when-sum-of-values-is-negative/m-p/2489873#M68517</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-05-03T02:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reset cumulative sum when sum of values is negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reset-cumulative-sum-when-sum-of-values-is-negative/m-p/3213890#M117286</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="334520" data-lia-user-login="v-yanjiang-msft" class="lia-mention lia-mention-user"&gt;v-yanjiang-msft&lt;/a&gt;&amp;nbsp;, I have this exact problem and your solution should probably fit what I need with a little tweak.&lt;/P&gt;&lt;P&gt;When the value is negative, I need the next one to restart with positive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you be able to help me? Here's the example I have and the expected result.&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;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 14:50:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reset-cumulative-sum-when-sum-of-values-is-negative/m-p/3213890#M117286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-01T14:50:12Z</dc:date>
    </item>
  </channel>
</rss>

