<?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: Rolling 12 months excluding current month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-12-months-excluding-current-month/m-p/2015623#M44837</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="319727" data-lia-user-login="mannyjha7860" class="lia-mention lia-mention-user"&gt;mannyjha7860&lt;/a&gt; , datediff in case of current month is 0, if you need last 12 month excluding current, then it should be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rolling 12 Months = var daydiff=DATEDIFF('Calendar'[Date],TODAY(),MONTH ) return&lt;BR /&gt;IF(daydiff&amp;gt;0 &amp;amp;&amp;amp; daydiff&amp;lt;=12,"last 12 months","not last 12 months")&lt;/P&gt;</description>
    <pubDate>Fri, 13 Aug 2021 15:01:18 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-08-13T15:01:18Z</dc:date>
    <item>
      <title>Rolling 12 months excluding current month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-12-months-excluding-current-month/m-p/2015168#M44815</link>
      <description>&lt;P&gt;I ve tried rolling 12 month dax in the visual but when I select 12 months it doesn't show me full data for last year 1st month(Aug).But when I select 13 months it show me the full data for (Aug).&lt;/P&gt;&lt;P&gt;Dax I used:-&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rolling 12 Months = var daydiff=DATEDIFF('Calendar'[Date],TODAY(),MONTH ) return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(daydiff&amp;gt;=0 &amp;amp;&amp;amp; daydiff&amp;lt;=11,"last 12 months","not last 12 months")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 10:12:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-12-months-excluding-current-month/m-p/2015168#M44815</guid>
      <dc:creator>mannyjha7860</dc:creator>
      <dc:date>2021-08-13T10:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 months excluding current month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-12-months-excluding-current-month/m-p/2015623#M44837</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="319727" data-lia-user-login="mannyjha7860" class="lia-mention lia-mention-user"&gt;mannyjha7860&lt;/a&gt; , datediff in case of current month is 0, if you need last 12 month excluding current, then it should be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rolling 12 Months = var daydiff=DATEDIFF('Calendar'[Date],TODAY(),MONTH ) return&lt;BR /&gt;IF(daydiff&amp;gt;0 &amp;amp;&amp;amp; daydiff&amp;lt;=12,"last 12 months","not last 12 months")&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 15:01:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-12-months-excluding-current-month/m-p/2015623#M44837</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-08-13T15:01:18Z</dc:date>
    </item>
  </channel>
</rss>

