<?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 result in blank page when de-selecting year inbetween in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sameperiodlastyear-result-in-blank-page-when-de-selecting-year/m-p/3245207#M119504</link>
    <description>&lt;P&gt;Hello Wilson,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the late reply. But I have checked and tried the solution. But that is not something that will work for my needs. As it seems that it will copy the needed data to a temp table. But this is not something I wish to do, as there are too many fields that I will need to copy.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But if there's a way to skip the error, then I am also okay. Even that if that wil mean, that it will not show the value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;</description>
    <pubDate>Sat, 20 May 2023 07:08:53 GMT</pubDate>
    <dc:creator>Invisibleman</dc:creator>
    <dc:date>2023-05-20T07:08:53Z</dc:date>
    <item>
      <title>sameperiodlastyear result in blank page when de-selecting year inbetween</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sameperiodlastyear-result-in-blank-page-when-de-selecting-year/m-p/3234402#M118827</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have in my power bi, 4 years. Where I am getting the previous year's value also. However, if I de-select a middle year, then I am getting the white field, so there's an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see below on the picture. As you can see I can select sequencel years, but I can't de-select a middle year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried with sameperiodlastyear and also with dateadd minus 1 year, the problem remains.&lt;/P&gt;&lt;P&gt;Ithe formula I have is;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Revenue All Years 1 year earlier = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Calculations Sales Report Related'&lt;/SPAN&gt;&lt;SPAN&gt;[Revenue All Years]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN&gt;SAMEPERIODLASTYEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;mapCalendar&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I can do with the (SAMEPERIODLASTYEAR(ALL(mapCalendar[Date]))) but then it shows me the total value of it all in each year. But I want to keep that only the values of that year is shown.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anybody could help with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2023 20:26:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sameperiodlastyear-result-in-blank-page-when-de-selecting-year/m-p/3234402#M118827</guid>
      <dc:creator>Invisibleman</dc:creator>
      <dc:date>2023-05-14T20:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: sameperiodlastyear result in blank page when de-selecting year inbetween</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sameperiodlastyear-result-in-blank-page-when-de-selecting-year/m-p/3234439#M118829</link>
      <description>&lt;P&gt;Hello Invisibleman,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is SAMEPERIODLASTYEAR (and most/all date functions only work with an unbroken, continuous date range. Check out this &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Filter-Same-Period-Last-Year-With-non-Consecutive-Dates-DAX/m-p/2094212" target="_self"&gt;previous post&lt;/A&gt; and see if it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;----------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2023 22:52:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sameperiodlastyear-result-in-blank-page-when-de-selecting-year/m-p/3234439#M118829</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-05-14T22:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: sameperiodlastyear result in blank page when de-selecting year inbetween</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sameperiodlastyear-result-in-blank-page-when-de-selecting-year/m-p/3245207#M119504</link>
      <description>&lt;P&gt;Hello Wilson,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the late reply. But I have checked and tried the solution. But that is not something that will work for my needs. As it seems that it will copy the needed data to a temp table. But this is not something I wish to do, as there are too many fields that I will need to copy.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But if there's a way to skip the error, then I am also okay. Even that if that wil mean, that it will not show the value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 07:08:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sameperiodlastyear-result-in-blank-page-when-de-selecting-year/m-p/3245207#M119504</guid>
      <dc:creator>Invisibleman</dc:creator>
      <dc:date>2023-05-20T07:08:53Z</dc:date>
    </item>
  </channel>
</rss>

