<?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: TOTALYTD variable year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409969#M63458</link>
    <description>&lt;P&gt;tamerj1 - this does work to a degree, however it excludes the year on year comparison that I need:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a test &lt;A href="https://www.dropbox.com/s/kkshtwzm228ekm9/TOTALYTD%20using%20variable%20year%20end%20date.pbix?dl=0" target="_self"&gt;pbix file&lt;/A&gt; set up like mine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to say I admire your tenacity!&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 15:25:44 GMT</pubDate>
    <dc:creator>C4L84</dc:creator>
    <dc:date>2022-03-22T15:25:44Z</dc:date>
    <item>
      <title>TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2407190#M63260</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to pass thorugh a variable year end to TOTALYTD, however it's not working as hoped:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Running Total Spend = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;_EndDate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'FY end'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;"DD/MM"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;TOTALYTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Invoiced Sales'[Spend]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;_EndDate&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems as though the FORMAT function is changing the data type to text and therefore it isn't recognised by the TOTALYTD because it interperets the text as arguement 3 - ie the filter part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to pass a variable date through to the year end arguement of the TOTALYTD formula?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 16:36:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2407190#M63260</guid>
      <dc:creator>C4L84</dc:creator>
      <dc:date>2022-03-21T16:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2407440#M63274</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="156886" data-lia-user-login="C4L84" class="lia-mention lia-mention-user"&gt;C4L84&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why do you need to format the date before calculating the YTD?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 18:51:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2407440#M63274</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-21T18:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409004#M63354</link>
      <description>&lt;P&gt;Hi tamerj1 - it's easier to understand&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 09:38:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409004#M63354</guid>
      <dc:creator>C4L84</dc:creator>
      <dc:date>2022-03-22T09:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409042#M63357</link>
      <description>&lt;P&gt;Then can you try without the time format?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 09:46:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409042#M63357</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-22T09:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409050#M63359</link>
      <description>&lt;P&gt;I'm sorry, I don't understand... I'm not formatting the time - it's formatted dd/mm day/month eg 22/03&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 09:50:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409050#M63359</guid>
      <dc:creator>C4L84</dc:creator>
      <dc:date>2022-03-22T09:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409138#M63364</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="156886" data-lia-user-login="C4L84" class="lia-mention lia-mention-user"&gt;C4L84&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Ok.&amp;nbsp;Then I guess you mean to say that the date has text data type and this is the source of the error. Usually you should check and fix data type of all columns in power query before loading the data. However, if this is not what you want to do and if you don't want to create&amp;nbsp;a new column in the 'FY End' table with the correct data type date then you can use the following code. Hopefully, DAX will automatically convert the string numbers into integers:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Running Total Spend =
VAR _EndDate =
    MAXX (
        ADDCOLUMNS (
            'FY end',
            "@Date", DATE ( 1, RIGHT ( 'FY end'[Date], 2 ), LEFT ( 'FY end'[Date], 2 ) )
        ),
        [@Date]
    )
RETURN
    TOTALYTD ( SUM ( 'Invoiced Sales'[Spend] ), 'Calendar'[Date], _EndDate )&lt;/LI-CODE&gt;&lt;P&gt;If the error remains then use this one&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Running Total Spend =
VAR _EndDate =
    MAXX (
        ADDCOLUMNS (
            'FY end',
            "@Date",
                DATE ( 1, INT ( RIGHT ( 'FY end'[Date], 2 ) ), INT ( LEFT ( 'FY end'[Date], 2 ) ) )
        ),
        [@Date]
    )
RETURN
    TOTALYTD ( SUM ( 'Invoiced Sales'[Spend] ), 'Calendar'[Date], _EndDate )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Mar 2022 10:21:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409138#M63364</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-22T10:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409154#M63366</link>
      <description>&lt;P&gt;The data type of 'FY End'[Date] is date, not text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The TOTALYTD formula will not accept dd/mm/yy format for the year end arguement, so I need to drop the year from 'FY End'[Date].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attempted to do this using FORMAT but I think it changes the data type from date to text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used your suggested expression but had this:&lt;/P&gt;&lt;P&gt;"The True/False expression does not specify a column. Each True/False expressions used as a table filter expression must refer to exactly one column."&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 10:29:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409154#M63366</guid>
      <dc:creator>C4L84</dc:creator>
      <dc:date>2022-03-22T10:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409223#M63372</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="156886" data-lia-user-login="C4L84" class="lia-mention lia-mention-user"&gt;C4L84&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The last argument is the last date of your fiscal year. This is usually a fixed number. But who said you need to&amp;nbsp;&lt;SPAN&gt;drop the year from 'FY End'[Date]? This should be a proper date. Am I missing something&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 11:06:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409223#M63372</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-22T11:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409245#M63374</link>
      <description>&lt;P&gt;In this instance the last arguement is not a fixed number, I have a parameter in the pbix that changes the 'FY End'[Date].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The year portion isn't required in the TOTALYTD year end arguement:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/totalytd-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/totalytd-function-dax&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 11:14:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409245#M63374</guid>
      <dc:creator>C4L84</dc:creator>
      <dc:date>2022-03-22T11:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409533#M63404</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="156886" data-lia-user-login="C4L84" class="lia-mention lia-mention-user"&gt;C4L84&lt;/a&gt; , I doubt you can use dynamic value for that. It can take date in dd/mm too&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running Total Spend =&lt;/P&gt;
