<?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 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-SUM/m-p/4029807#M159301</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="749888" data-lia-user-login="Nicharee2205" class="lia-mention lia-mention-user"&gt;Nicharee2205&lt;/a&gt;&amp;nbsp;, and thank you for sharing a question with the Community.&amp;nbsp; The following is informational.&amp;nbsp; Please&amp;nbsp;remember to adhere to the decorum of the Community Forum when asking a question.&lt;BR /&gt;&lt;BR /&gt;Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot). You can upload the PBIX file to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then share a file’s URL.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 09:12:35 GMT</pubDate>
    <dc:creator>foodd</dc:creator>
    <dc:date>2024-07-08T09:12:35Z</dc:date>
    <item>
      <title>Cumulative SUM</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-SUM/m-p/4029803#M159300</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Hi everyone,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I'm working on a Power BI report where I need to calculate a cumulative count of unfinished work and plot it by month. Additionally, I need this measure to respect multiple slicers including Tag Type, Urgent Level, Ranking, Department, Location, Internal Serial, Failure Type, Repair Type, and Response By User.&lt;/FONT&gt;&lt;FONT size="2"&gt;Here's what I have so far:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;CumulativeTest2 = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;VAR CurrentDate = MAX('BD Case'[ConvertedDate])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;VAR FilteredTable = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;FILTER(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ALL('BD Case'),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;'BD Case'[ConvertedDate] &amp;lt;= CurrentDate &amp;amp;&amp;amp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT size="2"&gt;ISBLANK(SELECTEDVALUE('BD Case'[Tag Type])) || 'BD Case'[Tag Type] = SELECTEDVALUE('BD Case'[Tag Type])&lt;/FONT&gt;&lt;FONT size="2"&gt;) &amp;amp;&amp;amp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT size="2"&gt;ISBLANK(SELECTEDVALUE('BD Case'[Urgent Level])) || 'BD Case'[Urgent Level] = SELECTEDVALUE('BD Case'[Urgent Level])&lt;/FONT&gt;&lt;FONT size="2"&gt;) &amp;amp;&amp;amp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT size="2"&gt;ISBLANK(SELECTEDVALUE('BD Case'[RankingforSlicer])) || 'BD Case'[RankingforSlicer] = SELECTEDVALUE('BD Case'[RankingforSlicer])&lt;/FONT&gt;&lt;FONT size="2"&gt;) &amp;amp;&amp;amp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT size="2"&gt;ISBLANK(SELECTEDVALUE('BD Case'[departmentName])) || 'BD Case'[departmentName] = SELECTEDVALUE('BD Case'[departmentName])&lt;/FONT&gt;&lt;FONT size="2"&gt;) &amp;amp;&amp;amp; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT size="2"&gt;ISBLANK(SELECTEDVALUE('BD Case'[LocationParentName])) || 'BD Case'[LocationParentName] = SELECTEDVALUE('BD Case'[LocationParentName])&lt;/FONT&gt;&lt;FONT size="2"&gt;) &amp;amp;&amp;amp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT size="2"&gt;ISBLANK(SELECTEDVALUE('BD Case'[internalSerial])) || 'BD Case'[internalSerial] = SELECTEDVALUE('BD Case'[internalSerial])&lt;/FONT&gt;&lt;FONT size="2"&gt;) &amp;amp;&amp;amp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT size="2"&gt;ISBLANK(SELECTEDVALUE('BD Case'[Failure Type])) || 'BD Case'[Failure Type] = SELECTEDVALUE('BD Case'[Failure Type])&lt;/FONT&gt;&lt;FONT size="2"&gt;) &amp;amp;&amp;amp; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT size="2"&gt;ISBLANK(SELECTEDVALUE('BD Case'[repairType])) || 'BD Case'[repairType] = SELECTEDVALUE('BD Case'[repairType])&lt;/FONT&gt;&lt;FONT size="2"&gt;) &amp;amp;&amp;amp; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT size="2"&gt;ISBLANK(SELECTEDVALUE('BD Case'[responseByUser])) || 'BD Case'[responseByUser] = SELECTEDVALUE('BD Case'[responseByUser])&lt;/FONT&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;RETURN&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;SUMX(FilteredTable, 'BD Case'[IsUnfinished])&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;IsUnfinished column show ther right results like this&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Now card count unfinished is right but cumulative sum is not.&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;</description>
      <pubDate>Mon, 08 Jul 2024 09:11:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-SUM/m-p/4029803#M159300</guid>
      <dc:creator>Nicharee2205</dc:creator>
      <dc:date>2024-07-08T09:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative SUM</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-SUM/m-p/4029807#M159301</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="749888" data-lia-user-login="Nicharee2205" class="lia-mention lia-mention-user"&gt;Nicharee2205&lt;/a&gt;&amp;nbsp;, and thank you for sharing a question with the Community.&amp;nbsp; The following is informational.&amp;nbsp; Please&amp;nbsp;remember to adhere to the decorum of the Community Forum when asking a question.&lt;BR /&gt;&lt;BR /&gt;Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot). You can upload the PBIX file to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then share a file’s URL.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 09:12:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-SUM/m-p/4029807#M159301</guid>
      <dc:creator>foodd</dc:creator>
      <dc:date>2024-07-08T09:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative SUM</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-SUM/m-p/4030237#M159343</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="749888" data-lia-user-login="Nicharee2205" class="lia-mention lia-mention-user"&gt;Nicharee2205&lt;/a&gt;&amp;nbsp;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try with:&lt;BR /&gt;&lt;BR /&gt;CumulativeTest2 =&lt;BR /&gt;VAR CurrentDate = MAX('BD Case'[ConvertedDate])&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('BD Case'),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED('BD Case'),&lt;BR /&gt;'BD Case'[ConvertedDate] &amp;lt;= CurrentDate &amp;amp;&amp;amp;&lt;BR /&gt;(ISBLANK(SELECTEDVALUE('BD Case'[Tag Type])) || 'BD Case'[Tag Type] = SELECTEDVALUE('BD Case'[Tag Type])) &amp;amp;&amp;amp;&lt;BR /&gt;(ISBLANK(SELECTEDVALUE('BD Case'[Urgent Level])) || 'BD Case'[Urgent Level] = SELECTEDVALUE('BD Case'[Urgent Level])) &amp;amp;&amp;amp;&lt;BR /&gt;(ISBLANK(SELECTEDVALUE('BD Case'[RankingforSlicer])) || 'BD Case'[RankingforSlicer] = SELECTEDVALUE('BD Case'[RankingforSlicer])) &amp;amp;&amp;amp;&lt;BR /&gt;(ISBLANK(SELECTEDVALUE('BD Case'[departmentName])) || 'BD Case'[departmentName] = SELECTEDVALUE('BD Case'[departmentName])) &amp;amp;&amp;amp;&lt;BR /&gt;(ISBLANK(SELECTEDVALUE('BD Case'[LocationParentName])) || 'BD Case'[LocationParentName] = SELECTEDVALUE('BD Case'[LocationParentName])) &amp;amp;&amp;amp;&lt;BR /&gt;(ISBLANK(SELECTEDVALUE('BD Case'[internalSerial])) || 'BD Case'[internalSerial] = SELECTEDVALUE('BD Case'[internalSerial])) &amp;amp;&amp;amp;&lt;BR /&gt;(ISBLANK(SELECTEDVALUE('BD Case'[Failure Type])) || 'BD Case'[Failure Type] = SELECTEDVALUE('BD Case'[Failure Type])) &amp;amp;&amp;amp;&lt;BR /&gt;(ISBLANK(SELECTEDVALUE('BD Case'[repairType])) || 'BD Case'[repairType] = SELECTEDVALUE('BD Case'[repairType])) &amp;amp;&amp;amp;&lt;BR /&gt;(ISBLANK(SELECTEDVALUE('BD Case'[responseByUser])) || 'BD Case'[responseByUser] = SELECTEDVALUE('BD Case'[responseByUser]))&lt;BR /&gt;),&lt;BR /&gt;REMOVEFILTERS('BD Case'[ConvertedDate]) // Ensures cumulative count across all dates up to CurrentDate&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 12:43:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-SUM/m-p/4030237#M159343</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-07-08T12:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative SUM</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-SUM/m-p/4031227#M159440</link>
      <description>&lt;P&gt;Thankyou, actually I also try this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and it works too&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 00:42:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-SUM/m-p/4031227#M159440</guid>
      <dc:creator>Nicharee2205</dc:creator>
      <dc:date>2024-07-09T00:42:38Z</dc:date>
    </item>
  </channel>
</rss>

