<?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: 3 months rolling average display for each month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/3-months-rolling-average-display-for-each-month/m-p/4599766#M176091</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1234550" data-lia-user-login="kyen27" class="lia-mention lia-mention-user"&gt;kyen27&lt;/a&gt;&amp;nbsp;Create a measure&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;3MonthRollingAvg = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;AVERAGEX(&lt;BR /&gt;DATESINPERIOD(&lt;BR /&gt;'Table'[Period],&lt;BR /&gt;LASTDATE('Table'[Period]),&lt;BR /&gt;-3,&lt;BR /&gt;MONTH&lt;BR /&gt;),&lt;BR /&gt;'Table'[Amount]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Mar 2025 05:28:08 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2025-03-07T05:28:08Z</dc:date>
    <item>
      <title>3 months rolling average display for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/3-months-rolling-average-display-for-each-month/m-p/4599704#M176088</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data table with something that looks like this.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and I want to create a measure that will allow me to create a matrix table that display the 3 month rolling average for each month, that looks something like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried so many formulas looking at similar posts and even asking AI but no luck. I keep getting the same result where each period column displays the average of all transactions in its own month. or where it would display the sum of each month and the grand total would display the average of the latest 3 months of the entire data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 04:39:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/3-months-rolling-average-display-for-each-month/m-p/4599704#M176088</guid>
      <dc:creator>kyen27</dc:creator>
      <dc:date>2025-03-07T04:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: 3 months rolling average display for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/3-months-rolling-average-display-for-each-month/m-p/4599766#M176091</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1234550" data-lia-user-login="kyen27" class="lia-mention lia-mention-user"&gt;kyen27&lt;/a&gt;&amp;nbsp;Create a measure&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;3MonthRollingAvg = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;AVERAGEX(&lt;BR /&gt;DATESINPERIOD(&lt;BR /&gt;'Table'[Period],&lt;BR /&gt;LASTDATE('Table'[Period]),&lt;BR /&gt;-3,&lt;BR /&gt;MONTH&lt;BR /&gt;),&lt;BR /&gt;'Table'[Amount]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 05:28:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/3-months-rolling-average-display-for-each-month/m-p/4599766#M176091</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-03-07T05:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: 3 months rolling average display for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/3-months-rolling-average-display-for-each-month/m-p/4599825#M176093</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1234550" data-lia-user-login="kyen27" class="lia-mention lia-mention-user"&gt;kyen27&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;you can try this formula&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;3M moving avg 2 = 
var period = DATESINPERIOD('Calendar'[DateKey],MAX('Calendar'[DateKey]),-3,MONTH)
var sales = CALCULATE([total_sales],period)
VAR month_ = CALCULATE(DISTINCTCOUNT('Calendar'[MonthOfYear]),period)
RETURN
DIVIDE(sales,month_)&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;SPAN&gt;, then please give us Kudos and consider&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as a solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 06:14:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/3-months-rolling-average-display-for-each-month/m-p/4599825#M176093</guid>
      <dc:creator>vivek31</dc:creator>
      <dc:date>2025-03-07T06:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: 3 months rolling average display for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/3-months-rolling-average-display-for-each-month/m-p/4600550#M176120</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your response but i dont have a date column.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 14:13:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/3-months-rolling-average-display-for-each-month/m-p/4600550#M176120</guid>
      <dc:creator>kyen27</dc:creator>
      <dc:date>2025-03-07T14:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: 3 months rolling average display for each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/3-months-rolling-average-display-for-each-month/m-p/4600556#M176121</link>
      <description>&lt;P&gt;Hello, i get an error saying this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 14:14:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/3-months-rolling-average-display-for-each-month/m-p/4600556#M176121</guid>
      <dc:creator>kyen27</dc:creator>
      <dc:date>2025-03-07T14:14:39Z</dc:date>
    </item>
  </channel>
</rss>

