<?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 Unable to refer previous row value of the current calculated column as we do in excel. Plz help in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-refer-previous-row-value-of-the-current-calculated/m-p/3774330#M147500</link>
    <description>&lt;P&gt;Unable to refer previous row value of the current calculated column as we do in excel. sample of the excel working attached. please guide&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2024 09:02:29 GMT</pubDate>
    <dc:creator>Rupak_bi</dc:creator>
    <dc:date>2024-03-19T09:02:29Z</dc:date>
    <item>
      <title>Unable to refer previous row value of the current calculated column as we do in excel. Plz help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-refer-previous-row-value-of-the-current-calculated/m-p/3774330#M147500</link>
      <description>&lt;P&gt;Unable to refer previous row value of the current calculated column as we do in excel. sample of the excel working attached. please guide&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 09:02:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-refer-previous-row-value-of-the-current-calculated/m-p/3774330#M147500</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-03-19T09:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to refer previous row value of the current calculated column as we do in excel. Plz help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-refer-previous-row-value-of-the-current-calculated/m-p/3777556#M147650</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583487" data-lia-user-login="Rupak_bi" class="lia-mention lia-mention-user"&gt;Rupak_bi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This relates to the issue of circular dependencies encountered in creating calculated columns in powerbi. You may refer to the following blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/Circular-Dependency-between-Calculated-Columns-in-a-Table-in-DAX/ba-p/1877267" target="_blank"&gt;Circular Dependency between Calculated Columns in ... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/Realize-circular-dependency-columns-using-M-function/ba-p/3723020" target="_blank"&gt;Realize circular dependency columns using M functi... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 07:53:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-refer-previous-row-value-of-the-current-calculated/m-p/3777556#M147650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-20T07:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to refer previous row value of the current calculated column as we do in excel. Plz help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-refer-previous-row-value-of-the-current-calculated/m-p/3791460#M148146</link>
      <description>&lt;P&gt;hi Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply. I have gone thorugh the articles but still unable to figureout the way to resolve it in dax. the source of the data is a calculated table and so cannot use query. please help if you have any idea to get those results.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 12:08:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-refer-previous-row-value-of-the-current-calculated/m-p/3791460#M148146</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-03-26T12:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to refer previous row value of the current calculated column as we do in excel. Plz help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-refer-previous-row-value-of-the-current-calculated/m-p/3795648#M148348</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583487" data-lia-user-login="Rupak_bi" class="lia-mention lia-mention-user"&gt;Rupak_bi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try formula like below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;first_ =
IF ( 'Table'[Date] = MINX ( ALL ( 'Table' ), [Date] ), 0, BLANK () )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Column = 
VAR cur_date = 'Table'[Date]
VAR min_date =
    MINX ( ALL ( 'Table' ), 'Table'[Date] )
VAR first_value =
    MAXX ( FILTER ( ALL ( 'Table' ), 'Table'[Date] = min_date ), [first_] )
VAR cur_stock =
    CALCULATE (
        MAX ( 'Table'[Stock] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Date] &amp;lt;= cur_date )
    )
VAR next_ =
    CALCULATE (
        SUM ( 'Table'[Maximum  production] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Date] &amp;lt;= cur_date )
    ) + first_value
VAR result_ =
    IF (
        NOT ISBLANK ( 'Table'[first_] ),
        [first_],
        IF ( next_ &amp;lt; cur_stock, next_, cur_stock )
    )
RETURN
    result_
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 05:29:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unable-to-refer-previous-row-value-of-the-current-calculated/m-p/3795648#M148348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-28T05:29:56Z</dc:date>
    </item>
  </channel>
</rss>

