<?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 Running total not working when there is 0 in any row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-not-working-when-there-is-0-in-any-row/m-p/929233#M9502</link>
    <description>&lt;P&gt;I've created a running total to calculate the running total&amp;nbsp; of tasks completed each day. It seems to be working ok if the value in the field is not 0, however when the value is 0 it just shows 0 rather than the running total from the previous day. Also I am not sure why it is displaying the same date multiple times.&amp;nbsp; The screenshot below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The measure I used below&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RUNNINGTOTALACTUAL = CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM('Tasks'[ActualFinishDateNumber-For S-curve only]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLSELECTED(Tasks),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Tasks[TaskActualFinishDate] &amp;lt;= MAX(Tasks[TaskActualFinishDate])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any help would be much appreciated. Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 11 Feb 2020 23:43:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-11T23:43:35Z</dc:date>
    <item>
      <title>Running total not working when there is 0 in any row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-not-working-when-there-is-0-in-any-row/m-p/929233#M9502</link>
      <description>&lt;P&gt;I've created a running total to calculate the running total&amp;nbsp; of tasks completed each day. It seems to be working ok if the value in the field is not 0, however when the value is 0 it just shows 0 rather than the running total from the previous day. Also I am not sure why it is displaying the same date multiple times.&amp;nbsp; The screenshot below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The measure I used below&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RUNNINGTOTALACTUAL = CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM('Tasks'[ActualFinishDateNumber-For S-curve only]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLSELECTED(Tasks),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Tasks[TaskActualFinishDate] &amp;lt;= MAX(Tasks[TaskActualFinishDate])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any help would be much appreciated. Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Feb 2020 23:43:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-not-working-when-there-is-0-in-any-row/m-p/929233#M9502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-11T23:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Running total not working when there is 0 in any row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-not-working-when-there-is-0-in-any-row/m-p/938497#M9898</link>
      <description>&lt;P&gt;Can you add sample tables (in format that can be copied to PowerBI) from your model with anonymised data? Like this (just copy and paste into the post window).&lt;/P&gt;
&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;Column1&lt;/TD&gt;
&lt;TD&gt;Column2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;A&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B&lt;/TD&gt;
&lt;TD&gt;2.5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;it may be related that you use&amp;nbsp;&lt;SPAN&gt;Tasks[TaskActualFinishDate] in the formula and show [TaskFinishDate] in the visual, but without looking at the data it's really hard to judge&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 08:39:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-not-working-when-there-is-0-in-any-row/m-p/938497#M9898</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2020-02-19T08:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Running total not working when there is 0 in any row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-not-working-when-there-is-0-in-any-row/m-p/1027477#M13405</link>
      <description>&lt;P&gt;Thanks for you help I think that was the reason i've resolved that issue by changing the field from Actual Finish date to Finish Date now all fields are referencing the same date field and seems to be working ok.&amp;nbsp; However I have now another issue with slightly different measure The data looks like this:&lt;/P&gt;&lt;P&gt;TASKS TABLE&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;TASK NAME&lt;/TD&gt;&lt;TD&gt;FINISH DATE&lt;/TD&gt;&lt;TD&gt;BASELINE FINISH DATE&lt;/TD&gt;&lt;TD&gt;ACTUAL FINISH DATE&lt;/TD&gt;&lt;TD&gt;VALUE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;12/01/2020&lt;/TD&gt;&lt;TD&gt;03/01/2020&lt;/TD&gt;&lt;TD&gt;12/01/2020&lt;/TD&gt;&lt;TD&gt;£100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;13/01/2020&lt;/TD&gt;&lt;TD&gt;04/01/2020&lt;/TD&gt;&lt;TD&gt;13/01/2020&lt;/TD&gt;&lt;TD&gt;£50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;14/01/2020&lt;/TD&gt;&lt;TD&gt;05/01/2020&lt;/TD&gt;&lt;TD&gt;14/01/2020&lt;/TD&gt;&lt;TD&gt;£20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;15/01/2020&lt;/TD&gt;&lt;TD&gt;06/01/2020&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;£10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;16/01/2020&lt;/TD&gt;&lt;TD&gt;07/01/2020&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;£10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to have S curve with 3 lines:&lt;/P&gt;&lt;P&gt;Forecast Running total ( Sum of Value based on Finish dates over time) ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Baseline RUnning total&amp;nbsp;( Sum of Value based on Baseline finish dates over time) ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actual RUnning total&amp;nbsp;( Sum of Value based on Actual finish dates over time) ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measures used are same for all 3 lines just have different Value fields.&lt;SPAN&gt;It seems to be working however Baseline and forecast lines are identical even though they should not be based on the values and I cannot workout why any thoughts?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RUNNNINGTOTALFINANCEFORECAST = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SUM(Tasks[ForecastValue]),&amp;nbsp; &amp;nbsp;&lt;FONT color="#808080"&gt;&lt;EM&gt;#Created a new conditional collumn from VALUE field logic used: IF Finish date not null, Tasks[VALUE], 0&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ALLSELECTED(Tasks),&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;Tasks[TaskFinishDate] &amp;lt;= MAX(Tasks[TaskFinishDate])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Apr 2020 13:58:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-not-working-when-there-is-0-in-any-row/m-p/1027477#M13405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-15T13:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Running total not working when there is 0 in any row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-not-working-when-there-is-0-in-any-row/m-p/1035406#M13759</link>
      <description>&lt;P&gt;your visual is using only one date of the 3 fields in the axis either the regular finish date or baseline, or actual&lt;/P&gt;
&lt;P&gt;in order for this to work you need a separate calendar table with active join with the date field you will use the most, and inactive joins with the rest&lt;/P&gt;
&lt;P&gt;you can then activate the inactive joins in the related formula using USERRELATIONSHIP&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/userelationship-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/userelationship-function-dax&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 04:59:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-not-working-when-there-is-0-in-any-row/m-p/1035406#M13759</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2020-04-20T04:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Running total not working when there is 0 in any row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-not-working-when-there-is-0-in-any-row/m-p/1050470#M14352</link>
      <description>&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 09:50:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-not-working-when-there-is-0-in-any-row/m-p/1050470#M14352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-27T09:50:03Z</dc:date>
    </item>
  </channel>
</rss>

