<?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 annual total (MAT) without real date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-annual-total-MAT-without-real-date/m-p/1740519#M36166</link>
    <description>&lt;LI-CODE lang="markup"&gt;MAT =
VAR LastVisiblePeriod = MAX('calendar'[cum_period])
VAR Period =
	FILTER(
		ALL('calendar'),
		'calendar'[cum_period] &amp;gt; LastVisiblePeriod -13 &amp;amp;&amp;amp;
		'calendar'[cum_period] &amp;lt;= LastVisiblePeriod
	)
RETURN
CALCULATE (
	[Sales Amount],
	Period
)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 23 Mar 2021 19:05:20 GMT</pubDate>
    <dc:creator>JW_van_Holst</dc:creator>
    <dc:date>2021-03-23T19:05:20Z</dc:date>
    <item>
      <title>Moving annual total (MAT) without real date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-annual-total-MAT-without-real-date/m-p/1740361#M36161</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to calculate a moving annual total without a real date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dates are cut in 13 periods a year from 202101 to 202113 for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it is a 13 periods moving annual total and it can t be measured easily with the classical way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sales table and a "fake" calendar table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my calendar table i have add a calculated culumn with a "cumulative periode" from 1 to 65 (201701 to 202113) and with this i would like to have my moving annual total.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to give you a data sample but i can't post with tables inside my post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i can't find a way to make the measurement and have my MAT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Paul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 17:45:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-annual-total-MAT-without-real-date/m-p/1740361#M36161</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-23T17:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Moving annual total (MAT) without real date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-annual-total-MAT-without-real-date/m-p/1740519#M36166</link>
      <description>&lt;LI-CODE lang="markup"&gt;MAT =
VAR LastVisiblePeriod = MAX('calendar'[cum_period])
VAR Period =
	FILTER(
		ALL('calendar'),
		'calendar'[cum_period] &amp;gt; LastVisiblePeriod -13 &amp;amp;&amp;amp;
		'calendar'[cum_period] &amp;lt;= LastVisiblePeriod
	)
RETURN
CALCULATE (
	[Sales Amount],
	Period
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Mar 2021 19:05:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-annual-total-MAT-without-real-date/m-p/1740519#M36166</guid>
      <dc:creator>JW_van_Holst</dc:creator>
      <dc:date>2021-03-23T19:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Moving annual total (MAT) without real date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-annual-total-MAT-without-real-date/m-p/1741722#M36196</link>
      <description>&lt;P&gt;Hi JW,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is perfect, thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 08:03:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Moving-annual-total-MAT-without-real-date/m-p/1741722#M36196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-24T08:03:25Z</dc:date>
    </item>
  </channel>
</rss>

