<?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 DAX For SamePeriodLastYear in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-For-SamePeriodLastYear/m-p/672422#M370</link>
    <description>&lt;P&gt;I have one Date Table, one table [Active Contracts] with distinct ContractNumber as PrimaryKey, and four other tables which has ContractNumber as Foreign Key and has Date on each of four tables and I have also created Many to One relationship. I am using ContractNumber and Date as Filter.&lt;/P&gt;&lt;P&gt;All the calculation works but the sameperiodLastyear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Recent Year Total DAX looks like&amp;nbsp; RecentYearRevenue= sum(BaseAmount) + sum(OverageAmount), for the date Range selected. So my Previous Year Total DAX looks like&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Previous Year Revenue= CALCULATE( RecentYearRevenue,SAMEPERIODLASTYEAR('Date'[Date])).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;it works for all contracts, but when I filter it by contract number, PreviousYearRevenue is returning BLANK. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Your help will be highly appriciated. Thank you in Advance!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 17 Apr 2019 20:15:22 GMT</pubDate>
    <dc:creator>kedarn1991</dc:creator>
    <dc:date>2019-04-17T20:15:22Z</dc:date>
    <item>
      <title>DAX For SamePeriodLastYear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-For-SamePeriodLastYear/m-p/672422#M370</link>
      <description>&lt;P&gt;I have one Date Table, one table [Active Contracts] with distinct ContractNumber as PrimaryKey, and four other tables which has ContractNumber as Foreign Key and has Date on each of four tables and I have also created Many to One relationship. I am using ContractNumber and Date as Filter.&lt;/P&gt;&lt;P&gt;All the calculation works but the sameperiodLastyear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Recent Year Total DAX looks like&amp;nbsp; RecentYearRevenue= sum(BaseAmount) + sum(OverageAmount), for the date Range selected. So my Previous Year Total DAX looks like&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Previous Year Revenue= CALCULATE( RecentYearRevenue,SAMEPERIODLASTYEAR('Date'[Date])).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;it works for all contracts, but when I filter it by contract number, PreviousYearRevenue is returning BLANK. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Your help will be highly appriciated. Thank you in Advance!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Apr 2019 20:15:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-For-SamePeriodLastYear/m-p/672422#M370</guid>
      <dc:creator>kedarn1991</dc:creator>
      <dc:date>2019-04-17T20:15:22Z</dc:date>
    </item>
  </channel>
</rss>