&lt;P&gt;VAR _EndDate = MAX('FY end'[Date])&lt;BR /&gt;VAR _StartDate = eomonth(_EndDate,-12)+1 //or// date(year(_EndDate)-1, month(_EndDate) , day(_EndDate)+1)&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;calculate(SUM('Invoiced Sales'[Spend]), filter('Calendar','Calendar'[Date] &amp;gt;=_StartDate &amp;amp;&amp;amp; 'Calendar'[Date] &amp;lt;= _EndDate ))&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running Total Spend =&lt;/P&gt;
&lt;P&gt;VAR _EndDate = MAX('FY end'[Date])&lt;BR /&gt;VAR _StartDate = eomonth(_EndDate,-12)+1 //or// date(year(_EndDate)-1, month(_EndDate) , day(_EndDate)+1)&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;calculate(SUM('Invoiced Sales'[Spend]), filter(all('Calendar'),'Calendar'[Date] &amp;gt;=_StartDate &amp;amp;&amp;amp; 'Calendar'[Date] &amp;lt;= _EndDate ))&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:00:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409533#M63404</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-22T13:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409545#M63407</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="156886" data-lia-user-login="C4L84" class="lia-mention lia-mention-user"&gt;C4L84&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You need to check your local settings. Try insert dates manually untill you get it right with no error.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:05:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409545#M63407</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-22T13:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409792#M63430</link>
      <description>&lt;P&gt;It works fine when the date is added manually, so I don't think it is because of the local settings.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:22:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409792#M63430</guid>
      <dc:creator>C4L84</dc:creator>
      <dc:date>2022-03-22T14:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409818#M63434</link>
      <description>&lt;P&gt;Thank you for your suggestions amitchandak, however neither of them work:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I've uploaded a test pbix to dropbox &lt;A href="https://www.dropbox.com/s/kkshtwzm228ekm9/TOTALYTD%20using%20variable%20year%20end%20date.pbix?dl=0" target="_self"&gt;here&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:31:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409818#M63434</guid>
      <dc:creator>C4L84</dc:creator>
      <dc:date>2022-03-22T14:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409927#M63452</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Forget about time intelligence functions and try to do it manually. Try this&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Running Total Spend =
VAR _EndDate =
    MAX ( 'FY end'[Date] )
VAR _StartDate = _EndDate - 364
VAR _CurrentDate =
    MAX ( 'Calendar'[Date] )
RETURN
    CALCULATE (
        SUM ( 'Invoiced Sales'[Spend] ),
        REMOVEFILTERS ( 'Calendar' ),
        'Calendar'[Date] &amp;gt;= _StartDate,
        'Calendar'[Date] &amp;lt;= _CurrentDate
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Mar 2022 15:06:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409927#M63452</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-22T15:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409969#M63458</link>
      <description>&lt;P&gt;tamerj1 - this does work to a degree, however it excludes the year on year comparison that I need:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a test &lt;A href="https://www.dropbox.com/s/kkshtwzm228ekm9/TOTALYTD%20using%20variable%20year%20end%20date.pbix?dl=0" target="_self"&gt;pbix file&lt;/A&gt; set up like mine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to say I admire your tenacity!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 15:25:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2409969#M63458</guid>
      <dc:creator>C4L84</dc:creator>
      <dc:date>2022-03-22T15:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2410003#M63460</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="156886" data-lia-user-login="C4L84" class="lia-mention lia-mention-user"&gt;C4L84&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please explain further what is meant by "excludes the year on year comparison"??&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 15:35:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2410003#M63460</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-22T15:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2410016#M63463</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;As you can see in the top graph there are two financial years, whereas your measure only has one year&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 15:42:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2410016#M63463</guid>
      <dc:creator>C4L84</dc:creator>
      <dc:date>2022-03-22T15:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2410028#M63464</link>
      <description>&lt;P&gt;Not sure about that but you my try&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Running Total Spend =
VAR _EndDate =
    MAX ( 'FY end'[Date] )
VAR _StartDate = _EndDate - 364
VAR _CurrentDate =
    MAX ( 'Calendar'[Date] )
RETURN
    CALCULATE (
        SUM ( 'Invoiced Sales'[Spend] ),
        ALLEXCEPT ( 'Calendar', 'Calendar'[Year] ),
        'Calendar'[Date] &amp;gt;= _StartDate,
        'Calendar'[Date] &amp;lt;= _CurrentDate
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Mar 2022 15:47:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2410028#M63464</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-22T15:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2410057#M63466</link>
      <description>&lt;P&gt;Unfortunately this has not worked:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 15:52:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2410057#M63466</guid>
      <dc:creator>C4L84</dc:creator>
      <dc:date>2022-03-22T15:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: TOTALYTD variable year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2410077#M63467</link>
      <description>&lt;P&gt;Ok I have to admit that this the advantage of time intelligence functions &lt;span class="lia-unicode-emoji" title=":winking_face_with_tongue:"&gt;😜&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, I will try to think of something. Will get back to if I find a solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 15:58:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOTALYTD-variable-year/m-p/2410077#M63467</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-22T15:58:30Z</dc:date>
    </item>
  </channel>
</rss>

