<?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: Moving average using variable table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-average-using-variable-table/m-p/1153327#M17580</link>
    <description>&lt;P&gt;The difference comes from the way CALCULATE and SUMMARIZE interact.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an excellent article that describes the basic idea&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/row-context-and-filter-context-in-dax/" target="_blank"&gt;https://www.sqlbi.com/articles/row-context-and-filter-context-in-dax/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jun 2020 14:48:42 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2020-06-11T14:48:42Z</dc:date>
    <item>
      <title>Moving average using variable table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-average-using-variable-table/m-p/1153313#M17579</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to Power BI and this community. While exploring how to calculate moving average of a simple dataset, I came across an unexpected result that I could not explain.&lt;/P&gt;&lt;P&gt;The data is simple: a sales table with an amount and date column. I subsequently created a calendar table and did a moving average calculation (found online, see green box below). However, when the "summarize" part of the code was brought out as a variable, the calculation gave an unexpected result (see red box below).&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;&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;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, i'm not sure the second measure gave unexpected values.&lt;/P&gt;&lt;P&gt;Any pointers or link to the relevant topic of why this is so, will be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Jinxiang&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 14:37:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-average-using-variable-table/m-p/1153313#M17579</guid>
      <dc:creator>jinxiang</dc:creator>
      <dc:date>2020-06-11T14:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Moving average using variable table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-average-using-variable-table/m-p/1153327#M17580</link>
      <description>&lt;P&gt;The difference comes from the way CALCULATE and SUMMARIZE interact.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an excellent article that describes the basic idea&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/row-context-and-filter-context-in-dax/" target="_blank"&gt;https://www.sqlbi.com/articles/row-context-and-filter-context-in-dax/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 14:48:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-average-using-variable-table/m-p/1153327#M17580</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-06-11T14:48:42Z</dc:date>
    </item>
  </channel>
</rss>

