<?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 LY Vs Current in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Vs-Current/m-p/697891#M730</link>
    <description>&lt;P&gt;So i have data in one sheet from year 2009 to 2019(current) mind you its all in one excel spreadsheet, what i want to do is take all that infor and conpare each year to previous years in one table and the difference between them, and the percentage growth, how do i go about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using the measures as follows, but i think my data is not suitable for these measures as they come out as the total sum of ALL the years together:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; Total Sales(Placements) = Sum( sheet 1[fee])&lt;/P&gt;&lt;P&gt;&amp;gt; Total Sales LY = CALCULATE([Total sales],SAMEPERIODLASTYEAR(Deals[Start date].[Date]))&lt;/P&gt;&lt;P&gt;&amp;gt;Diff between LY and TY = [Total sales] - [Total Sales LY]&lt;/P&gt;&lt;P&gt;&amp;gt; % Profit = Divide ([Total sales], [total sales LY],0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end what i get is the Total sales from 2009 - 2019 (which i dont want, i want the total sum of each year)&lt;/P&gt;&lt;P&gt;and then the calculation of previous years comes out as the same as the total sales(which i actualy want to show the previous totals for each year, for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want 2010 to be compared to 2009 and then the difference between them and then the pencentage profit and etc for each year after.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2019 05:21:09 GMT</pubDate>
    <dc:creator>Andykins2000</dc:creator>
    <dc:date>2019-05-23T05:21:09Z</dc:date>
    <item>
      <title>LY Vs Current</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Vs-Current/m-p/697891#M730</link>
      <description>&lt;P&gt;So i have data in one sheet from year 2009 to 2019(current) mind you its all in one excel spreadsheet, what i want to do is take all that infor and conpare each year to previous years in one table and the difference between them, and the percentage growth, how do i go about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using the measures as follows, but i think my data is not suitable for these measures as they come out as the total sum of ALL the years together:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; Total Sales(Placements) = Sum( sheet 1[fee])&lt;/P&gt;&lt;P&gt;&amp;gt; Total Sales LY = CALCULATE([Total sales],SAMEPERIODLASTYEAR(Deals[Start date].[Date]))&lt;/P&gt;&lt;P&gt;&amp;gt;Diff between LY and TY = [Total sales] - [Total Sales LY]&lt;/P&gt;&lt;P&gt;&amp;gt; % Profit = Divide ([Total sales], [total sales LY],0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end what i get is the Total sales from 2009 - 2019 (which i dont want, i want the total sum of each year)&lt;/P&gt;&lt;P&gt;and then the calculation of previous years comes out as the same as the total sales(which i actualy want to show the previous totals for each year, for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want 2010 to be compared to 2009 and then the difference between them and then the pencentage profit and etc for each year after.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 05:21:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Vs-Current/m-p/697891#M730</guid>
      <dc:creator>Andykins2000</dc:creator>
      <dc:date>2019-05-23T05:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: LY Vs Current</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Vs-Current/m-p/698431#M741</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="138268" data-lia-user-login="Andykins2000" class="lia-mention lia-mention-user"&gt;Andykins2000&lt;/a&gt; as best practice you should add date dimension in your data model , set relationship it with deal table and from there this calculation will be super easy. Just change Deals.[Start Date] with date from date dimension table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are lot of blogs/posts on how to add date/calendar dimension in PowerBI.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 13:49:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LY-Vs-Current/m-p/698431#M741</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-05-23T13:49:02Z</dc:date>
    </item>
  </channel>
</rss>

