<?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: Rolling3months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling3months/m-p/4792911#M183443</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496568" data-lia-user-login="wyanjaspew" class="lia-mention lia-mention-user"&gt;wyanjaspew&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="903292" data-lia-user-login="MasonMA" class="lia-mention lia-mention-user"&gt;MasonMA&lt;/a&gt;, for your insights.&lt;/P&gt;
&lt;P data-start="45" data-end="122"&gt;I’ve reproduced your issue using a sample dataset and got the below output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I’ve also attached the PBIX file for your reference.&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Aug 2025 08:53:40 GMT</pubDate>
    <dc:creator>v-saisrao-msft</dc:creator>
    <dc:date>2025-08-11T08:53:40Z</dc:date>
    <item>
      <title>Rolling3months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling3months/m-p/4792520#M183432</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Could you help me configure this? I'm trying to display the rolling 3-month period using the following DAX code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sample dataset&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;I’d like the output to look like this.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 00:37:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling3months/m-p/4792520#M183432</guid>
      <dc:creator>wyanjaspew</dc:creator>
      <dc:date>2025-08-11T00:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling3months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling3months/m-p/4792549#M183433</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496568" data-lia-user-login="wyanjaspew" class="lia-mention lia-mention-user"&gt;wyanjaspew&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would first create one 'DateTable', properly mark it as a Date table in Power BI and use it to filter the fact table by 'one to many' relationship. You can either create Date table in Power Query or with DAX in Power BI. Below is the one with DAX.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;DateTable = 
ADDCOLUMNS(
    CALENDAR(
        DATE(2025,1,1),
        DATE(2025,12,31)
    ),
    "Year", YEAR([Date]),
    "Month", MONTH([Date]),
    "MonthName", FORMAT([Date], "MMMM"),
    "Quarter", "Q" &amp;amp; QUARTER([Date]),
    "YearMonth", FORMAT([Date], "yyyy-MM")
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After this, &lt;SPAN&gt;use below Measure for 'Rolling_3_Month' calculation (assuming your &lt;SPAN&gt;Total Service ID = &lt;SPAN&gt;DISTINCTCOUNT&lt;SPAN&gt;(&lt;SPAN&gt;test&lt;SPAN&gt;[ServiceID]&lt;SPAN&gt;) )&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Rolling_3_Months = 
VAR _currentDate = MAX(DateTable[Date])
VAR _rollingPeriod = 
    DATESINPERIOD(
        DateTable[Date],
        _currentDate,
        -3,
        MONTH
    )
VAR _result=
        CALCULATE(
            AVERAGEX(
                VALUES(DateTable[MonthName]), 
                [Total Service ID]
            ),
            _rollingPeriod
        )

RETURN
    IF(
        ISBLANK([Total Service ID]),
        BLANK(),
        _result
        )&lt;/LI-CODE&gt;&lt;P&gt;With small portion of sample data&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps:)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 03:43:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling3months/m-p/4792549#M183433</guid>
      <dc:creator>MasonMA</dc:creator>
      <dc:date>2025-08-11T03:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling3months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling3months/m-p/4792911#M183443</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496568" data-lia-user-login="wyanjaspew" class="lia-mention lia-mention-user"&gt;wyanjaspew&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="903292" data-lia-user-login="MasonMA" class="lia-mention lia-mention-user"&gt;MasonMA&lt;/a&gt;, for your insights.&lt;/P&gt;
&lt;P data-start="45" data-end="122"&gt;I’ve reproduced your issue using a sample dataset and got the below output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I’ve also attached the PBIX file for your reference.&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 08:53:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling3months/m-p/4792911#M183443</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-08-11T08:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling3months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling3months/m-p/4796645#M183553</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496568" data-lia-user-login="wyanjaspew" class="lia-mention lia-mention-user"&gt;wyanjaspew&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Have you had a chance to review the solution we shared earlier? If the issue persists, feel free to reply so we can help further.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 06:18:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling3months/m-p/4796645#M183553</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-08-14T06:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling3months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling3months/m-p/4799363#M183626</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496568" data-lia-user-login="wyanjaspew" class="lia-mention lia-mention-user"&gt;wyanjaspew&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Checking in to see if your issue has been resolved. let us know if you still need any assistance.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 06:03:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling3months/m-p/4799363#M183626</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-08-18T06:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling3months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling3months/m-p/4803254#M183728</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496568" data-lia-user-login="wyanjaspew" class="lia-mention lia-mention-user"&gt;wyanjaspew&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;We haven’t heard back from you in a while regarding your issue. let us know if your issue has been resolved or if you still require support.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 07:48:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling3months/m-p/4803254#M183728</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-08-21T07:48:23Z</dc:date>
    </item>
  </channel>
</rss>

