<?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: Rolling values for 3 months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4806243#M183836</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;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;I&gt;&lt;/I&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Aug 2025 05:45:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-08-25T05:45:18Z</dc:date>
    <item>
      <title>Rolling values for 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4790872#M183383</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you help me configure this? I'm trying to display the rolling 3-month period like below.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&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;SPAN&gt;I'm trying to incorporate the code into a measure within my actual dataset, but it doesn't seem to be functioning properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actual dataset&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 05:44:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4790872#M183383</guid>
      <dc:creator>wyanjaspew</dc:creator>
      <dc:date>2025-08-08T05:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values for 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4790884#M183386</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you check if this works:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rolling 3 Month Total =
CALCULATE(
    SUM(FactTable[ValueColumn]),
    DATESINPERIOD(
        'DateTable'[Date],
        MAX('DateTable'[Date]),  
        -3,
        MONTH
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 08 Aug 2025 05:55:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4790884#M183386</guid>
      <dc:creator>MohamedFowzan1</dc:creator>
      <dc:date>2025-08-08T05:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values for 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4790908#M183387</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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Create a proper Date table&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In Modeling &amp;gt;&amp;gt; New table:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date =
ADDCOLUMNS (
   CALENDAR ( MIN ( FactSales[Date] ), MAX ( FactSales[Date] ) ),
   "Year", YEAR ( [Date] ),
   "Month", FORMAT ( [Date], "MMM" ),
   "YearMonth", FORMAT ( [Date], "YYYY-MM" )
)&lt;/LI-CODE&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Mark as date table (Modeling &amp;gt;&amp;gt; Mark as date table &amp;gt;&amp;gt; select [Date]).&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Create a relationship: Date[Date] &amp;gt;&amp;gt; FactSales[Date] (single direction).&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;2. Base measure&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Amount =
SUM ( FactSales[Amount] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. Rolling 3-month sum (includes current month + prior 2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rolling 3M (Sum) =
CALCULATE (
   [Amount],
   DATESINPERIOD ( 'Date'[Date], MAX ( 'Date'[Date] ), -3, MONTH )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;4. Rolling 3-month average&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rolling 3M (Avg)=
VAR Sum3M =
   CALCULATE (
       [Amount],
       DATESINPERIOD ( 'Date'[Date], MAX ( 'Date'[Date] ), -3, MONTH )
   )
VAR MonthsPresent =
   CALCULATE (
       DISTINCTCOUNT ( 'Date'[YearMonth] ),
       DATESINPERIOD ( 'Date'[Date], MAX ( 'Date'[Date] ), -3, MONTH )
   )
RETURN
DIVIDE ( Sum3M, MonthsPresent )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;5. Build the visual&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Use a Table or Matrix.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Put Date[YearMonth] (or Date[Date] set to Month), then add:&lt;/SPAN&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;[Amount]&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Rolling 3M (Sum) (and/or Rolling 3M (Avg))&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;You should see the DAX measure match the Expected_Rolling3M_Sum in the Excel.&lt;/SPAN&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;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 06:32:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4790908#M183387</guid>
      <dc:creator>rohit1991</dc:creator>
      <dc:date>2025-08-08T06:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values for 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4791067#M183397</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;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would also take a moment to thank&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="824538" data-lia-user-login="rohit1991" class="lia-mention lia-mention-user"&gt;rohit1991&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 10:16:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4791067#M183397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-08-08T10:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values for 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4791434#M183406</link>
      <description>&lt;P&gt;When I apply this code, it only display the same numbers (sum) of my serviceid's&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 14:33:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4791434#M183406</guid>
      <dc:creator>wyanjaspew</dc:creator>
      <dc:date>2025-08-08T14:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values for 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4791436#M183407</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When I apply this code, it only display the same numbers (sum) of my serviceid's&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 14:35:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4791436#M183407</guid>
      <dc:creator>wyanjaspew</dc:creator>
      <dc:date>2025-08-08T14:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values for 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4791438#M183408</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;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could you please check this:&lt;BR /&gt;In Model view, create a relationship from Date Table[Date] (1) to Fact Sales[Date] (*)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 06:05:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4791438#M183408</guid>
      <dc:creator>rohit1991</dc:creator>
      <dc:date>2025-08-11T06:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values for 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4795296#M183523</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;&amp;nbsp;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Seeing repeated values usually suggests that your rolling measure isn't getting the right filter context from the model. Here are some things to check:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Date Table&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Make sure you have a proper Date table created with your DAX.&lt;/P&gt;
&lt;P&gt;Set it as a Date table in your model.&lt;/P&gt;
&lt;P&gt;Confirm it covers your entire data range.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Model Relationship&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In Model view, check for a single-directional relationship from Date[Date] to FactSales[Date].&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Visual Context&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Use a table or matrix that includes serviceid with your rolling measures.&lt;/P&gt;
&lt;P&gt;Verify the service-level filter is applied so the measure recalculates for each service.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Quick Test&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Add a slicer for serviceid to see if the rolling measure updates.&lt;/P&gt;
&lt;P&gt;If it doesn't, there's likely a relationship or context issue.&lt;/P&gt;
&lt;P&gt;With these steps, your rolling 3-month DAX should provide different values for each serviceid as expected.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 07:05:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4795296#M183523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-08-13T07:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values for 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4799261#M183622</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;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 05:16:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4799261#M183622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-08-18T05:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling values for 3 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4806243#M183836</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;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;I&gt;&lt;/I&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 05:45:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-values-for-3-months/m-p/4806243#M183836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-08-25T05:45:18Z</dc:date>
    </item>
  </channel>
</rss>

