<?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: Last year calculations in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112274#M48320</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Your formula seems okay, make sure in your date slicer you have selected&amp;nbsp;&lt;SPAN&gt;1st jan21 to 3rd oct 2021&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE ( SUM ( sales[column] ), SAMEPERIODLASTYEAR ( date[date] ) )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Oct 2021 07:27:52 GMT</pubDate>
    <dc:creator>Fowmy</dc:creator>
    <dc:date>2021-10-03T07:27:52Z</dc:date>
    <item>
      <title>Last year calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112259#M48318</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am stucking on last year same period calculations.&lt;/P&gt;&lt;P&gt;like we are in 2021 so this year calculation period will be-&amp;nbsp; 1st jan21 to 3rd oct 2021&lt;/P&gt;&lt;P&gt;and Last year same period will be 1st Jan20-3rd Oct2020- how can I get this result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried- calculate(sum(sales),sameperiodlastyear(date[date])- showing incorrect result.&lt;/P&gt;&lt;P&gt;Please help me on this.&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="281080" data-lia-user-login="Tanushree_Kapse" class="lia-mention lia-mention-user"&gt;Tanushree_Kapse&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 06:06:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112259#M48318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-03T06:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Last year calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112260#M48319</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try thi measure:&lt;BR /&gt;&lt;SPAN&gt;Lastperiod=&amp;nbsp; Calculate(Totalytd(Sum(sales),date[date]) ,Parallelperiod(date[date], -12, Month))&lt;BR /&gt;&lt;BR /&gt;Mark this as a solution if I answered your question. Kudos are always appreciated.&lt;BR /&gt;&lt;/SPAN&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 06:11:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112260#M48319</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-10-03T06:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Last year calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112274#M48320</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Your formula seems okay, make sure in your date slicer you have selected&amp;nbsp;&lt;SPAN&gt;1st jan21 to 3rd oct 2021&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE ( SUM ( sales[column] ), SAMEPERIODLASTYEAR ( date[date] ) )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 07:27:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112274#M48320</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-10-03T07:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Last year calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112407#M48339</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for quick reply&lt;/P&gt;&lt;P&gt;But This formula is not showing correct result as trying to match manual.&lt;/P&gt;&lt;P&gt;Request you can you please check once nd reply please&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 11:51:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112407#M48339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-03T11:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Last year calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112412#M48341</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for quick reply.&lt;/P&gt;&lt;P&gt;Actually I dnot want to select any date slice point. have to show in formala.&lt;/P&gt;&lt;P&gt;Request you to please reshare formula please.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 11:52:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112412#M48341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-03T11:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Last year calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112417#M48343</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;Measure=&lt;BR /&gt;Var _T = Today()&lt;BR /&gt;Var _LYS = date(year(_T)-1,01,01)&lt;BR /&gt;Var _LYF =&amp;nbsp;date(year(_T)-1,month(_T)+1,01)-1&lt;BR /&gt;Return&lt;BR /&gt;calculate(&lt;SPAN&gt;sum(sales),filter(table,date[date]&amp;gt;=_LYS &amp;amp;&amp;amp;date[date]&amp;lt;=_LYF ))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 11:57:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112417#M48343</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-10-03T11:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Last year calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112423#M48346</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Can you try this:&lt;BR /&gt;&lt;BR /&gt;YTDSales= TOTALYTD(SUM(Sales), DATESYTD(date[date], TODAY()))&lt;BR /&gt;PYTDSles= CALCULATE(YTDSales,&amp;nbsp;DATESYTD(date[date], TODAY()-1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 12:06:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112423#M48346</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-10-03T12:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Last year calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112433#M48347</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is giving jan20-Oct20 data but I am trying to find out 1st Jan20-3rd Oct 20.&lt;/P&gt;&lt;P&gt;only we have to rectrict the date range.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 12:24:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112433#M48347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-03T12:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Last year calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112434#M48348</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Measure=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Var _T = Today()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Var _LYS = date(year(_T)-1,01,01)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Var _LYF =&amp;nbsp;date(year(_T)-1,month(_T),day(_T))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;calculate(&lt;/SPAN&gt;&lt;SPAN&gt;sum(sales),filter(table,date[date]&amp;gt;=_LYS &amp;amp;&amp;amp;date[date]&amp;lt;=_LYF ))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 12:31:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112434#M48348</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-10-03T12:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Last year calculations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112448#M48349</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. Now got my anser what I was looking for.&lt;/P&gt;&lt;P&gt;Great Salute :).&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 12:54:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-year-calculations/m-p/2112448#M48349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-03T12:54:41Z</dc:date>
    </item>
  </channel>
</rss>

