<?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: Year Over Year Change in Moving Average in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-Over-Year-Change-in-Moving-Average/m-p/4068765#M161539</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="621768" data-lia-user-login="Dave1mo1" class="lia-mention lia-mention-user"&gt;Dave1mo1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on the description, try to use the following dax formula.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Booked - YoY Unit MA =
CALCULATE(
    DIVIDE(
        [Booked - Unit MA],
        [Booked - PY Unit MA],
        0
    ) - 1,
    LASTDATE('DateTable'[Date])
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/lastdate-function-dax" target="_blank"&gt;LASTDATE function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 08:53:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-30T08:53:02Z</dc:date>
    <item>
      <title>Year Over Year Change in Moving Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-Over-Year-Change-in-Moving-Average/m-p/4066997#M161450</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure below that calculates the % change in a moving average, comparing the current year to the previous year. I have it on a map visual to show it by state, but it only works correctly if I have a visual-level filter for yesterday's date on the visual (our data is only current through yesterday).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I rewrite this measure to only show results for THE MOST RECENT date in my date table, which is also the date for my most recent transaction?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Booked - YoY Unit MA =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;divide&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;[Booked - Unit MA]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Booked - PY Unit MA]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Jul 2024 12:30:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-Over-Year-Change-in-Moving-Average/m-p/4066997#M161450</guid>
      <dc:creator>Dave1mo1</dc:creator>
      <dc:date>2024-07-29T12:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Year Over Year Change in Moving Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-Over-Year-Change-in-Moving-Average/m-p/4067639#M161484</link>
      <description>&lt;P&gt;VAR MostRecentDate = MAX('Table'[Date])&lt;BR /&gt;&lt;BR /&gt;and then filter inside the CALCULATE for MostRecentDate&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 19:08:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-Over-Year-Change-in-Moving-Average/m-p/4067639#M161484</guid>
      <dc:creator>SachinNandanwar</dc:creator>
      <dc:date>2024-07-29T19:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Year Over Year Change in Moving Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-Over-Year-Change-in-Moving-Average/m-p/4068765#M161539</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="621768" data-lia-user-login="Dave1mo1" class="lia-mention lia-mention-user"&gt;Dave1mo1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on the description, try to use the following dax formula.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Booked - YoY Unit MA =
CALCULATE(
    DIVIDE(
        [Booked - Unit MA],
        [Booked - PY Unit MA],
        0
    ) - 1,
    LASTDATE('DateTable'[Date])
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/lastdate-function-dax" target="_blank"&gt;LASTDATE function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 08:53:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Year-Over-Year-Change-in-Moving-Average/m-p/4068765#M161539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-30T08:53:02Z</dc:date>
    </item>
  </channel>
</rss>

