<?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 of a Moving Average in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-a-Moving-Average/m-p/2711780#M82414</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your expected visualization looks like, but could you please try the below whether it suits your requirement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Quarter Cumulative Cost Moving Average =
CALCULATE (
    SUMX ( VALUES ( 'calendar'[date_field] ), [Cost Moving Average] ),
    FILTER (
        ALL ( 'calendar' ),
        'calendar'[date_field] &amp;lt;= MAX ( 'calendar'[date_field] )
    )
)
&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 19 Aug 2022 07:40:08 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-08-19T07:40:08Z</dc:date>
    <item>
      <title>Running Total of a Moving Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-a-Moving-Average/m-p/2711619#M82402</link>
      <description>&lt;P&gt;There many post on Running Totals and Moving Averages separately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have successfully used moving average to extrapolate a future forecast&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Cost Moving Average = AVERAGEX(DATESINPERIOD('calendar'[date_field],CALCULATE(LASTDATE('calendar'[date_field]),All('calendar'[fiscal_month_desc])),-4,MONTH),sum(cost[Cost]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but the Running Total measure of the moving average measure returns the same result as the Moving Average, not the cummulative sum of the Moving Average for the filter context(looking quarter by quarter)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Quarter Cumulative Cost Moving Average = CALCULATE([Cost Moving Average],FILTER(all('calendar'),'calendar'[date_field]&amp;lt;=max('calendar'[date_field])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I assume this is because there are not real values for these period in the fact table, or the Moving Average isn't coming from a real fact table.&amp;nbsp; I tried to create a query table for the moving average by the fields I want to be able to slice on, but was unsuccessful.&amp;nbsp; Any ideas?&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 06:15:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-a-Moving-Average/m-p/2711619#M82402</guid>
      <dc:creator>senterlm</dc:creator>
      <dc:date>2022-08-19T06:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total of a Moving Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-a-Moving-Average/m-p/2711780#M82414</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your expected visualization looks like, but could you please try the below whether it suits your requirement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Quarter Cumulative Cost Moving Average =
CALCULATE (
    SUMX ( VALUES ( 'calendar'[date_field] ), [Cost Moving Average] ),
    FILTER (
        ALL ( 'calendar' ),
        'calendar'[date_field] &amp;lt;= MAX ( 'calendar'[date_field] )
    )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 19 Aug 2022 07:40:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-of-a-Moving-Average/m-p/2711780#M82414</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-08-19T07:40:08Z</dc:date>
    </item>
  </channel>
</rss>

