<?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: How to calculate Moving Average as forecast method? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Moving-Average-as-forecast-method/m-p/2231140#M53233</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="270885" data-lia-user-login="lulcasl" class="lia-mention lia-mention-user"&gt;lulcasl&lt;/a&gt;&amp;nbsp; Power BI is built to deal with this sort of scenario. Please provide sample data and expected output.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Dec 2021 20:41:51 GMT</pubDate>
    <dc:creator>smpa01</dc:creator>
    <dc:date>2021-12-09T20:41:51Z</dc:date>
    <item>
      <title>How to calculate Moving Average as forecast method?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Moving-Average-as-forecast-method/m-p/1652206#M33624</link>
      <description>&lt;P&gt;I'm work with the following data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measure [Volume Realizado] brings me the total transported each day, working as it should. As the table show, it can be divided between [Meso], [Semana], [Material] and [Tipo]. Now here's the issue, I want to use the average of the last 7 days for a rolling average and I want it to keep going even after days which I don't have values (07/02 and so on), here's the expected result:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the measure to drill down with each context just like the SUM, so if I want to see the measure only on the [Meso] context it'll give me on value, but I want to be able to drill it even more with [Material] for example.&lt;BR /&gt;&lt;BR /&gt;Here's the .pbix.&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1IduoQ18TeSgnNzCOw68DA_77cgOHChyH/view?usp=drivesdk" target="_blank" rel="noopener"&gt;E&lt;/A&gt;DITED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 00:55:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Moving-Average-as-forecast-method/m-p/1652206#M33624</guid>
      <dc:creator>lulcasl</dc:creator>
      <dc:date>2021-03-16T00:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Moving Average as forecast method?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Moving-Average-as-forecast-method/m-p/2231082#M53227</link>
      <description>&lt;P&gt;I've been struggling with this as well.&amp;nbsp; Power BI doesn't support recursive calculations with DAX, so you can't do it the same way you'd calculate a forward looking moving average in Excel.&amp;nbsp; I'm experimenting with Python scripts to try to solve this now.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 19:38:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Moving-Average-as-forecast-method/m-p/2231082#M53227</guid>
      <dc:creator>AUaero</dc:creator>
      <dc:date>2021-12-09T19:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Moving Average as forecast method?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Moving-Average-as-forecast-method/m-p/2231140#M53233</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="270885" data-lia-user-login="lulcasl" class="lia-mention lia-mention-user"&gt;lulcasl&lt;/a&gt;&amp;nbsp; Power BI is built to deal with this sort of scenario. Please provide sample data and expected output.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 20:41:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Moving-Average-as-forecast-method/m-p/2231140#M53233</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2021-12-09T20:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Moving Average as forecast method?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Moving-Average-as-forecast-method/m-p/2231148#M53235</link>
      <description>&lt;P&gt;I'm not sure Power BI is built for this but I'd be happy to be wrong.&amp;nbsp; What I'm trying to do is recreate the same type of recursive capabilities that you can do in Excel where each successive value builds on the value of the one before.&amp;nbsp; Since DAX isn't recursive I don't see how that is possible.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 20:51:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Moving-Average-as-forecast-method/m-p/2231148#M53235</guid>
      <dc:creator>AUaero</dc:creator>
      <dc:date>2021-12-09T20:51:03Z</dc:date>
    </item>
  </channel>
</rss>

