<?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: LY Sales Measure is displaying current year sales in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Sales-Measure-is-displaying-current-year-sales/m-p/2823439#M89688</link>
    <description>&lt;P&gt;WOW thank you, I feel dumb.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2022 16:19:55 GMT</pubDate>
    <dc:creator>james_pease</dc:creator>
    <dc:date>2022-10-06T16:19:55Z</dc:date>
    <item>
      <title>LY Sales Measure is displaying current year sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Sales-Measure-is-displaying-current-year-sales/m-p/2823408#M89682</link>
      <description>&lt;P&gt;Hello everyone, I created a measure for last year sales and plan to do the same for 2 years back. I created the following measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;LY Sales = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Cotti_Coupon[Sales]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;SAMEPERIODLASTYEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Date_Value[DateValue]&lt;/SPAN&gt;&lt;SPAN&gt;.&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;Does anyone know why the LY Sales are displaying the values for the the current year instead of LY?&lt;BR /&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;I am expecting to see the following values in the LY column&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;Here are my relationships. As you can see, store #s are connected to a master store list, and dates are connected to a date table&lt;/P&gt;&lt;img /&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Oct 2022 16:08:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Sales-Measure-is-displaying-current-year-sales/m-p/2823408#M89682</guid>
      <dc:creator>james_pease</dc:creator>
      <dc:date>2022-10-06T16:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: LY Sales Measure is displaying current year sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Sales-Measure-is-displaying-current-year-sales/m-p/2823417#M89683</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you have a date table, you should use the date of your date table and not the one from the fact table.&lt;/P&gt;
&lt;P&gt;One more thing do not forget to mark your date table as a date table, and to link (seems done on your screencopy).&lt;/P&gt;
&lt;P&gt;But the stange thing is that you might have forgotten something, because if your date is related to your date table or coming from the date table, you should not see the date hierarchy (Date.Year or Date.Month...).&lt;/P&gt;
&lt;P&gt;So that's why I'm guessing your table is not marked or linked properly &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Let us know&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 16:13:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Sales-Measure-is-displaying-current-year-sales/m-p/2823417#M89683</guid>
      <dc:creator>AilleryO</dc:creator>
      <dc:date>2022-10-06T16:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: LY Sales Measure is displaying current year sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Sales-Measure-is-displaying-current-year-sales/m-p/2823424#M89685</link>
      <description>&lt;P&gt;Sorry, Yes I selected the Date column from the Coupon table, but even when I select the date from the date table, the values for LY = current sales&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the relationships&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 16:17:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Sales-Measure-is-displaying-current-year-sales/m-p/2823424#M89685</guid>
      <dc:creator>james_pease</dc:creator>
      <dc:date>2022-10-06T16:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: LY Sales Measure is displaying current year sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Sales-Measure-is-displaying-current-year-sales/m-p/2823430#M89687</link>
      <description>&lt;P&gt;And your date table is &lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-date-tables" target="_blank" rel="noopener"&gt;marked as such&lt;/A&gt; ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 16:17:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Sales-Measure-is-displaying-current-year-sales/m-p/2823430#M89687</guid>
      <dc:creator>AilleryO</dc:creator>
      <dc:date>2022-10-06T16:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: LY Sales Measure is displaying current year sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Sales-Measure-is-displaying-current-year-sales/m-p/2823439#M89688</link>
      <description>&lt;P&gt;WOW thank you, I feel dumb.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 16:19:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Sales-Measure-is-displaying-current-year-sales/m-p/2823439#M89688</guid>
      <dc:creator>james_pease</dc:creator>
      <dc:date>2022-10-06T16:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: LY Sales Measure is displaying current year sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Sales-Measure-is-displaying-current-year-sales/m-p/2823446#M89689</link>
      <description>&lt;P&gt;No worries it happens to all of us...&lt;/P&gt;
&lt;P&gt;and dumbness is well shared amongst all of us, with an equal distribution &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 16:22:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Sales-Measure-is-displaying-current-year-sales/m-p/2823446#M89689</guid>
      <dc:creator>AilleryO</dc:creator>
      <dc:date>2022-10-06T16:22:36Z</dc:date>
    </item>
  </channel>
</rss>

