<?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 Average of 4 weeks Data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-4-weeks-Data/m-p/2865247#M92321</link>
    <description>&lt;P&gt;I want to get the average of 4 weeks data in DAX. can someone help on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2022 14:56:53 GMT</pubDate>
    <dc:creator>happy16_2023</dc:creator>
    <dc:date>2022-10-26T14:56:53Z</dc:date>
    <item>
      <title>Average of 4 weeks Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-4-weeks-Data/m-p/2865247#M92321</link>
      <description>&lt;P&gt;I want to get the average of 4 weeks data in DAX. can someone help on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 14:56:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-4-weeks-Data/m-p/2865247#M92321</guid>
      <dc:creator>happy16_2023</dc:creator>
      <dc:date>2022-10-26T14:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Average of 4 weeks Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-4-weeks-Data/m-p/2865273#M92322</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="453703" data-lia-user-login="happy16_2023" class="lia-mention lia-mention-user"&gt;happy16_2023&lt;/a&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Rolling-Weeks/m-p/391694#M128" target="_blank"&gt;Rolling Weeks - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 15:02:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-4-weeks-Data/m-p/2865273#M92322</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-10-26T15:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Average of 4 weeks Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-4-weeks-Data/m-p/2873874#M92825</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="453703" data-lia-user-login="happy16_2023" class="lia-mention lia-mention-user"&gt;happy16_2023&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your description, I have created a simple sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
CALCULATE (
    AVERAGE ( 'Table'[Value] ),
    FILTER (
        ALL ( 'Table' ),
        WEEKNUM ( 'Table'[Date] ) &amp;lt;= WEEKNUM ( MAX ( 'Table'[Date] ) )
            &amp;amp;&amp;amp; WEEKNUM ( 'Table'[Date] )
                &amp;gt;= WEEKNUM ( MAX ( 'Table'[Date] ) ) - 3
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Jianbo Li&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 06:05:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-4-weeks-Data/m-p/2873874#M92825</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-10-31T06:05:07Z</dc:date>
    </item>
  </channel>
</rss>

