<?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: DAX Cumulative Total and Cumulative % in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/831086#M6002</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="106637" data-lia-user-login="jdbuchanan71" class="lia-mention lia-mention-user"&gt;jdbuchanan71&lt;/a&gt;&amp;nbsp;thank you very much for this, almost perfect, just 1 small tweak. How do I &lt;STRONG&gt;include 0&lt;/STRONG&gt; in the countrows measure&lt;/P&gt;&lt;P&gt;Count:=CALCULATE(COUNTROWS('DistProfile v1-3'), KEEPFILTERS('DistProfile v1-3'),'DistProfile v1-3'[Del Days]&amp;lt;&amp;gt;BLANK())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently its &lt;STRONG&gt;not&lt;/STRONG&gt; counting values in [Del Days] where value = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 09:04:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-29T09:04:07Z</dc:date>
    <item>
      <title>DAX Cumulative Total and Cumulative %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/825944#M5795</link>
      <description>&lt;P&gt;I have this cumulative DAX function that is supposed to show the number of days it takes for items to be delivered.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But the output doesn't look right i.e. I expect the cumulative % to be higher as per screenshot above. The expected result should be 70%-80% on Day 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CumulativeTotalDelivered:=IF(MIN(dCalenderDel[Date])&amp;gt;CALCULATE(MAX('DistProfile v1-3'[Delivery]),ALL('DistProfile v1-3')),BLANK(),CALCULATE(COUNTROWS('DistProfile v1-3'),FILTER(ALL(dCalenderDel),dCalenderDel[Date]&amp;lt;=MAX(dCalenderDel[Date]))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%CumulativeTotalDelivered:=DIVIDE([CumulativeTotalDelivered],CALCULATE([CumulativeTotalDelivered],ALLSELECTED('DistProfile v1-3'[Del Days])))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: [Delivery] column contains delivery dates&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is sample file&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1cE2Ui4sBlHUwjFExBvcii29lL5o8R2mf/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1cE2Ui4sBlHUwjFExBvcii29lL5o8R2mf/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 08:21:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/825944#M5795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-23T08:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Cumulative Total and Cumulative %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/827277#M5839</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="159166" data-lia-user-login="Nathaniel_C" class="lia-mention lia-mention-user"&gt;Nathaniel_C&lt;/a&gt;&amp;nbsp; sorry to tag you but you're the only one I could think of since you assisted me recently in my last DAX issue&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/DAX-SUM-Positive-Numbers-Only-From-Multiple-Columns/td-p/825555" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/DAX-SUM-Positive-Numbers-Only-From-Multiple-Columns/td-p/825555&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on this issue I have with Cumulative total and %? Appreciate any help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 09:48:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/827277#M5839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-24T09:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Cumulative Total and Cumulative %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/827997#M5875</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for tag, I enjoy working on fun stuff, as long as I can get a pbix, or copy and paste the data into Power Query!&lt;/P&gt;&lt;P&gt;Below is the crux of the code. Hopefully I understood your issue, and what you were looking for as an output. You could fine tune this by using the date time as well.&lt;BR /&gt;&lt;BR /&gt;Here is my pbix file:&lt;A href="https://1drv.ms/u/s!AgCd7AyfqZtEyXE5-R89JhdQhayJ?e=Pfjcdq" target="_blank" rel="noopener"&gt;Delivery percentage&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;&lt;PRE&gt;Cumulative % =
VAR _currentDay =
    MAX ( Del[No of Days to Deliver] )
VAR _calc =
    CALCULATE ( [Count All], Del[No of Days To Deliver] &amp;lt;= _currentDay )
