<?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: Cummulative Average in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-Average/m-p/1775885#M37224</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="248706" data-lia-user-login="gerardotrejogcg" class="lia-mention lia-mention-user"&gt;gerardotrejogcg&lt;/a&gt; , Try a new column like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;averageX(filter(allselected(Table), Table[segement]= max(Table[Segment]) &amp;amp;&amp;amp; Table[Week] &amp;lt;= max(Table[Week])),Table[Value])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in place of this column Table[Value], you can use a measure too&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have assume week on column of matrix&lt;/P&gt;</description>
    <pubDate>Fri, 09 Apr 2021 05:06:50 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-04-09T05:06:50Z</dc:date>
    <item>
      <title>Cummulative Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-Average/m-p/1775838#M37221</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a cost table per week of year (page filtered by this year).&amp;nbsp; &amp;nbsp;I want to set the cummulative average per week.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;LT 2 - 95.4&lt;/P&gt;&lt;P&gt;LT 3 -&amp;nbsp; 89 ( [95.4+82.6] / 2)&lt;/P&gt;&lt;P&gt;LT 4 -&amp;nbsp; 88.8 ( [95.4+82.6+88.4] / 3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;wanted to use an average but no way how to start with this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 04:36:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-Average/m-p/1775838#M37221</guid>
      <dc:creator>gerardotrejogcg</dc:creator>
      <dc:date>2021-04-09T04:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cummulative Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-Average/m-p/1775885#M37224</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="248706" data-lia-user-login="gerardotrejogcg" class="lia-mention lia-mention-user"&gt;gerardotrejogcg&lt;/a&gt; , Try a new column like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;averageX(filter(allselected(Table), Table[segement]= max(Table[Segment]) &amp;amp;&amp;amp; Table[Week] &amp;lt;= max(Table[Week])),Table[Value])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in place of this column Table[Value], you can use a measure too&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have assume week on column of matrix&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 05:06:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-Average/m-p/1775885#M37224</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-04-09T05:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cummulative Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-Average/m-p/1780749#M37392</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;Thanks for your reply.&amp;nbsp; &amp;nbsp;Actually I have another complexity.&amp;nbsp; &amp;nbsp; My Date table is populated from Actuals Date (Start) and Forecast Date (End) ...&amp;nbsp; Eg.&amp;nbsp; Jan 1st, 2015 - Dec 31st, 2021.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since my measure is using Actuals the last date is April 2021 so no issues.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SCM Price P/U =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE ( [SCM Sales] , [SCM Units])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; But I want to use your code it's populating the 53 weeks of year.&amp;nbsp; &amp;nbsp;How can I filter by the last "Actual" week of year ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SCM Price P/U Avg = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX (&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt; FILTER (&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt; ALLSELECTED ( 'Date' ),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt; 'Date'[Week of Year] &amp;lt;= MAX ( 'Date'[Week of Year] )&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[SCM Price P/U]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Apr 2021 16:48:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-Average/m-p/1780749#M37392</guid>
      <dc:creator>gerardotrejogcg</dc:creator>
      <dc:date>2021-04-12T16:48:32Z</dc:date>
    </item>
  </channel>
</rss>

