<?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: Need help to calculate from previous cell in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-from-previous-cell/m-p/3315629#M124052</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="537446" data-lia-user-login="Vaibhav3008" class="lia-mention lia-mention-user"&gt;Vaibhav3008&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try the following?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Net change = 
        IF(
            SELECTEDVALUE( 'Table'[Client] ) =
            CALCULATE(
                MIN( 'Table'[Client] ),
                OFFSET(
                    -1,
                    ORDERBY( 'Table'[Client], ASC, 'Table'[Period], ASC )
                )
            ),
            CALCULATE(
                MIN( 'Table'[Hours] ) -
                CALCULATE(
                    MIN( 'Table'[Hours] ),
                    OFFSET(
                        -1,
                        ORDERBY('Table'[Client], ASC, 'Table'[Period], ASC)
                    )
                )
            )
        )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;% Growth = 
    DIVIDE(
        [Net change],
        CALCULATE(
            MIN( 'Table'[Hours] ),
            OFFSET(
                -1,
                ORDERBY( 'Table'[Client], ASC, 'Table'[Period], ASC )
            )
        )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If I answered your question, please mark my post as a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2023 07:38:11 GMT</pubDate>
    <dc:creator>Alf94</dc:creator>
    <dc:date>2023-07-05T07:38:11Z</dc:date>
    <item>
      <title>Need help to calculate from previous cell</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-from-previous-cell/m-p/3315421#M124041</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have Client, Period and Hours column. Need to calculate Net change and %Growth columns in power BI&lt;/P&gt;&lt;P&gt;Please help in achieving this.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 05:42:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-from-previous-cell/m-p/3315421#M124041</guid>
      <dc:creator>Vaibhav3008</dc:creator>
      <dc:date>2023-07-05T05:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to calculate from previous cell</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-from-previous-cell/m-p/3315629#M124052</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="537446" data-lia-user-login="Vaibhav3008" class="lia-mention lia-mention-user"&gt;Vaibhav3008&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try the following?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Net change = 
        IF(
            SELECTEDVALUE( 'Table'[Client] ) =
            CALCULATE(
                MIN( 'Table'[Client] ),
                OFFSET(
                    -1,
                    ORDERBY( 'Table'[Client], ASC, 'Table'[Period], ASC )
                )
            ),
            CALCULATE(
                MIN( 'Table'[Hours] ) -
                CALCULATE(
                    MIN( 'Table'[Hours] ),
                    OFFSET(
                        -1,
                        ORDERBY('Table'[Client], ASC, 'Table'[Period], ASC)
                    )
                )
            )
        )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;% Growth = 
    DIVIDE(
        [Net change],
        CALCULATE(
            MIN( 'Table'[Hours] ),
            OFFSET(
                -1,
                ORDERBY( 'Table'[Client], ASC, 'Table'[Period], ASC )
            )
        )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If I answered your question, please mark my post as a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 07:38:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-from-previous-cell/m-p/3315629#M124052</guid>
      <dc:creator>Alf94</dc:creator>
      <dc:date>2023-07-05T07:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to calculate from previous cell</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-from-previous-cell/m-p/3315731#M124055</link>
      <description>&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;I applied it to my table and it says : Parameter is not the correct type&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Can you please help resolve it&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 08:24:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-from-previous-cell/m-p/3315731#M124055</guid>
      <dc:creator>Vaibhav3008</dc:creator>
      <dc:date>2023-07-05T08:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to calculate from previous cell</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-from-previous-cell/m-p/3316222#M124087</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="537446" data-lia-user-login="Vaibhav3008" class="lia-mention lia-mention-user"&gt;Vaibhav3008&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is ok. Just validate your measure and put it in a visual, it should work.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 12:38:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-from-previous-cell/m-p/3316222#M124087</guid>
      <dc:creator>Alf94</dc:creator>
      <dc:date>2023-07-05T12:38:52Z</dc:date>
    </item>
  </channel>
</rss>