RETURN
    _calc&lt;/PRE&gt;&lt;P&gt;along with this.&lt;/P&gt;&lt;PRE&gt;Count All no really = CALCULATE(COUNT(Del[No of Days To Deliver]),ALL(Del))&lt;/PRE&gt;&lt;P&gt;The interesting part is that we use the count when we are filtering against the number of days it takes to deliver, but we use Count ALL, no really when we really want the total to not filter against the days, as it is the total.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 00:36:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/827997#M5875</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-10-25T00:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Cumulative Total and Cumulative %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/828528#M5890</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="159166" data-lia-user-login="Nathaniel_C" class="lia-mention lia-mention-user"&gt;Nathaniel_C&lt;/a&gt;&amp;nbsp;thank you but unfortunately when applying this to my data model, it doesn't work as intended. It looks correct from your end but not mine. &lt;STRONG&gt;Note:&lt;/STRONG&gt; I'm using PowerPivot/PowerQuery in Excel, not PowerBi app so I couldn't open your pbix file.&lt;/P&gt;&lt;P&gt;1. in comparison to my existing DAX measure, the output is not the same as per screenshot below i.e. cumulative total is not the same&lt;/P&gt;&lt;P&gt;2. cumulative % - shouldn't this be 100%?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I've manually double/triple checked my existing DAX measure and I'm confident it works but its just the cumulative % that is not correct i.e. it's showing % delivered by day instead of % &lt;STRONG&gt;cumulative&lt;/STRONG&gt; delivered by day&lt;/P&gt;&lt;P&gt;Just to clarify how I use this measure(my existing DAX measure) in pivot table, here is screenshot (by Month) below, I know the measure is correct when I manually sum the % figures of first 3 days for Oct, the sum is 76% delivered on Day 3 which is correct. However, the correct DAX formula should output 76% in Day 3 instead of 36%&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2019 09:45:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/828528#M5890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-27T09:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Cumulative Total and Cumulative %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/829065#M5923</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;So not sure that I am reading this right, but do you average the weeks for the month?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 23:30:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/829065#M5923</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-10-25T23:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Cumulative Total and Cumulative %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/829068#M5924</link>
      <description>&lt;P&gt;No average, I did a manual SUM as a check for my existing measure. The [Delivery] column is a date field which I have linked to a calendar table which I use to break down the dates by day, week, month, etc&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 23:47:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/829068#M5924</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-25T23:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Cumulative Total and Cumulative %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/829082#M5925</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;So, here is the EXCEL File.&amp;nbsp;&lt;A href="https://1drv.ms/x/s!AgCd7AyfqZtEyX1iUdcXP5KQxils?e=qMfhyx" target="_blank" rel="noopener"&gt;Cumulative&lt;/A&gt;&amp;nbsp; Hopefully you can look at that and it will be a tool to figure it out.&amp;nbsp; Or maybe you can duplicate the measures, using your own table.&amp;nbsp; This table is the one that you posted for me.&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2019 01:15:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/829082#M5925</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-10-26T01:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Cumulative Total and Cumulative %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/829316#M5944</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="159166" data-lia-user-login="Nathaniel_C" class="lia-mention lia-mention-user"&gt;Nathaniel_C&lt;/a&gt;&amp;nbsp;it still didn't work when I transfered your measure to my data model and I know the reason why. Your measure works perfectly fine but &lt;STRONG&gt;NOT&lt;/STRONG&gt; when &lt;STRONG&gt;DATE filters&lt;/STRONG&gt; are applied. If you recall my initial measure, it included DATE filter in it. Are you able to edit your measure to include DATE filter in it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is link to your original &lt;A href="https://drive.google.com/file/d/1fnGpdtkoHvW0NSugXPpSqP3byvQ7tBAw/view?usp=sharing" target="_blank" rel="noopener"&gt;Excel file&lt;/A&gt; including full dataset that I have added to it. I also added a linked calendar table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2019 09:41:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/829316#M5944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-27T09:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Cumulative Total and Cumulative %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/830542#M5988</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="106637" data-lia-user-login="jdbuchanan71" class="lia-mention lia-mention-user"&gt;jdbuchanan71&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 22:41:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/830542#M5988</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-10-28T22:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Cumulative Total and Cumulative %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/830608#M5991</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe this is what you are looking for?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I have attached the updated .xlsx file, my measures are on the RawData table.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 00:30:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/830608#M5991</guid>
      <dc:creator>jdbuchanan71</dc:creator>
      <dc:date>2019-10-29T00:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Cumulative Total and Cumulative %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/831086#M6002</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="106637" data-lia-user-login="jdbuchanan71" class="lia-mention lia-mention-user"&gt;jdbuchanan71&lt;/a&gt;&amp;nbsp;thank you very much for this, almost perfect, just 1 small tweak. How do I &lt;STRONG&gt;include 0&lt;/STRONG&gt; in the countrows measure&lt;/P&gt;&lt;P&gt;Count:=CALCULATE(COUNTROWS('DistProfile v1-3'), KEEPFILTERS('DistProfile v1-3'),'DistProfile v1-3'[Del Days]&amp;lt;&amp;gt;BLANK())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently its &lt;STRONG&gt;not&lt;/STRONG&gt; counting values in [Del Days] where value = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 09:04:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/831086#M6002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-29T09:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Cumulative Total and Cumulative %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/831313#M6009</link>
      <description>&lt;P&gt;Just change the measure to this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count:=COUNTROWS(RawData)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Oct 2019 13:10:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Cumulative-Total-and-Cumulative/m-p/831313#M6009</guid>
      <dc:creator>jdbuchanan71</dc:creator>
      <dc:date>2019-10-29T13:10:30Z</dc:date>
    </item>
  </channel>
</rss>

