<?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 Difference Between Years only for items alredy purchased in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-Between-Years-only-for-items-alredy-purchased/m-p/2561182#M72864</link>
    <description>&lt;P&gt;hello,&lt;BR /&gt;&lt;BR /&gt;i have a table with all the purchasing order that look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;now i want to compare the difference beetween two years but only for the item that was alredy purchased a year before a given date&lt;BR /&gt;&lt;BR /&gt;is it possibile with dax or i have to work with the data structure?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2022 12:57:32 GMT</pubDate>
    <dc:creator>davidemeconi</dc:creator>
    <dc:date>2022-06-06T12:57:32Z</dc:date>
    <item>
      <title>Difference Between Years only for items alredy purchased</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-Between-Years-only-for-items-alredy-purchased/m-p/2561182#M72864</link>
      <description>&lt;P&gt;hello,&lt;BR /&gt;&lt;BR /&gt;i have a table with all the purchasing order that look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;now i want to compare the difference beetween two years but only for the item that was alredy purchased a year before a given date&lt;BR /&gt;&lt;BR /&gt;is it possibile with dax or i have to work with the data structure?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 12:57:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-Between-Years-only-for-items-alredy-purchased/m-p/2561182#M72864</guid>
      <dc:creator>davidemeconi</dc:creator>
      <dc:date>2022-06-06T12:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Difference Between Years only for items alredy purchased</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-Between-Years-only-for-items-alredy-purchased/m-p/2561393#M72879</link>
      <description>&lt;P&gt;You can create a measure like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales of prior year products =
var latestYear = MAX( 'Date'[Year])
var priorYearProducts = CALCULATETABLE( VALUES('Orders'[Code]), 'Date'[Year] = latestYear - 1)
return CALCULATE([Sales Amount], priorYearProducts)&lt;/LI-CODE&gt;&lt;P&gt;and you can build similar logic into comparison measures etc.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 14:27:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-Between-Years-only-for-items-alredy-purchased/m-p/2561393#M72879</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-06-06T14:27:31Z</dc:date>
    </item>
  </channel>
</rss>

