<?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: Dynamic date calculation i.e. rolling total for 12-24 months ago in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827472#M38802</link>
    <description>&lt;P&gt;It is just a table/matrix, so no date axis as such.&lt;/P&gt;</description>
    <pubDate>Thu, 06 May 2021 12:19:19 GMT</pubDate>
    <dc:creator>gingerclaire</dc:creator>
    <dc:date>2021-05-06T12:19:19Z</dc:date>
    <item>
      <title>Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1814363#M38369</link>
      <description>&lt;P&gt;Hi all you helpful people!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I am trying to recreate an excel for someone (trying to convert everyone to PBI!!) which shows the following columns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Product name (easy)&lt;/LI&gt;&lt;LI&gt;last 12 months rolling (managed that)&lt;/LI&gt;&lt;LI&gt;*12 months BEFORE the last 12 months rolling (this is where i come unstuck!)&lt;/LI&gt;&lt;LI&gt;Last 3 months rolling (ok with that)&lt;/LI&gt;&lt;LI&gt;*Same 3 month period the year before (eeek help!)&lt;/LI&gt;&lt;LI&gt;Last month total (fine and dandy)&lt;/LI&gt;&lt;LI&gt;*Same month total last year (arghghghghghhg!)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please could you help me wiht those in with a *? I am a relative noob to this so am still fumbling my way around DAX. I was hoping SAMEPERIODLASTYEAR might help, but i couldnt get that to work on a table that wasn't date based.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My tables are called:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;'Sales' with the relevant field being [Value]&lt;/LI&gt;&lt;LI&gt;'Date table' [Date] or 'Sales' [relative continuous month]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hoping one of you can help me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 14:12:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1814363#M38369</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2021-04-29T14:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1814444#M38372</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284783" data-lia-user-login="gingerclaire" class="lia-mention lia-mention-user"&gt;gingerclaire&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You said someting about having a table that is not date-based, but you also say you have a Date table.&amp;nbsp; Is the Date table a Calendar table? DAX Time Intelligence functions like SAMEPERIODLASTYEAR require a date table that contains every date, not just months.&amp;nbsp; With that type of table you can still join to Sales that only has one date per month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See here for more about Calendar tables:&amp;nbsp;&lt;A href="https://dax.guide/calendar/" target="_self"&gt;CALENDAR&lt;/A&gt;&amp;nbsp;;&amp;nbsp;&lt;A href="https://dax.guide/calendarauto/" target="_self"&gt;CALENDARAUTO&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't have the ability to create tables, you may want to check out&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;'s&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000" target="_self"&gt;"To *bleep* with Time Intelligence"&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally if you can create/manage tables and you're still having issues, please post your measure code and some sample data, or a link to a copy of your pbix file that has sensitive data removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 14:46:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1814444#M38372</guid>
      <dc:creator>dedelman_clng</dc:creator>
      <dc:date>2021-04-29T14:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1814456#M38373</link>
      <description>&lt;P&gt;Sorry - I do have a date table. I meant that I am trying to create this visual as a matrix or table which has products as the first column.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 14:48:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1814456#M38373</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2021-04-29T14:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1814562#M38377</link>
      <description>&lt;P&gt;Understood. I would still suggest looking at Greg Deckler's blog, as that may inspire you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other than that, we'd have to see your code, data and model to begin to help further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 15:17:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1814562#M38377</guid>
      <dc:creator>dedelman_clng</dc:creator>
      <dc:date>2021-04-29T15:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827421#M38796</link>
      <description>&lt;P&gt;Hi David - I don't have any code - that is the problem. At the moment I am using these measures to work out the last 12, 3 and 1 month and they seem to be working:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sales in last 1 month = CALCULATE([Total sales], datesinperiod(Sales[Relative continuous month], MAX(Sales[Relative continuous month]),-1,MONTH))&lt;/P&gt;&lt;P&gt;The ones I am having trouble with are:&lt;/P&gt;&lt;P&gt;Last month 12 months ago (i.e. sum of 13 months)&lt;BR /&gt;Last 3 months 12 months ago (i.e. sum of 4-6 months ago)&lt;BR /&gt;Last 12 months 12 months ago (i.e. sum of 12-24 months ago)&lt;/P&gt;&lt;P&gt;I cant share the data as it is sensitive but if you let me know exactly what you would need to see i can screenshot that?&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 11:57:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827421#M38796</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2021-05-06T11:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827437#M38797</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have easily access to the current/selected date (or month) ?&lt;/P&gt;&lt;P&gt;If yes, you could use a little trick with selected value and a Calculate(yourMeasure;ALL(Date);SelectedDate - 12 month).&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 12:04:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827437#M38797</guid>
      <dc:creator>jdeveaux</dc:creator>
      <dc:date>2021-05-06T12:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827449#M38799</link>
      <description>&lt;P&gt;Sorry - but i dont understand what you mean by 'Do you have easily access to the current/selected date (or month) ?' How would i do this/set this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 12:10:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827449#M38799</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2021-05-06T12:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827456#M38800</link>
      <description>&lt;P&gt;What kind of visual are you trying to set up? Is there any date axis?&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 12:14:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827456#M38800</guid>
      <dc:creator>jdeveaux</dc:creator>
      <dc:date>2021-05-06T12:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827472#M38802</link>
      <description>&lt;P&gt;It is just a table/matrix, so no date axis as such.&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 12:19:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827472#M38802</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2021-05-06T12:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827544#M38805</link>
      <description>&lt;P&gt;So I have created a measure called CM Max Date to return my most recent date.&lt;/P&gt;&lt;P&gt;CM Max date = MAX(Sales[Relative continuous month])&lt;/P&gt;&lt;P&gt;Then i created this:&lt;/P&gt;&lt;P&gt;CM year last year = Calculate([CM Sales in last 12 months],ALL(Sales),[CM Max date],-12,month)&lt;/P&gt;&lt;P&gt;But i get the following error&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 12:59:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827544#M38805</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2021-05-06T12:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827602#M38806</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284783" data-lia-user-login="gingerclaire" class="lia-mention lia-mention-user"&gt;gingerclaire&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What we need to do is build a flexible FILTER statement to get only the dates we want, then apply that filter to the measure.&amp;nbsp; Have a try with this code (modify as necessary)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MyMeasureFiltered =
