<?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: DAX - EARLIER - % change one cell down in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EARLIER-change-one-cell-down/m-p/3085660#M107829</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried, and it comes close now, but thee values do still not come out right. Since the signs were negative, I converted to positive and vice versa via 0- in front of the equation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2023 20:07:55 GMT</pubDate>
    <dc:creator>SuperSusa</dc:creator>
    <dc:date>2023-02-17T20:07:55Z</dc:date>
    <item>
      <title>DAX - EARLIER - % change one cell down</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EARLIER-change-one-cell-down/m-p/3085168#M107772</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to PowerBi and this is my first time posting here. What a fantastic forum! Thank you all for your time and sharing your knowledge, you really help people out there a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to generate % change from the actual month to the previous months and have therefore created two&amp;nbsp; index columns with Power Query and then used the EARLIER command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I found two wys of calculating % change but the problem is the same, the results should be down by one line.&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is the second formula:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In the forum it seems like there are possibilities to copy the table and then merge with PowerQuery, but in this case it is the position of the DAX output that is causing me trouble.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions are very much appreciated, thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 14:23:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EARLIER-change-one-cell-down/m-p/3085168#M107772</guid>
      <dc:creator>SuperSusa</dc:creator>
      <dc:date>2023-02-17T14:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - EARLIER - % change one cell down</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EARLIER-change-one-cell-down/m-p/3085302#M107791</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="512733" data-lia-user-login="SuperSusa" class="lia-mention lia-mention-user"&gt;SuperSusa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Just interchange between Index and Index.1 like&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;FILTER ( 'Table', 'Table'[Index.1] = EARLIER ( 'Table'[Index] ) )&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;this will retrieve the &lt;U&gt;&lt;STRONG&gt;previous&lt;/STRONG&gt; &lt;/U&gt;row. Then you can easily calculate the difference then the percentage.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 15:30:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EARLIER-change-one-cell-down/m-p/3085302#M107791</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-17T15:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - EARLIER - % change one cell down</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EARLIER-change-one-cell-down/m-p/3085660#M107829</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried, and it comes close now, but thee values do still not come out right. Since the signs were negative, I converted to positive and vice versa via 0- in front of the equation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 20:07:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EARLIER-change-one-cell-down/m-p/3085660#M107829</guid>
      <dc:creator>SuperSusa</dc:creator>
      <dc:date>2023-02-17T20:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - EARLIER - % change one cell down</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EARLIER-change-one-cell-down/m-p/3085834#M107849</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="512733" data-lia-user-login="SuperSusa" class="lia-mention lia-mention-user"&gt;SuperSusa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should be&lt;/P&gt;
&lt;P&gt;( CurrentRowPrice - PreviousRowPrice ) /&amp;nbsp;&lt;SPAN&gt;PreviousRowPrice&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 00:49:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EARLIER-change-one-cell-down/m-p/3085834#M107849</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-18T00:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - EARLIER - % change one cell down</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EARLIER-change-one-cell-down/m-p/3085938#M107866</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="512733" data-lia-user-login="SuperSusa" class="lia-mention lia-mention-user"&gt;SuperSusa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Like this&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;% Change =
VAR CurrentPrice = 'PQ_Bitumen'[Price]
VAR PreviousPrice =
    MAXX (
        FILTER ( 'PQ_Bitumen', 'PQ_Bitumen'[Index.1] = EARLIER ( 'PQ_Bitumen'[Index] ) ),
        'PQ_Bitumen'[Price]
    )
RETURN
    DIVIDE ( CurrentPrice - PreviousPrice, PreviousPrice )&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 18 Feb 2023 05:05:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EARLIER-change-one-cell-down/m-p/3085938#M107866</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-18T05:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - EARLIER - % change one cell down</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EARLIER-change-one-cell-down/m-p/3085949#M107868</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="512733" data-lia-user-login="SuperSusa" class="lia-mention lia-mention-user"&gt;SuperSusa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;DIV&gt;％Change =&lt;/DIV&gt;&lt;DIV&gt;VAR _pricepre =&lt;/DIV&gt;&lt;DIV&gt;MINX(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; FILTER(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TableName,&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TableName[Dato] = EDATE(EARLIER(TableName[Dato]), -1)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;),&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; [Price]&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;RETURN&lt;/DIV&gt;&lt;DIV&gt;DIVIDE([Price]-_pricepre,&amp;nbsp;&lt;SPAN&gt;_pricepre&lt;/SPAN&gt;)&lt;/DIV&gt;</description>
      <pubDate>Sat, 18 Feb 2023 06:03:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EARLIER-change-one-cell-down/m-p/3085949#M107868</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-18T06:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: DAX - EARLIER - % change one cell down</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EARLIER-change-one-cell-down/m-p/3087565#M108009</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;this worked perfectly, thank you so much , you saved my day or should I better say my whole week!:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 09:36:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EARLIER-change-one-cell-down/m-p/3087565#M108009</guid>
      <dc:creator>SuperSusa</dc:creator>
      <dc:date>2023-02-20T09:36:08Z</dc:date>
    </item>
  </channel>
</rss>

