<?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 Divide first column value to next column second row value in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Divide-first-column-value-to-next-column-second-row-value/m-p/3228486#M42602</link>
    <description>&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the following DAX ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Divide first column value to next column second row value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;current dax i am using&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT color="#993300"&gt;&lt;SPAN&gt;Receivables Balance -23M % = &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Receivables Balance -23M]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Receivables Balance -24M]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is not producing the required result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hb_0-1683711109391.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/912758i23876B82D9FBC897/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hb_0-1683711109391.png" alt="hb_0-1683711109391.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help highly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 09:38:10 GMT</pubDate>
    <dc:creator>hb</dc:creator>
    <dc:date>2023-05-10T09:38:10Z</dc:date>
    <item>
      <title>Divide first column value to next column second row value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Divide-first-column-value-to-next-column-second-row-value/m-p/3228486#M42602</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the following DAX ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Divide first column value to next column second row value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;current dax i am using&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT color="#993300"&gt;&lt;SPAN&gt;Receivables Balance -23M % = &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Receivables Balance -23M]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Receivables Balance -24M]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is not producing the required result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hb_0-1683711109391.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/912758i23876B82D9FBC897/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hb_0-1683711109391.png" alt="hb_0-1683711109391.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help highly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 09:38:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Divide-first-column-value-to-next-column-second-row-value/m-p/3228486#M42602</guid>
      <dc:creator>hb</dc:creator>
      <dc:date>2023-05-10T09:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Divide first column value to next column second row value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Divide-first-column-value-to-next-column-second-row-value/m-p/3232054#M42642</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/433593"&gt;@hb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think there should be a date column or an index column in your data model to determine the order of the values.&lt;/P&gt;
&lt;P&gt;If there isn't, I suggest you to &lt;A href="https://learn.microsoft.com/en-us/power-query/add-index-column" target="_self"&gt;add an index&lt;/A&gt; in Power Query Editor.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Percentage = 
VAR _PREVIOUS23 = CALCULATE(SUM('Table'[Receivables Balance -23M]),FILTER(ALL('Table'),'Table'[Index] = EARLIER('Table'[Index]) - 1))
RETURN
DIVIDE(_PREVIOUS23,[Receivables Balance -24M])&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vrzhoumsft_0-1683861314385.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/913811iFA00BBB263315E4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vrzhoumsft_0-1683861314385.png" alt="vrzhoumsft_0-1683861314385.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 03:15:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Divide-first-column-value-to-next-column-second-row-value/m-p/3232054#M42642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-12T03:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Divide first column value to next column second row value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Divide-first-column-value-to-next-column-second-row-value/m-p/3233658#M42651</link>
      <description>&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;actyually&amp;nbsp;these both are measures.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Receivables Balance -23M]&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;[Receivables Balance -24M]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Determine from the column [Receiable Balance] as below DAX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Receivables Balance -23M] = CALCULATE ([Receivables Balance], DATEADD('Date'[Date], -23, MONTH))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Receivables Balance -24M] = CALCULATE ([Receivables Balance], DATEADD('Date'[Date], -24, MONTH))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 06:56:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Divide-first-column-value-to-next-column-second-row-value/m-p/3233658#M42651</guid>
      <dc:creator>hb</dc:creator>
      <dc:date>2023-05-13T06:56:17Z</dc:date>
    </item>
  </channel>
</rss>

