<?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 column not working correctly with values taking place on same date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3513872#M134881</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;My date table is not being picked up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created my date table separately with a formula giving me the following style output&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 07:20:50 GMT</pubDate>
    <dc:creator>gmaasz</dc:creator>
    <dc:date>2023-11-03T07:20:50Z</dc:date>
    <item>
      <title>cumulative column not working correctly with values taking place on same date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3509266#M134647</link>
      <description>&lt;P&gt;Hi, I have a list of payments in a table that I would like to cumulatively add up in a column based on the payment date. I am using the following query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Running Total COLUMN = 
CALCULATE (
    SUM ( 'Application Payments'[AmountPaid] ),
    ALL ( 'Application Payments' ),
    'Application Payments'[PaymentDate].[Date] &amp;lt;= EARLIER ( 'Application Payments'[PaymentDate].[Date] )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see in the image below that when there are 2 records of data on the same date, then it doesn't work properly and it causes the value in the graph to jump up, and then again back down.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Please help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 09:33:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3509266#M134647</guid>
      <dc:creator>gmaasz</dc:creator>
      <dc:date>2023-11-01T09:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative column not working correctly with values taking place on same date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3511489#M134753</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="639884" data-lia-user-login="gmaasz" class="lia-mention lia-mention-user"&gt;gmaasz&lt;/a&gt;&amp;nbsp;put Date column from your Calendar / Date table (should be unique)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 08:58:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3511489#M134753</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-11-02T08:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative column not working correctly with values taking place on same date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3512046#M134795</link>
      <description>&lt;P&gt;I created a unique date column, and then updated my cumulative column formula as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Running Total COLUMN = 
CALCULATE (
    SUM ( 'Application Payments'[AmountPaid] ),
    ALL ( 'Application Payments' ),
    'Date Table'[Date] &amp;lt;= EARLIER ('Application Payments'[PaymentDate] )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the table values still show the same issue.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 13:07:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3512046#M134795</guid>
      <dc:creator>gmaasz</dc:creator>
      <dc:date>2023-11-02T13:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative column not working correctly with values taking place on same date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3512624#M134822</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="639884" data-lia-user-login="gmaasz" class="lia-mention lia-mention-user"&gt;gmaasz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;Add the column in your data table, like&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;Running Total COLUMN=&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;SUMX(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RELATEDTABLE('Application Payments'),&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Application Payments'[PaymentDate]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Date Table'[Date] &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;),&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Application Payments'[AmountPaid] &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;)&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Nov 2023 16:52:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3512624#M134822</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-11-02T16:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative column not working correctly with values taking place on same date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3512636#M134824</link>
      <description>&lt;P&gt;or you plot a table visual with date[date] column and a measure like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running Total Measure=&lt;/P&gt;
&lt;P&gt;SUMX(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Application Payments',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Application Payments'[PaymentDate]&amp;lt;=MAX('Date Table'[Date])&lt;/P&gt;
&lt;P&gt;),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;'Application Payments'[AmountPaid]&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 16:54:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3512636#M134824</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-11-02T16:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative column not working correctly with values taking place on same date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3513872#M134881</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;My date table is not being picked up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created my date table separately with a formula giving me the following style output&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 07:20:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3513872#M134881</guid>
      <dc:creator>gmaasz</dc:creator>
      <dc:date>2023-11-03T07:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative column not working correctly with values taking place on same date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3518819#M135152</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="639884" data-lia-user-login="gmaasz" class="lia-mention lia-mention-user"&gt;gmaasz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;there was a typo. the column is supposed to add in your date table. It that so? You may also try the measure mentioned in another reply.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 01:45:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3518819#M135152</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-11-07T01:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative column not working correctly with values taking place on same date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3519108#M135161</link>
      <description>&lt;P&gt;Thanks my result is still not correct when using the measure:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Not sure where the typo is you are referring to?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the issue is with my relationships? I have a 1 to many relationship with the date table and my application payments table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 06:29:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3519108#M135161</guid>
      <dc:creator>gmaasz</dc:creator>
      <dc:date>2023-11-07T06:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative column not working correctly with values taking place on same date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3519221#M135166</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="639884" data-lia-user-login="gmaasz" class="lia-mention lia-mention-user"&gt;gmaasz&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;try below code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;just adjust table and column name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE(
            SUM('Table'[amount paid]),
            'Table'[Column1]&amp;lt;MAX('Table'[Column1]),
            REMOVEFILTERS('Table'[amount paid])
        )+SUM('Table'[amount paid])&lt;/LI-CODE&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 08:13:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3519221#M135166</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-11-07T08:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative column not working correctly with values taking place on same date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3519803#M135198</link>
      <description>&lt;P&gt;Worked like a bomb thanks&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 11:54:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/cumulative-column-not-working-correctly-with-values-taking-place/m-p/3519803#M135198</guid>
      <dc:creator>gmaasz</dc:creator>
      <dc:date>2023-11-07T11:54:46Z</dc:date>
    </item>
  </channel>
</rss>

