<?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 year over year Sales Calculation not working in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2617928#M76142</link>
    <description>&lt;P&gt;I have two tables. One Premium and One Dates. Here is the relationship: PaymentDate(Premium) and Date(Dates), it's a many to one relationship.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to calculate Year over Year Sales. Here is my formula so far,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Sales Last Year = CALCULATE(SUM(Premium[TotalCollected]), SAMEPERIODLASTYEAR(Dates[Date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The current result so far,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing here? It's throwing back same numbers as the current year. Any help is much appreciated!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jul 2022 15:36:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-04T15:36:24Z</dc:date>
    <item>
      <title>year over year Sales Calculation not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2617928#M76142</link>
      <description>&lt;P&gt;I have two tables. One Premium and One Dates. Here is the relationship: PaymentDate(Premium) and Date(Dates), it's a many to one relationship.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to calculate Year over Year Sales. Here is my formula so far,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Sales Last Year = CALCULATE(SUM(Premium[TotalCollected]), SAMEPERIODLASTYEAR(Dates[Date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The current result so far,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing here? It's throwing back same numbers as the current year. Any help is much appreciated!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 15:36:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2617928#M76142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-04T15:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: year over year Sales Calculation not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2618056#M76150</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please try, "assign your Dates Table as date table".&lt;/P&gt;
&lt;P&gt;Hover over the mouse on your Dates Table's name, and right click. And then you can find a function called "Make as date table".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-date-tables" target="_blank"&gt;Set and use date tables in Power BI Desktop - Power BI | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 17:14:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2618056#M76150</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-07-04T17:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: year over year Sales Calculation not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2618083#M76152</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I did do that. It is marked as date table with "date" field being the date column.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 17:29:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2618083#M76152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-04T17:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: year over year Sales Calculation not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2618102#M76155</link>
      <description>&lt;P&gt;May I ask what are your columns'&amp;nbsp; data type?&lt;/P&gt;
&lt;P&gt;If possible, please share your pbix file's link here, and then I can try to look into it to come up with a more accurate solution.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 17:42:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2618102#M76155</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-07-04T17:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: year over year Sales Calculation not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2620130#M76275</link>
      <description>&lt;P&gt;here is a link to the pbix file,&amp;nbsp;&lt;A href="https://www.dropbox.com/s/zego0j370awlxoo/YearOVerYearTest.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/zego0j370awlxoo/YearOVerYearTest.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've cleaned the data up so it has only what you need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 14:20:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2620130#M76275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-05T14:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: year over year Sales Calculation not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2620745#M76313</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your message and please check the attached file.&lt;/P&gt;
&lt;P&gt;I created a measure, instead of calculated column.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 19:30:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2620745#M76313</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-07-05T19:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: year over year Sales Calculation not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2620824#M76325</link>
      <description>&lt;P&gt;When I open up your file, it looks like its throwing the total collected numbers to future dates:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 20:34:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2620824#M76325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-05T20:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: year over year Sales Calculation not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2621200#M76355</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your feedback.&lt;/P&gt;
&lt;P&gt;Please kindly advise the below.&lt;/P&gt;
&lt;P&gt;- Is the number correct?&lt;/P&gt;
&lt;P&gt;- I simply used your calculatd column formula to create a measure. I did not change anything except your formula is for a calculated column and mine is for a measure. If your requirement is not to show the future dates information, please add some conditions into the measure. Please check the attached file that I amended the measure not to show the future date's information.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 03:34:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-over-year-Sales-Calculation-not-working/m-p/2621200#M76355</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-07-06T03:34:13Z</dc:date>
    </item>
  </channel>
</rss>

