<?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 calculate column wise Percentage Change for all month  ex - 20-7/20,7-5/7 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-column-wise-Percentage-Change-for-all-month-ex/m-p/4384573#M174036</link>
    <description>&lt;P&gt;&lt;FONT style="--darkreader-inline-color: var(--darkreader-text-000000, #e8e6e3);" color="#000000" data-darkreader-inline-color=""&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="854305" data-lia-user-login="Subham_Ranjan" class="lia-mention lia-mention-user"&gt;Subham_Ranjan&lt;/a&gt;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="--darkreader-inline-color: var(--darkreader-text-000000, #e8e6e3);" color="#000000" data-darkreader-inline-color=""&gt;To calculate the column-wise percentage change in a Power BI matrix, you need to compute the difference between the current and previous month's values and then divide by the previous month's value. Here’s how you can create a measure to achieve this:&lt;/FONT&gt;&lt;/P&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column_Wise_Percentage_Change = 
VAR _CurrentValue = SELECTEDVALUE(bull_users[Count_of_user_id])
VAR _PreviousValue = 
    CALCULATE(
        SELECTEDVALUE(bull_users[Count_of_user_id]), 
        bull_users[Month No] = MAX(bull_users[Month No]) - 1
    )

RETURN 
IF(
    NOT(ISBLANK(_PreviousValue)) &amp;amp;&amp;amp; _PreviousValue &amp;lt;&amp;gt; 0,
    (_CurrentValue - _PreviousValue) / _PreviousValue,
    BLANK()
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="--darkreader-inline-color: var(--darkreader-text-000000, #e8e6e3);" color="#000000" data-darkreader-inline-color=""&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 14:36:05 GMT</pubDate>
    <dc:creator>rohit1991</dc:creator>
    <dc:date>2025-01-28T14:36:05Z</dc:date>
    <item>
      <title>How to calculate column wise Percentage Change for all month  ex - 20-7/20,7-5/7</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-column-wise-Percentage-Change-for-all-month-ex/m-p/4384283#M174019</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Matrix&amp;nbsp;&lt;BR /&gt;Row = Signup_month&lt;BR /&gt;column&amp;nbsp; = Month No =&lt;/SPAN&gt; &lt;SPAN&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;bull_users&lt;/SPAN&gt;&lt;SPAN&gt;[signup_date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;bull_users&lt;/SPAN&gt;&lt;SPAN&gt;[Purchase_date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Month&lt;/SPAN&gt;&lt;SPAN&gt;)-0,1,2,3,4,5,6&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Values = Count_of_user_id&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 12:09:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-column-wise-Percentage-Change-for-all-month-ex/m-p/4384283#M174019</guid>
      <dc:creator>Subham_Ranjan</dc:creator>
      <dc:date>2025-01-28T12:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate column wise Percentage Change for all month  ex - 20-7/20,7-5/7</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-column-wise-Percentage-Change-for-all-month-ex/m-p/4384433#M174026</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="854305" data-lia-user-login="Subham_Ranjan" class="lia-mention lia-mention-user"&gt;Subham_Ranjan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a Measure for Percentage Change:&lt;/P&gt;
&lt;P&gt;Percentage Change = &lt;BR /&gt;VAR CurrentMonth = SELECTEDVALUE('Table'[Month No])&lt;BR /&gt;VAR PreviousMonth = CurrentMonth - 1&lt;BR /&gt;VAR CurrentValue = CALCULATE(SUM('Table'[Count_of_user_id]), 'Table'[Month No] = CurrentMonth)&lt;BR /&gt;VAR PreviousValue = CALCULATE(SUM('Table'[Count_of_user_id]), 'Table'[Month No] = PreviousMonth)&lt;BR /&gt;RETURN&lt;BR /&gt;IF(&lt;BR /&gt;ISBLANK(PreviousValue),&lt;BR /&gt;BLANK(),&lt;BR /&gt;DIVIDE(CurrentValue - PreviousValue, PreviousValue, 0)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drag the newly created measure Percentage Change to the Values area of the matrix.&lt;/P&gt;
&lt;P&gt;You can format the measure as a percentage by selecting the measure in the Fields pane, then going to the Modeling tab and selecting the percentage format.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 13:26:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-column-wise-Percentage-Change-for-all-month-ex/m-p/4384433#M174026</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-01-28T13:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate column wise Percentage Change for all month  ex - 20-7/20,7-5/7</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-column-wise-Percentage-Change-for-all-month-ex/m-p/4384573#M174036</link>
      <description>&lt;P&gt;&lt;FONT style="--darkreader-inline-color: var(--darkreader-text-000000, #e8e6e3);" color="#000000" data-darkreader-inline-color=""&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="854305" data-lia-user-login="Subham_Ranjan" class="lia-mention lia-mention-user"&gt;Subham_Ranjan&lt;/a&gt;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="--darkreader-inline-color: var(--darkreader-text-000000, #e8e6e3);" color="#000000" data-darkreader-inline-color=""&gt;To calculate the column-wise percentage change in a Power BI matrix, you need to compute the difference between the current and previous month's values and then divide by the previous month's value. Here’s how you can create a measure to achieve this:&lt;/FONT&gt;&lt;/P&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column_Wise_Percentage_Change = 
VAR _CurrentValue = SELECTEDVALUE(bull_users[Count_of_user_id])
VAR _PreviousValue = 
    CALCULATE(
        SELECTEDVALUE(bull_users[Count_of_user_id]), 
        bull_users[Month No] = MAX(bull_users[Month No]) - 1
    )

RETURN 
IF(
    NOT(ISBLANK(_PreviousValue)) &amp;amp;&amp;amp; _PreviousValue &amp;lt;&amp;gt; 0,
    (_CurrentValue - _PreviousValue) / _PreviousValue,
    BLANK()
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="--darkreader-inline-color: var(--darkreader-text-000000, #e8e6e3);" color="#000000" data-darkreader-inline-color=""&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 14:36:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-column-wise-Percentage-Change-for-all-month-ex/m-p/4384573#M174036</guid>
      <dc:creator>rohit1991</dc:creator>
      <dc:date>2025-01-28T14:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate column wise Percentage Change for all month  ex - 20-7/20,7-5/7</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-column-wise-Percentage-Change-for-all-month-ex/m-p/4385399#M174075</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;When i am calculating percentage change&amp;nbsp; of arpu it is not giving accurate result also i am using filter from filter pane where payment status = Success&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ARPU =&lt;/SPAN&gt; &lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;bull_users&lt;/SPAN&gt;&lt;SPAN&gt;[bull_course_orders.Amount]&lt;/SPAN&gt;&lt;SPAN&gt;)/&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;bull_users&lt;/SPAN&gt;&lt;SPAN&gt;[bull_course_orders.user_id]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;Percentage_Change = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; CurrentMonth = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('users'[Month No])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; Previous_Month = CurrentMonth - &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; CurrentValue = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;([ARPU], 'users'[Month No] = CurrentMonth)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; PreviousValue = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;([ARPU], 'users'[Month No] = Previous_Month)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(PreviousValue),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(CurrentValue - PreviousValue, PreviousValue)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Jan 2025 03:32:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-column-wise-Percentage-Change-for-all-month-ex/m-p/4385399#M174075</guid>
      <dc:creator>Subham_Ranjan</dc:creator>
      <dc:date>2025-01-29T03:32:09Z</dc:date>
    </item>
  </channel>
</rss>

