<?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: SamePeriodLastYear in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481823#M67974</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Would you please share a screenshot of your table visual?&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 02:25:48 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-04-28T02:25:48Z</dc:date>
    <item>
      <title>SamePeriodLastYear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481693#M67955</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure -- Net_Sales_SPLY = Calcuate(Sum('Table'[SalesAmt]), SAMEPERIODLASTYEAR('CalendarTable'[Date]))&lt;/P&gt;&lt;P&gt;and get the following error every so often.&lt;/P&gt;&lt;P&gt;Not able to fully understand the error message or solve the issue.&lt;/P&gt;&lt;P&gt;I have also tried DateAdd -1 Year - but not able to solve the problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will greatly appreciate some input.&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Pavan&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 01:05:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481693#M67955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-28T01:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: SamePeriodLastYear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481710#M67956</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , You seem to have bidirectional join with with date table, make that single directional.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also make sure calendar table is marked as date table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :&lt;A href="https://youtu.be/OBf0rjpp5Hw" target="_blank"&gt;https://youtu.be/OBf0rjpp5Hw&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4" target="_blank"&gt;https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 01:16:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481710#M67956</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-28T01:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: SamePeriodLastYear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481717#M67961</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you may try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Net_Sales_SPLY =
CALCULATE (
    SUM ( 'Table'[SalesAmt] ),
    SAMEPERIODLASTYEAR ( 'CalendarTable'[Date] ),
    CROSSFILTER ( 'Table'[Date], 'CalendarTable'[Date], 3 )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Apr 2022 01:21:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481717#M67961</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-28T01:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: SamePeriodLastYear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481810#M67970</link>
      <description>&lt;P&gt;Thanks tamerj1.&lt;/P&gt;&lt;P&gt;It is not breaking any more, but the numbers don't seem right.&lt;/P&gt;&lt;P&gt;I should have mentioned earlier that the date in the Table[Sales Amt] is a week ending date, and the date in the Calendar table is a daily date.&amp;nbsp; Not sure if this matters or not.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 02:20:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481810#M67970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-28T02:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: SamePeriodLastYear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481813#M67972</link>
      <description>&lt;P&gt;Thanks amitchandak.&lt;/P&gt;&lt;P&gt;It is not breaking any more, but the numbers don't seem right.&lt;/P&gt;&lt;P&gt;I should have mentioned earlier that the date in the Table[Sales Amt] is a week ending date, and the date in the Calendar table is a daily date.&amp;nbsp; Not sure if this matters or not.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 02:21:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481813#M67972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-28T02:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: SamePeriodLastYear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481823#M67974</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Would you please share a screenshot of your table visual?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 02:25:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481823#M67974</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-28T02:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: SamePeriodLastYear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481831#M67975</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 02:29:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481831#M67975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-28T02:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: SamePeriodLastYear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481850#M67976</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Sorry I mean the report visual. Can you share the results you are getting? What are you slicing by in your report? The Date column from the calendar table or from the sales table?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 02:38:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481850#M67976</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-28T02:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: SamePeriodLastYear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481943#M67981</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , the Same week can fall in a different month. Unless you have 445 calendar. But based on weekend date falling in month total should be correct &lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 03:21:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SamePeriodLastYear/m-p/2481943#M67981</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-28T03:21:13Z</dc:date>
    </item>
  </channel>
</rss>

