<?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: How to get value from previous row in current calculated column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3160686#M113500</link>
    <description>&lt;P&gt;That did work fine. What if I want to expand the complexity by the following, knowing that B1 = 1,&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2023 11:45:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-29T11:45:28Z</dc:date>
    <item>
      <title>How to get value from previous row in current calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3160645#M113495</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to replicate the following calculation in DAX, where I want to get the value from the previous row in the current column (B).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 11:16:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3160645#M113495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-29T11:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get value from previous row in current calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3160661#M113498</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;If B is a calculated column then&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;B =
SUMX (
    FILTER ( 'Table', 'Table'[Index] &amp;lt;= EARLIER ( 'Table'[Index] ) ),
    'Table'[A]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 29 Mar 2023 11:31:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3160661#M113498</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-29T11:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get value from previous row in current calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3160686#M113500</link>
      <description>&lt;P&gt;That did work fine. What if I want to expand the complexity by the following, knowing that B1 = 1,&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 11:45:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3160686#M113500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-29T11:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get value from previous row in current calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3160720#M113502</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ya that is pretty complex. I'll have a look at it tomorrow.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 12:02:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3160720#M113502</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-29T12:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get value from previous row in current calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3162381#M113598</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file with the proposed solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;B = 
COALESCE (
    DIVIDE (
        1,
        PRODUCTX ( 
            FILTER ( 
                'Table',
                'Table'[Index] &amp;lt;= EARLIER ( 'Table'[Index] )
                    &amp;amp;&amp;amp; 'Table'[Index] &amp;gt; 1 
            ),
            ( 1 + 'Table'[A] ) ^ (1/16)
        )
    ),
    1
)&lt;/LI-CODE&gt;
&lt;P&gt;The numbers do not 100% match yours, but when I made the my own excel sample file, the numbers were 100% matching. Could it be a rounding error?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 04:16:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3162381#M113598</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-30T04:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get value from previous row in current calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3162696#M113625</link>
      <description>&lt;P&gt;Amazing, and thank you so much for solving my issue! &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 07:32:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3162696#M113625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-30T07:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get value from previous row in current calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3228742#M118384</link>
      <description>&lt;P&gt;I have another similar issue.&amp;nbsp;&lt;BR /&gt;Initial value in column C (C1) = 100&lt;BR /&gt;The following values in column C is:&amp;nbsp; C_i (C_i where i &amp;gt; 1) =&amp;nbsp; C_i-1 *(1+A_i)&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 12:27:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3228742#M118384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-10T12:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get value from previous row in current calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3228784#M118388</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Value = 
COALESCE (
    PRODUCTX (
        FILTER ( 
            Table2,
            Table2[Index] &amp;lt;= EARLIER ( Table2[Index] )
                &amp;amp;&amp;amp; Table2[Index] &amp;gt; 1 
        ),
        1 + Table2[A]
    ) * 100,
    100
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 May 2023 12:49:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-value-from-previous-row-in-current-calculated-column/m-p/3228784#M118388</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-10T12:49:18Z</dc:date>
    </item>
  </channel>
</rss>

