<?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: creating moving measure of the last 12 months without accumulating. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/creating-moving-measure-of-the-last-12-months-without/m-p/2002631#M44470</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;i created this measure and it worked for me i'm posting here to help other people with the same problem, but thank you for all the help.&lt;BR /&gt;&lt;BR /&gt;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Valor Consumo],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DATESINPERIOD(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dData[Data],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LASTDATE(dData[Data]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-12,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MONTH)&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VALUES(dData[Nome do Mês])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 06 Aug 2021 14:47:00 GMT</pubDate>
    <dc:creator>David_Marks</dc:creator>
    <dc:date>2021-08-06T14:47:00Z</dc:date>
    <item>
      <title>creating moving measure of the last 12 months without accumulating.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/creating-moving-measure-of-the-last-12-months-without/m-p/2000861#M44421</link>
      <description>&lt;P&gt;I need a measure that returns me the last 12 months of my base, but without accumulating. For example, if the base have 16 months, it only returns the last 12 months. it would be another moving measure always bringing the last 12 months. But if in my base have just 5 months will bring me just 5 months and when i have 12 months or more, it will bring me 12 months always 12 last months.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 18:35:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/creating-moving-measure-of-the-last-12-months-without/m-p/2000861#M44421</guid>
      <dc:creator>David_Marks</dc:creator>
      <dc:date>2021-08-05T18:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: creating moving measure of the last 12 months without accumulating.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/creating-moving-measure-of-the-last-12-months-without/m-p/2001518#M44440</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="303016" data-lia-user-login="David_Marks" class="lia-mention lia-mention-user"&gt;David_Marks&lt;/a&gt; , Based on what I got,&lt;/P&gt;
&lt;P&gt;First, create a measure&lt;/P&gt;
&lt;P&gt;Avg 1 = averageX(Values('Date'[Month Year]), calculate(SUM(Sales[Sales Amount])))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then try&lt;/P&gt;
&lt;P&gt;Cumm Sales = CALCULATE([Avg 1],filter(allselected(date),date[date] &amp;lt;=max(date[Date])))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 06:03:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/creating-moving-measure-of-the-last-12-months-without/m-p/2001518#M44440</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-08-06T06:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: creating moving measure of the last 12 months without accumulating.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/creating-moving-measure-of-the-last-12-months-without/m-p/2002631#M44470</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;i created this measure and it worked for me i'm posting here to help other people with the same problem, but thank you for all the help.&lt;BR /&gt;&lt;BR /&gt;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Valor Consumo],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DATESINPERIOD(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dData[Data],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LASTDATE(dData[Data]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-12,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MONTH)&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VALUES(dData[Nome do Mês])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Aug 2021 14:47:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/creating-moving-measure-of-the-last-12-months-without/m-p/2002631#M44470</guid>
      <dc:creator>David_Marks</dc:creator>
      <dc:date>2021-08-06T14:47:00Z</dc:date>
    </item>
  </channel>
</rss>

