<?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: Leap Year issue with SAMEPERIODLASTYEAR in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Leap-Year-issue-with-SAMEPERIODLASTYEAR/m-p/4114682#M163320</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="679797" data-lia-user-login="raji_n" class="lia-mention lia-mention-user"&gt;raji_n&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Now, its skipping 29 Feb 2024 which is good but giving me only the PY Sales for Feb.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2024 02:54:40 GMT</pubDate>
    <dc:creator>dataandme</dc:creator>
    <dc:date>2024-08-23T02:54:40Z</dc:date>
    <item>
      <title>Leap Year issue with SAMEPERIODLASTYEAR</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Leap-Year-issue-with-SAMEPERIODLASTYEAR/m-p/4112469#M163202</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Im new to Power BI and DAX. Really appreciate for some help. I used SAMEPERIODLASTYEAR function to refer back to the Sales Last Year. But Im getting the 28th Feb 2023 sales value reflected as last year's sales for 29th Feb 2024 even though the day 29th Feb 2023 doesnot exists. Is there a work around this to display that value blank when such dates doesnot exists?&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 03:36:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Leap-Year-issue-with-SAMEPERIODLASTYEAR/m-p/4112469#M163202</guid>
      <dc:creator>dataandme</dc:creator>
      <dc:date>2024-08-22T03:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Leap Year issue with SAMEPERIODLASTYEAR</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Leap-Year-issue-with-SAMEPERIODLASTYEAR/m-p/4112573#M163206</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="720547" data-lia-user-login="dataandme" class="lia-mention lia-mention-user"&gt;dataandme&lt;/a&gt;&amp;nbsp;this is the expected behaviour, sameperiodlastyear compares day with day hence 29th is considered, please refer this DAX to handle 29th data,&lt;/P&gt;&lt;P&gt;Sales PY :=&lt;BR /&gt;if( hasonevalue(DateDimension[Date]),&lt;BR /&gt;var __currentDate = max(DateDimension[Date])&lt;BR /&gt;var __shouldCalculate =&lt;BR /&gt;month(__currentDate) &amp;lt;&amp;gt; 2&lt;BR /&gt;&amp;amp;&amp;amp; day(__currentDate) &amp;lt;&amp;gt; 29&lt;BR /&gt;var __result =&lt;BR /&gt;if(__shouldCalculate,&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[System Sales],&lt;BR /&gt;DATEADD(DateDimension[Date],-1,YEAR)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;return&lt;BR /&gt;__result&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 05:07:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Leap-Year-issue-with-SAMEPERIODLASTYEAR/m-p/4112573#M163206</guid>
      <dc:creator>raji_n</dc:creator>
      <dc:date>2024-08-22T05:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Leap Year issue with SAMEPERIODLASTYEAR</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Leap-Year-issue-with-SAMEPERIODLASTYEAR/m-p/4112776#M163211</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="679797" data-lia-user-login="raji_n" class="lia-mention lia-mention-user"&gt;raji_n&lt;/a&gt;,&lt;BR /&gt;Thank you for the DAX, but now the entire month of Feb is vanishing rather than just 29th Feb.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 06:34:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Leap-Year-issue-with-SAMEPERIODLASTYEAR/m-p/4112776#M163211</guid>
      <dc:creator>dataandme</dc:creator>
      <dc:date>2024-08-22T06:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Leap Year issue with SAMEPERIODLASTYEAR</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Leap-Year-issue-with-SAMEPERIODLASTYEAR/m-p/4112784#M163212</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="720547" data-lia-user-login="dataandme" class="lia-mention lia-mention-user"&gt;dataandme&lt;/a&gt;&amp;nbsp;try =2 instead of &amp;lt;&amp;gt;2 in the DAX, my bad, sorry!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 06:35:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Leap-Year-issue-with-SAMEPERIODLASTYEAR/m-p/4112784#M163212</guid>
      <dc:creator>raji_n</dc:creator>
      <dc:date>2024-08-22T06:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Leap Year issue with SAMEPERIODLASTYEAR</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Leap-Year-issue-with-SAMEPERIODLASTYEAR/m-p/4114682#M163320</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="679797" data-lia-user-login="raji_n" class="lia-mention lia-mention-user"&gt;raji_n&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Now, its skipping 29 Feb 2024 which is good but giving me only the PY Sales for Feb.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 02:54:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Leap-Year-issue-with-SAMEPERIODLASTYEAR/m-p/4114682#M163320</guid>
      <dc:creator>dataandme</dc:creator>
      <dc:date>2024-08-23T02:54:40Z</dc:date>
    </item>
  </channel>
</rss>

