<?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: Running Total and Null Values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-and-Null-Values/m-p/964509#M11406</link>
    <description>Here are all the techniques to hide future periods:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/hiding-future-dates-for-calculations-in-dax/" target="_blank"&gt;https://www.sqlbi.com/articles/hiding-future-dates-for-calculations-in-dax/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As for DaxStudio... I don't know any materials. You can try to use the Help section in DaxStudio itself on the ribbon.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
    <pubDate>Mon, 09 Mar 2020 11:47:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-09T11:47:12Z</dc:date>
    <item>
      <title>Running Total and Null Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-and-Null-Values/m-p/963266#M11356</link>
      <description>&lt;P&gt;&lt;A href="https://www.dropbox.com/scl/fi/0m3o7xos1z521makx3xby/MTD-and-null-values.xlsx?dl=0&amp;amp;rlkey=xjdrtaj1cttldxuw580unpsp5" target="_self"&gt;Running Total and Null Values xlsx file&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;None of the previous answers to previous questions regarding the same subject seemed to fit my circumstances.&amp;nbsp; I'm sure it is related to the filter context of my measures, but I don't see it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The MTD values (BTZ RMO MTD) show up correctly when there is a null value for the day (BTZ RMO) in the first table, but as soon as a sum value of a separate calculated column (sum of MMP BTZ Oz MMP) is added the MTD values become null.&amp;nbsp; I require the 3rd column for a graph.&amp;nbsp; Any suggestions?&amp;nbsp; A side note...I don't fully understand why the individual daily values (BTZ RMO) aggregate correctly (Grand Total = 5492) doesn't match the individual sums (120+287+83+etc.....=5345)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2020 19:41:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-and-Null-Values/m-p/963266#M11356</guid>
      <dc:creator>troyhimes</dc:creator>
      <dc:date>2020-03-07T19:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total and Null Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-and-Null-Values/m-p/963289#M11358</link>
      <description>&lt;P&gt;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2020 20:53:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-and-Null-Values/m-p/963289#M11358</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-07T20:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total and Null Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-and-Null-Values/m-p/963295#M11359</link>
      <description>&lt;P&gt;Hi there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are getting "strange" results because you are not following Best Practices of dimensional design - easy as that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you run this in DaxStudio:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DEFINE
    MEASURE Conccentrator_Final[MTD2] =
        CALCULATE (
            [BTZ RMO],
            DATESMTD( 'Calendar'[Date] ),
            Conccentrator_Final[Feed Oz's_2] &amp;gt; 0
        )
EVALUATE
CALCULATETABLE (
    ADDCOLUMNS (
        VALUES ( 'Calendar'[Date] ),
        "RMO", ROUND ( [BTZ RMO], 0 ),
        "MTD", ROUND ( [BTZ RMO MTD], 0 ),
        "MTD2", Round( [MTD2], 0 )
    ),
    'Calendar'[YYYY-MM] = "2020-02"
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you'll see that [MTD2] gives you the correct answer. The reason being, [MTD2] uses Calendar to do any time-intel calculations. Such calculations do work correctly ONLY in case you are applying the functions to a proper Date table in the model. Any other column and you're out of luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should strictly follow these golden rules if you want to stay on the safe side:&lt;/P&gt;
&lt;P&gt;1. Slicing is only ever done through dimensions.&lt;/P&gt;
&lt;P&gt;2. Fact tables' columns are all hidden without exceptions. Only measures can be visible.&lt;/P&gt;
&lt;P&gt;3. Time-intel is applied only to proper Date tables.&lt;/P&gt;
&lt;P&gt;4. The design must be either a star or a flake schema. Any deviation from this and you're asking for troubles.&lt;/P&gt;
&lt;P&gt;6. Bi-directional filtering is used ONLY when strictly necessary. 99% of filtering is one-way only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2020 21:13:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-and-Null-Values/m-p/963295#M11359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-07T21:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total and Null Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-and-Null-Values/m-p/963551#M11383</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Thanks for the golden rules.&amp;nbsp; I kept seeing references to DaxStudio in other posts without really understanding it's power, thanks to your answer I was motivated to finally look into it.&amp;nbsp; Being able to "see" a Dax created table is a HUGE help for a beginner like myself. I found this great guide from Matt Allington (&lt;A href="https://exceleratorbi.com.au/getting-started-dax-studio/" target="_self"&gt;https://exceleratorbi.com.au/getting-started-dax-studio/&lt;/A&gt;&amp;nbsp;) are there other basic guides or forums that you would recommend that pertain to DaxStudio itself?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your comment regarding time intel functions and a proper calendar table make sense.&amp;nbsp; Now the issue is a simpler one....because I'm graphing the data, how do I display null values for any date in the future.&amp;nbsp; See the table below for March.&amp;nbsp; I don't want any values beyond "today" (3/4/20) to be displayed on the graph.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2020 15:42:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-and-Null-Values/m-p/963551#M11383</guid>
      <dc:creator>troyhimes</dc:creator>
      <dc:date>2020-03-08T15:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total and Null Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-and-Null-Values/m-p/964509#M11406</link>
      <description>Here are all the techniques to hide future periods:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/hiding-future-dates-for-calculations-in-dax/" target="_blank"&gt;https://www.sqlbi.com/articles/hiding-future-dates-for-calculations-in-dax/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As for DaxStudio... I don't know any materials. You can try to use the Help section in DaxStudio itself on the ribbon.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Mon, 09 Mar 2020 11:47:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-and-Null-Values/m-p/964509#M11406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-09T11:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total and Null Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-and-Null-Values/m-p/964663#M11415</link>
      <description>&lt;P&gt;Thanks for the resource, that solved the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 12:51:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-and-Null-Values/m-p/964663#M11415</guid>
      <dc:creator>troyhimes</dc:creator>
      <dc:date>2020-03-09T12:51:34Z</dc:date>
    </item>
  </channel>
</rss>

