<?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: Last 12 month mesure problems in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-month-mesure-problems/m-p/1862850#M39917</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="283358" data-lia-user-login="Crestous" class="lia-mention lia-mention-user"&gt;Crestous&lt;/a&gt; , Usually last 12 or rolling 12 measure should be done with date table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example measure&lt;/P&gt;
&lt;P&gt;Rolling 12 = CALCULATE(Sum(TurnOver_Temp[TurnOver_Temp[Separations],DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH)) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 14:17:18 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-05-25T14:17:18Z</dc:date>
    <item>
      <title>Last 12 month mesure problems</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-month-mesure-problems/m-p/1862193#M39899</link>
      <description>&lt;P&gt;Hi guys!&lt;BR /&gt;&lt;BR /&gt;I have here a sample data and a table with the result I would like to get but I cannot&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://drive.google.com/drive/folders/1mM6JwwxCI2HYNOHAkbYw7ZRlkLTjHPVF?usp=sharing" target="_blank"&gt;https://drive.google.com/drive/folders/1mM6JwwxCI2HYNOHAkbYw7ZRlkLTjHPVF?usp=sharing&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I am trying to create a Rolling measure for the last 12 months, which is a separation ratio I have tried several solutions in he forum:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Trailing-12-or-Rolling-12-month-sum/m-p/164419" target="_blank" rel="noopener"&gt;Solved: Trailing 12 or Rolling 12 month sum - Microsoft Power BI Community&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Rolling-12-month-Total/m-p/1719142#M679659" target="_blank" rel="noopener"&gt;Solved: Rolling 12 month Total - Microsoft Power BI Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Videos in youtube:&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=duMSovyosXE" target="_blank" rel="noopener"&gt;DAX for Power BI - Last 12 Months from Selected Date (Trailing 12 Months TTM) - YouTube&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=HJ95vtzsuIY" target="_blank" rel="noopener"&gt;Rolling 12 Months DAX Measure in Power BI - YouTube&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and external forums:&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/53117589/how-to-get-rolling-12-month-sum-in-powerbi" target="_blank" rel="noopener"&gt;dax - How to get rolling 12 month sum in PowerBI - Stack Overflow&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://blog.enterprisedna.co/calculate-rolling-totals-in-power-bi-using-dax/" target="_blank" rel="noopener"&gt;Calculate Rolling Totals Using DATESBETWEEN In Power BI | Enterprise DNA&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://intellipaat.com/community/61722/how-to-get-rolling-12-month-sum-in-powerbi" target="_blank" rel="noopener"&gt;How to get rolling 12 month sum in PowerBI - Intellipaat&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This one works as an extra column:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rolling Separations by year = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR START_DATE = TurnOver_Temp[Aux2]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR MAX_DATE = TurnOver_Temp[Date Value]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM(TurnOver_Temp[Separations]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(ALLEXCEPT(TurnOver_Temp,TurnOver_Temp[Global Wage Class],TurnOver_Temp[Leaving Category]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TurnOver_Temp[Date Value] &amp;gt;= START_DATE &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TurnOver_Temp[Date Value] &amp;lt;= MAX_DATE)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;I can manage to get the sum for the last 12 months properly with a measure. so far for now with extra columns I manage to get the results but in that way my filters are not applying correctly is it possible to get the assistance of anyone?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 03:14:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-month-mesure-problems/m-p/1862193#M39899</guid>
      <dc:creator>Crestous</dc:creator>
      <dc:date>2021-05-26T03:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 month mesure problems</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-month-mesure-problems/m-p/1862850#M39917</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="283358" data-lia-user-login="Crestous" class="lia-mention lia-mention-user"&gt;Crestous&lt;/a&gt; , Usually last 12 or rolling 12 measure should be done with date table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example measure&lt;/P&gt;
&lt;P&gt;Rolling 12 = CALCULATE(Sum(TurnOver_Temp[TurnOver_Temp[Separations],DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH)) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 14:17:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-month-mesure-problems/m-p/1862850#M39917</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-05-25T14:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 month mesure problems</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-month-mesure-problems/m-p/1863701#M39942</link>
      <description>&lt;P&gt;HEre you may find the sample data and the result I should get if I group by month, but ideally it should be able to be filtered by any category in the sample data::&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://drive.google.com/drive/folders/1mM6JwwxCI2HYNOHAkbYw7ZRlkLTjHPVF?usp=sharing" target="_blank"&gt;https://drive.google.com/drive/folders/1mM6JwwxCI2HYNOHAkbYw7ZRlkLTjHPVF?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 03:13:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-12-month-mesure-problems/m-p/1863701#M39942</guid>
      <dc:creator>Crestous</dc:creator>
      <dc:date>2021-05-26T03:13:40Z</dc:date>
    </item>
  </channel>
</rss>

