<?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 is not giving correct results in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-is-not-giving-correct-results/m-p/3475307#M132758</link>
    <description>&lt;P&gt;This is Giving all rows as 1 in cumulative sum. Can you please try once more?&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2023 10:06:56 GMT</pubDate>
    <dc:creator>talkprem</dc:creator>
    <dc:date>2023-10-13T10:06:56Z</dc:date>
    <item>
      <title>Cumulative Sum is not giving correct results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-is-not-giving-correct-results/m-p/3475233#M132747</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently trying to get cumulative sum of my sample data as in picture. but instead of Cumulative Variance and Cumulative Sales i am getting same as the normal variance and&amp;nbsp;Cumulative sales. I have pasted my DAX code as well but it is not working.&lt;BR /&gt;I have slicers on datetime,pharmaid,base,base group (currently only datetime and pharma id are selected)&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the dax formaula used for&amp;nbsp;Cumulative variance and Sales -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Cumulated Variance =
CALCULATE (
SUM (Table1'[Variance]),
FILTER(ALLSELECTED(Table1[DateTime],Table1[pharmaSiteld]),
 Table1[DateTime] &amp;lt;=MAX(Table1[DateTime])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help me&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 09:24:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-is-not-giving-correct-results/m-p/3475233#M132747</guid>
      <dc:creator>talkprem</dc:creator>
      <dc:date>2023-10-13T09:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum is not giving correct results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-is-not-giving-correct-results/m-p/3475293#M132754</link>
      <description>&lt;P&gt;Try&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;COUNTA&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;[Variance]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;[DateTime]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ISONORAFTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;[DateTime]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;[DateTime]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Oct 2023 09:56:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-is-not-giving-correct-results/m-p/3475293#M132754</guid>
      <dc:creator>PurpleGate</dc:creator>
      <dc:date>2023-10-13T09:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum is not giving correct results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-is-not-giving-correct-results/m-p/3475307#M132758</link>
      <description>&lt;P&gt;This is Giving all rows as 1 in cumulative sum. Can you please try once more?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 10:06:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-is-not-giving-correct-results/m-p/3475307#M132758</guid>
      <dc:creator>talkprem</dc:creator>
      <dc:date>2023-10-13T10:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum is not giving correct results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-is-not-giving-correct-results/m-p/3475370#M132760</link>
      <description>&lt;P&gt;Ok, I guess you should use Sum instead of Count.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or if your Variance column is already a measure, then just use that instead.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 10:49:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-is-not-giving-correct-results/m-p/3475370#M132760</guid>
      <dc:creator>PurpleGate</dc:creator>
      <dc:date>2023-10-13T10:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum is not giving correct results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-is-not-giving-correct-results/m-p/3475570#M132766</link>
      <description>&lt;P&gt;Yes i have already&amp;nbsp;given my DAX formula, but it is not giving the cumulative sum i need. can someone please help on this.&lt;BR /&gt;I have been trying for 2 days and still got no solution.&lt;BR /&gt;Instead of cumulative sum i am getting same value as variance column.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 12:19:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-is-not-giving-correct-results/m-p/3475570#M132766</guid>
      <dc:creator>talkprem</dc:creator>
      <dc:date>2023-10-13T12:19:40Z</dc:date>
    </item>
  </channel>
</rss>

