<?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: How to achieve a full year, last year measure? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-achieve-a-full-year-last-year-measure/m-p/2482398#M68012</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;According to your description, I create a sample.&lt;/P&gt;
&lt;P&gt;Actually the&amp;nbsp;&lt;SPAN&gt;PARALLELPERIOD can get the correct date period, but it can still be affected by the slicer, so it return blank.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Modify the formula to:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales Full Year LY =
CALCULATE (
    [Sales Full Year],
    PARALLELPERIOD ( 'Date'[Date], -12, MONTH ),
    ALL ( 'Date' )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Get the correct result.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I attach my sample below for reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps,&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&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 07:53:18 GMT</pubDate>
    <dc:creator>v-yanjiang-msft</dc:creator>
    <dc:date>2022-04-28T07:53:18Z</dc:date>
    <item>
      <title>How to achieve a full year, last year measure?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-achieve-a-full-year-last-year-measure/m-p/2471652#M67317</link>
      <description>&lt;P&gt;I need to achieve a &lt;STRONG&gt;FULL Year &lt;/STRONG&gt;measure for &lt;STRONG&gt;Last Year&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To achieve that, I have to… Ignore the &lt;STRONG&gt;Month&lt;/STRONG&gt; and &lt;STRONG&gt;Date&lt;/STRONG&gt; filters, and &lt;U&gt;somehow pick the ‘Fiscal Year’ selected value and do a -1 to it.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My filters:&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;For Full Year what I have is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales Full Year:=



CALCULATE

([Sales] , ALL('Date'[FY &amp;amp; Month], 'Date'[Week Offset],'Date'[Date]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works fine!&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;But for Full Year Last Year I am doing this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales Full Year LY:=

CALCULATE ( [Sales Full Year] , PARALLELPERIOD ( 'Date'[Date] , -12 , MONTH ) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it doesn’t work! How can I achieve my goal?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 13:30:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-achieve-a-full-year-last-year-measure/m-p/2471652#M67317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-22T13:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve a full year, last year measure?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-achieve-a-full-year-last-year-measure/m-p/2471699#M67322</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Can this work? Example set up measures.&lt;/P&gt;&lt;P&gt;Sales = SUM(Sales[Sales Amt])&lt;/P&gt;&lt;P&gt;Sales Full Year = CALCULATE([Sales], FILTER(Dates, Dates[Year] = XXXX))&amp;nbsp; * you can choose the year, e.g. 2021&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales Full Year LY:=

CALCULATE ( [Sales Full Year] , PARALLELPERIOD ( 'Date'[Date] , -1 , YEAR ) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to see a better over view, please see page 3 on the attached file. Here you can use the fields from the Date Table to also show you yearly sales. I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;A title="Date Calculations" href="https://drive.google.com/file/d/1gHqCvtbQf3NeoFcVak_EF45cjH2kAiF8/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1gHqCvtbQf3NeoFcVak_EF45cjH2kAiF8/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 13:49:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-achieve-a-full-year-last-year-measure/m-p/2471699#M67322</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-22T13:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve a full year, last year measure?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-achieve-a-full-year-last-year-measure/m-p/2482398#M68012</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;According to your description, I create a sample.&lt;/P&gt;
&lt;P&gt;Actually the&amp;nbsp;&lt;SPAN&gt;PARALLELPERIOD can get the correct date period, but it can still be affected by the slicer, so it return blank.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Modify the formula to:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales Full Year LY =
CALCULATE (
    [Sales Full Year],
    PARALLELPERIOD ( 'Date'[Date], -12, MONTH ),
    ALL ( 'Date' )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Get the correct result.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I attach my sample below for reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps,&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&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 07:53:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-achieve-a-full-year-last-year-measure/m-p/2482398#M68012</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-04-28T07:53:18Z</dc:date>
    </item>
  </channel>
</rss>

