<?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: YTD and SAMEPERIODLASTYEAR in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-and-SAMEPERIODLASTYEAR/m-p/2129502#M48858</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331871" data-lia-user-login="mthomas1973" class="lia-mention lia-mention-user"&gt;mthomas1973&lt;/a&gt; , prefer to use date table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ytd actual = TOTALYTD([Actual],'Date'[Date],"31/03")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Last ytd actual = TOTALYTD([Actual],dateadd('Date'[Date],-1, year) ,"31/03")&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>Tue, 12 Oct 2021 11:00:17 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-10-12T11:00:17Z</dc:date>
    <item>
      <title>YTD and SAMEPERIODLASTYEAR</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-and-SAMEPERIODLASTYEAR/m-p/2129267#M48855</link>
      <description>&lt;P&gt;Hello all. I hope someone can help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am dipping my toes into time intelligent function for the first time and have a result I can't understand.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a couple of measures:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ytd actual = TOTALYTD([Actual],'oa FactPeriodEndBalance'[PeriodEndDate],"31/03")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;py actual = calculate([Actual],SAMEPERIODLASTYEAR('oa FactPeriodEndBalance'[PeriodEndDate]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I then use these in table that looks like this&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything works great (there are also other sections, all of which behave as I expected). The oddity is that Fair Value Adj figure. The amount sits in the period 31/3/2021 so should be in the previous financial year not this one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is worth noting that the total (2,089K) in the matrix ignores that Fair Value amount and is the sum of sales and interest only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something obvious? Any help is appreciated.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Oct 2021 09:29:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-and-SAMEPERIODLASTYEAR/m-p/2129267#M48855</guid>
      <dc:creator>mthomas1973</dc:creator>
      <dc:date>2021-10-12T09:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: YTD and SAMEPERIODLASTYEAR</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-and-SAMEPERIODLASTYEAR/m-p/2129502#M48858</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331871" data-lia-user-login="mthomas1973" class="lia-mention lia-mention-user"&gt;mthomas1973&lt;/a&gt; , prefer to use date table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ytd actual = TOTALYTD([Actual],'Date'[Date],"31/03")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Last ytd actual = TOTALYTD([Actual],dateadd('Date'[Date],-1, year) ,"31/03")&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>Tue, 12 Oct 2021 11:00:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-and-SAMEPERIODLASTYEAR/m-p/2129502#M48858</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-10-12T11:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: YTD and SAMEPERIODLASTYEAR</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-and-SAMEPERIODLASTYEAR/m-p/2129790#M48869</link>
      <description>&lt;P&gt;That's great thank you. Yes, seems to be behaving more normally now -- really appreciate the steer&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 13:03:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/YTD-and-SAMEPERIODLASTYEAR/m-p/2129790#M48869</guid>
      <dc:creator>mthomas1973</dc:creator>
      <dc:date>2021-10-12T13:03:35Z</dc:date>
    </item>
  </channel>
</rss>

