<?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: DAX Last Year Sales in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/DAX-Last-Year-Sales/m-p/124341#M4289</link>
    <description>&lt;P&gt;Is your date column continuous? If you're using a seperate date table, did you create the relationship using 2 fields with a Date data type?&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 13:16:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-08T13:16:38Z</dc:date>
    <item>
      <title>DAX Last Year Sales</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-Last-Year-Sales/m-p/49610#M1528</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create LY Sales calculation, but somehow there's something wrong with the result.&lt;/P&gt;&lt;P&gt;The total of LY Sales is right, but I don't have any idea why LY sales for each year is not showing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 311px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/9010i0F032E7FCB689333/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;Here is my formula&lt;/P&gt;&lt;PRE&gt;LY Sales = CALCULATE([Total Sales], DATEADD(Orders[Order Date],-1,YEAR))&lt;/PRE&gt;&lt;P&gt;Does anybody know why? &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Priscilla&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 03:33:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-Last-Year-Sales/m-p/49610#M1528</guid>
      <dc:creator>minimynt</dc:creator>
      <dc:date>2016-07-13T03:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Last Year Sales</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-Last-Year-Sales/m-p/50070#M1540</link>
      <description>&lt;P&gt;Hello, try this instead: LY Sales = CALCULATE([Total Sales], SAMEPERIODLASTYEAR('Orders'[Order Date]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have a dedicated date table, you'll want to use the date column from there instead of Order Date&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 13:34:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-Last-Year-Sales/m-p/50070#M1540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-14T13:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Last Year Sales</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-Last-Year-Sales/m-p/51046#M1563</link>
      <description>&lt;P&gt;@Anonymous﻿&lt;/a&gt;&amp;nbsp;Hi, I've also tried with SAMEPERIODLASTYEAR but the result is the same. However, I just figured out that only continuous date is&amp;nbsp;valid for this case and my OrderDate isn't continuous so that's why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks anyway! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 02:32:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-Last-Year-Sales/m-p/51046#M1563</guid>
      <dc:creator>minimynt</dc:creator>
      <dc:date>2016-07-19T02:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Last Year Sales</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-Last-Year-Sales/m-p/124080#M4283</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;first i have filtered year, then inserted region and sales, when i try to use the above to calculate last year sales, it gives me blank.&amp;nbsp; is it because i have already filtered the year?&amp;nbsp; how can i still show last year sales against this year sales?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 04:54:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-Last-Year-Sales/m-p/124080#M4283</guid>
      <dc:creator>sure19</dc:creator>
      <dc:date>2017-02-08T04:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Last Year Sales</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-Last-Year-Sales/m-p/124341#M4289</link>
      <description>&lt;P&gt;Is your date column continuous? If you're using a seperate date table, did you create the relationship using 2 fields with a Date data type?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 13:16:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-Last-Year-Sales/m-p/124341#M4289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-08T13:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Last Year Sales</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-Last-Year-Sales/m-p/365843#M10897</link>
      <description>&lt;P&gt;Hi Suresh;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you solved your problem?, i have same issue about that, the formula didnt worked when i filtered by Year;&lt;/P&gt;&lt;P&gt;i have single fact table with sales measure,&amp;nbsp;person dimension, Year, Month, Date(dateSQL) Dimension;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;warm regards;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Opik&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 07:26:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-Last-Year-Sales/m-p/365843#M10897</guid>
      <dc:creator>vicks</dc:creator>
      <dc:date>2018-02-27T07:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Last Year Sales</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/DAX-Last-Year-Sales/m-p/2284326#M33887</link>
      <description>&lt;P&gt;Hi Guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know it's quite irritating to get the prior year meaures. I tried looking everywhere left with no choice than to try all by myself. Please find the solution below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LY Sales = CALCULATE([Total Sales],Calender[Year] = YEAR(TODAY()) - 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;Total Sales = Your measure&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Calender = Your date table&lt;/DIV&gt;&lt;DIV&gt;I am just subtracting 1 from the current years number in this expression&amp;nbsp;&lt;SPAN&gt;YEAR(TODAY()) - 1).&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please accept it as a solution if it resolved your issue &lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Jan 2022 19:28:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/DAX-Last-Year-Sales/m-p/2284326#M33887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-14T19:28:17Z</dc:date>
    </item>
  </channel>
</rss>

