<?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: % price change since last sale in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/price-change-since-last-sale/m-p/827453#M5852</link>
    <description>&lt;P&gt;Something is wrong :(&lt;img /&gt;&lt;/P&gt;&lt;P&gt;To be clear, under indexes there are invoice numbers.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2019 13:05:42 GMT</pubDate>
    <dc:creator>pawelj795</dc:creator>
    <dc:date>2019-10-24T13:05:42Z</dc:date>
    <item>
      <title>% price change since last sale</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/price-change-since-last-sale/m-p/827226#M5838</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;I'm currently calculating % price change since last sale (sorted by months).&lt;BR /&gt;For example, I sold Product &lt;EM&gt;A&lt;/EM&gt; for &lt;STRONG&gt;100$&lt;/STRONG&gt; on &lt;U&gt;5.01.2019&lt;/U&gt; and the next sale of the exactly same product were on &lt;U&gt;10.03.2019&lt;/U&gt; for&lt;STRONG&gt; 80$&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Thus, I need table/chart, which will be showing that price change -&amp;gt; in this case is &lt;FONT color="#FF0000"&gt;-20%&amp;nbsp;&lt;FONT color="#000000"&gt;on &lt;STRONG&gt;March 2019.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get things more complicated, I have 3 main product groups with a few unique index in every group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I share below some of pbix sample.&lt;BR /&gt;&lt;A href="https://drive.google.com/open?id=1mKvql1qUVHh69lhoeQSdHakKKJ40h7_9" target="_blank"&gt;https://drive.google.com/open?id=1mKvql1qUVHh69lhoeQSdHakKKJ40h7_9&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help! ;)&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 10:57:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/price-change-since-last-sale/m-p/827226#M5838</guid>
      <dc:creator>pawelj795</dc:creator>
      <dc:date>2019-10-24T10:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: % price change since last sale</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/price-change-since-last-sale/m-p/827425#M5847</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179425" data-lia-user-login="pawelj795" class="lia-mention lia-mention-user"&gt;pawelj795&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you please try this&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR PrevDate = CALCULATE(MAX(Test[Date]),FILTER(ALL(Test[Date]),Test[Date]&amp;lt;MAX(Test[Date])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR PrevPrice = CALCULATE(SUM(Test[Price]),Test[Date]=PrevDate)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Return DIVIDE(SUM(Test[Price])-PrevPrice,PrevPrice,0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:30:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/price-change-since-last-sale/m-p/827425#M5847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-24T12:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: % price change since last sale</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/price-change-since-last-sale/m-p/827426#M5848</link>
      <description>&lt;P&gt;You can refer this link&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-calculate-percentage-change-between-two-dates/td-p/494008" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/How-to-calculate-percentage-change-between-two-dates/td-p/494008&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:31:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/price-change-since-last-sale/m-p/827426#M5848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-24T12:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: % price change since last sale</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/price-change-since-last-sale/m-p/827432#M5849</link>
      <description>&lt;P&gt;I think I should use AVERAGE instead of SUM because I could have a few sales for different prices in same month.&lt;BR /&gt;What do you think?&lt;BR /&gt;&lt;BR /&gt;Another important thing, how to hide values in first month?&lt;BR /&gt;I want to show prices only for current year.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:44:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/price-change-since-last-sale/m-p/827432#M5849</guid>
      <dc:creator>pawelj795</dc:creator>
      <dc:date>2019-10-24T12:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: % price change since last sale</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/price-change-since-last-sale/m-p/827439#M5851</link>
      <description>&lt;P&gt;This code will compare the sales of current date with last date with sale. So you don't need to worry about that.&amp;nbsp;&amp;nbsp;Even if you have sales on multiple dates of a month or everyday this code will work fine.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:48:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/price-change-since-last-sale/m-p/827439#M5851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-24T12:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: % price change since last sale</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/price-change-since-last-sale/m-p/827453#M5852</link>
      <description>&lt;P&gt;Something is wrong :(&lt;img /&gt;&lt;/P&gt;&lt;P&gt;To be clear, under indexes there are invoice numbers.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 13:05:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/price-change-since-last-sale/m-p/827453#M5852</guid>
      <dc:creator>pawelj795</dc:creator>
      <dc:date>2019-10-24T13:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: % price change since last sale</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/price-change-since-last-sale/m-p/827560#M5855</link>
      <description>&lt;P&gt;I tried slightly modified solution which you mention but still it doesn't working.&lt;BR /&gt;&lt;BR /&gt;What I am doing wrong?&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 14:23:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/price-change-since-last-sale/m-p/827560#M5855</guid>
      <dc:creator>pawelj795</dc:creator>
      <dc:date>2019-10-24T14:23:16Z</dc:date>
    </item>
  </channel>
</rss>

