<?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: Moving Average Calculation Difference in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-Calculation-Difference/m-p/3467888#M132370</link>
    <description>&lt;P&gt;You are a genius.. Thank you so much !!!&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2023 04:38:39 GMT</pubDate>
    <dc:creator>yogeshk77</dc:creator>
    <dc:date>2023-10-10T04:38:39Z</dc:date>
    <item>
      <title>Moving Average Calculation Difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-Calculation-Difference/m-p/3463609#M132138</link>
      <description>&lt;P&gt;I need a help to compare what's causing the difference of output between two identical formulas &amp;amp; how to fix it please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer to this &lt;A href="https://drive.google.com/file/d/1C6sZ2CFCCFJxhLGQM-rigfQD3AjOGyDz/view?usp=drive_link" target="_blank" rel="noopener"&gt;OldPBI&lt;/A&gt;, whcih is showing a moving average of "&lt;STRONG&gt;last 6 sprints"&lt;/STRONG&gt; (Last column) of story points.&lt;/P&gt;&lt;P&gt;This DAX measure is not showing the result as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then copied that single table data to another PBI called &lt;A href="https://drive.google.com/file/d/1BJcEDvDIcne1QjrPuOsWuP3hYvxa17Pc/view?usp=drive_link" target="_blank" rel="noopener"&gt;NewPBI&lt;/A&gt;, and there it's working well.&lt;BR /&gt;&lt;BR /&gt;Can someone please do a quick review of the measures &amp;amp; relationships &amp;amp; suggest me what's causing this difference &amp;amp; How do fix teh OldPBI to show correct moving averages?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 11:04:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-Calculation-Difference/m-p/3463609#M132138</guid>
      <dc:creator>yogeshk77</dc:creator>
      <dc:date>2023-10-06T11:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Average Calculation Difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-Calculation-Difference/m-p/3466410#M132306</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="321070" data-lia-user-login="yogeshk77" class="lia-mention lia-mention-user"&gt;yogeshk77&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;As checked the two pbix files you provided, and in the new file, you get the summary value for the field [Story_Points_10004] directly. In the old file you can also modify the measure [Last 6 Avg] as follows with the similar idea: first get the summary value of each directory, and then get the desired result based on the conditions.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _SUMMARIZE =
    SUMMARIZE (
        ALLSELECTED ( WeightedVel ),
        WeightedVel[Learnosity_Team_10202],
        WeightedVel[Reporting Sprint ID],
        WeightedVel[Reporting Sprint Name],
        "SUMOFSP", CALCULATE ( SUM ( WeightedVel[Story_Points_10004] ) )
    )
VAR _ADDRANK =
    ADDCOLUMNS (
        _SUMMARIZE,
        "RANK",
            RANKX (
                FILTER (
                    _SUMMARIZE,
                    [SUMOFSP] &amp;gt; 0
                        &amp;amp;&amp;amp; [Learnosity_Team_10202] = EARLIER ( [Learnosity_Team_10202] )
                ),
                [Reporting Sprint ID],
                ,
                DESC,
                DENSE
            )
    )
VAR _ADDLAST6AVG =
    ADDCOLUMNS (
        _ADDRANK,
        "LAST6AVG",
            IF (
                [RANK] &amp;lt;= 6,
                AVERAGEX (
                    FILTER (
                        _ADDRANK,
                        [Learnosity_Team_10202] = EARLIER ( [Learnosity_Team_10202] )
                            &amp;amp;&amp;amp; [RANK] &amp;gt;= EARLIER ( [RANK] )
                            &amp;amp;&amp;amp; [RANK]
                                &amp;lt;= EARLIER ( [RANK] ) + 5
                    ),
                    [SUMOFSP]
                )
            )
    )
RETURN
    SUMX (
        FILTER (
            _ADDLAST6AVG,
            [Learnosity_Team_10202] = MAX ( WeightedVel[Learnosity_Team_10202] )
                &amp;amp;&amp;amp; [Reporting Sprint ID] = MAX ( WeightedVel[Reporting Sprint ID] )
        ),
        [LAST6AVG]
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 08:32:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-Calculation-Difference/m-p/3466410#M132306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-09T08:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Average Calculation Difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-Calculation-Difference/m-p/3467888#M132370</link>
      <description>&lt;P&gt;You are a genius.. Thank you so much !!!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 04:38:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-Average-Calculation-Difference/m-p/3467888#M132370</guid>
      <dc:creator>yogeshk77</dc:creator>
      <dc:date>2023-10-10T04:38:39Z</dc:date>
    </item>
  </channel>
</rss>