VAR __StartOffset = 12 //How many months back from current month?
VAR __EndOffset = 0 //use 0 for current month, otherwise how many months back from current month
VAR __StartDt = //goes back to the end of the month X+1 months ago,
                //then goes to the 1st of the following month
    EOMONTH ( TODAY (), -1 * ( __StartOffset + 1 ) ) + 1  
VAR __EndDt =
    EOMONTH ( TODAY (), -1 * __EndOffset )
RETURN
    CALCULATE (
        [MyMeasure],
        FILTER (
            ALL ( DateTab ),
            DateTab[Date] &amp;gt;= __StartDt
                &amp;amp;&amp;amp; DateTab[Date] &amp;lt;= __EndDt
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I've shown is your 13 months filter (this month + 12 behind). Change the offsets to get to your other use cases.&amp;nbsp; What you use for the offsets depends on your definition of "X Months Ago".&amp;nbsp; Is 3 months ago February, or is it March?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 13:30:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827602#M38806</guid>
      <dc:creator>dedelman_clng</dc:creator>
      <dc:date>2021-05-06T13:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827682#M38809</link>
      <description>&lt;P&gt;Thank you! What would [MyMeasure] be in this case? My 1 month measure? Or my latest date measure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 13:55:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827682#M38809</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2021-05-06T13:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827717#M38813</link>
      <description>&lt;P&gt;I have tried this using the following, but it seems to add up all sales that have happened in the last 13 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to show the total for month -13 only (and also then -13-15 and -13 - 24)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CM 12 months plus 1 month =&lt;BR /&gt;VAR __StartOffset = 12&lt;BR /&gt;VAR __EndOffset = 0&lt;BR /&gt;VAR __StartDt =&lt;BR /&gt;EOMONTH ( TODAY (), -1 * ( __StartOffset + 1 ) ) + 1&lt;BR /&gt;VAR __EndDt =&lt;BR /&gt;EOMONTH ( TODAY (), -1 * __EndOffset )&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE (&lt;BR /&gt;[Total sales],&lt;BR /&gt;FILTER (&lt;BR /&gt;ALL ( Sales[Relative continuous month] ),&lt;BR /&gt;Sales[Relative continuous month] &amp;gt;= __StartDt&lt;BR /&gt;&amp;amp;&amp;amp; Sales[Relative continuous month] &amp;lt;= __EndDt&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 14:10:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827717#M38813</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2021-05-06T14:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827728#M38815</link>
      <description>&lt;P&gt;For just one month, set StartOffset and EndOffset to be the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And [MyMeasure] should be whatever you are using for one month. Can you share the code for that measure?&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 14:10:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827728#M38815</guid>
      <dc:creator>dedelman_clng</dc:creator>
      <dc:date>2021-05-06T14:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827731#M38816</link>
      <description>&lt;P&gt;CM Sales in last 1 month = CALCULATE([Total sales], datesinperiod(Sales[Relative continuous month], MAX(Sales[Relative continuous month]),-1,MONTH))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i use that in the dax it returns the same as my one month sales&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 14:14:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827731#M38816</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2021-05-06T14:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827746#M38817</link>
      <description>&lt;P&gt;[Total Sales] will be [MyMeasure]&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 14:15:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827746#M38817</guid>
      <dc:creator>dedelman_clng</dc:creator>
      <dc:date>2021-05-06T14:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827751#M38818</link>
      <description>&lt;P&gt;Thank you so much for your patience with me. When i use total sales as mymeasure, it seems to show the total for the last 13 months together (rather than just the total for month 13)?&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 14:18:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827751#M38818</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2021-05-06T14:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827765#M38820</link>
      <description>&lt;P&gt;Did you set StartOffset and EndOffset to be the same?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MyMeasureFiltered =
VAR __StartOffset = 3 
VAR __EndOffset = 3 
VAR __StartDt =
    EOMONTH ( TODAY (), -1 * ( __StartOffset + 1 ) ) + 1
...
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 May 2021 14:23:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827765#M38820</guid>
      <dc:creator>dedelman_clng</dc:creator>
      <dc:date>2021-05-06T14:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827805#M38823</link>
      <description>&lt;P&gt;Yes - i used this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CM 12 months plus 1 month =&lt;BR /&gt;VAR __StartOffset = 12&lt;BR /&gt;VAR __EndOffset = 0&lt;BR /&gt;VAR __StartDt =&lt;BR /&gt;EOMONTH ( TODAY (), -1 * ( __StartOffset + 1 ) ) + 1&lt;BR /&gt;VAR __EndDt =&lt;BR /&gt;EOMONTH ( TODAY (), -1 * __EndOffset )&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE (&lt;BR /&gt;[Total sales],&lt;BR /&gt;FILTER (&lt;BR /&gt;ALL ( Sales[Relative continuous month] ),&lt;BR /&gt;Sales[Relative continuous month] &amp;gt;= __StartDt&lt;BR /&gt;&amp;amp;&amp;amp; Sales[Relative continuous month] &amp;lt;= __EndDt&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 14:34:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827805#M38823</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2021-05-06T14:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date calculation i.e. rolling total for 12-24 months ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827820#M38825</link>
      <description>&lt;P&gt;You have to change the values of __StartOffset and __EndOffset in the code. You still have them as 12 and 0. For one month's worth they have to be the same.&amp;nbsp; You will need to create a different measure for every scenario of __StartOffset and __EndOffset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you said that you had a calendar/date table. You are applying this to your sales table which may not work as you want it to.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 14:39:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-date-calculation-i-e-rolling-total-for-12-24-months-ago/m-p/1827820#M38825</guid>
      <dc:creator>dedelman_clng</dc:creator>
      <dc:date>2021-05-06T14:39:00Z</dc:date>
    </item>
  </channel>
</rss>

