<?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: Calculate average of percentage price changes instead of change of the average price in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-of-percentage-price-changes-instead-of-change/m-p/4588413#M175779</link>
    <description>&lt;P&gt;Hey Jing, thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;I'm almost there - as you can see in my screenshot, [PoP %-∆] contains Blank rows, which should not be counted into the average calculation (but 0%, do). Could you adjust the formula so that it counts only the ISBNs where&amp;nbsp;[PoP %-∆] is not blank?&lt;BR /&gt;&lt;BR /&gt;Thank you so much!&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 16:41:52 GMT</pubDate>
    <dc:creator>00Kevin00</dc:creator>
    <dc:date>2025-02-27T16:41:52Z</dc:date>
    <item>
      <title>Calculate average of percentage price changes instead of change of the average price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-of-percentage-price-changes-instead-of-change/m-p/4575572#M175662</link>
      <description>&lt;P&gt;Hey community,&lt;BR /&gt;&lt;BR /&gt;I have the following problem:&lt;BR /&gt;&lt;BR /&gt;For a list of products (here ISBN) I have two measures which give me the MIN and MAX Prices for a selected time period.&lt;BR /&gt;Based on these measures, I calculate the the Period-over-Period percentage change via the following DAX Measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PoP %-∆ = 
VAR Part1 = DIVIDE([Price for MAX_Date],[Price for MIN_Date])

RETURN
IF(Part1=BLANK(),BLANK(),Part1-1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;However, for the total, I don't need the change of the average price, but the average of the percentage price changes.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could someone help me with that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 15:37:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-of-percentage-price-changes-instead-of-change/m-p/4575572#M175662</guid>
      <dc:creator>00Kevin00</dc:creator>
      <dc:date>2025-02-25T15:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average of percentage price changes instead of change of the average price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-of-percentage-price-changes-instead-of-change/m-p/4576469#M175665</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="766241" data-lia-user-login="00Kevin00" class="lia-mention lia-mention-user"&gt;00Kevin00&lt;/a&gt;&amp;nbsp;First, please vote for this idea: &lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also: &lt;A href="https://youtu.be/uXRriTN0cfY" target="_blank"&gt;https://youtu.be/uXRriTN0cfY&lt;/A&gt;&lt;BR /&gt;And: &lt;A href="https://youtu.be/n4TYhF2ARe8" target="_blank"&gt;https://youtu.be/n4TYhF2ARe8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 16:15:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-of-percentage-price-changes-instead-of-change/m-p/4576469#M175665</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2025-02-25T16:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average of percentage price changes instead of change of the average price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-of-percentage-price-changes-instead-of-change/m-p/4585648#M175680</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="766241" data-lia-user-login="00Kevin00" class="lia-mention lia-mention-user"&gt;00Kevin00&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try creating a new measure like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;new measure =
DIVIDE (
    SUMX ( VALUES ( 'Table'[ISBN] ), [PoP %-∆] ),
    COUNTROWS ( VALUES ( 'Table'[ISBN] ) )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Jing&lt;BR /&gt;&lt;EM&gt;If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos! &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 06:26:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-of-percentage-price-changes-instead-of-change/m-p/4585648#M175680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-26T06:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average of percentage price changes instead of change of the average price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-of-percentage-price-changes-instead-of-change/m-p/4588413#M175779</link>
      <description>&lt;P&gt;Hey Jing, thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;I'm almost there - as you can see in my screenshot, [PoP %-∆] contains Blank rows, which should not be counted into the average calculation (but 0%, do). Could you adjust the formula so that it counts only the ISBNs where&amp;nbsp;[PoP %-∆] is not blank?&lt;BR /&gt;&lt;BR /&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 16:41:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-of-percentage-price-changes-instead-of-change/m-p/4588413#M175779</guid>
      <dc:creator>00Kevin00</dc:creator>
      <dc:date>2025-02-27T16:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average of percentage price changes instead of change of the average price</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-of-percentage-price-changes-instead-of-change/m-p/4588420#M175780</link>
      <description>&lt;P&gt;Found the solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;new measure =
DIVIDE(
    SUMX(
        FILTER(
            VALUES('Table'[ISBN]),
            NOT(ISBLANK([PoP %-∆]))
        ),
        [PoP %-∆]
    ),
    COUNTROWS(
        FILTER(
            VALUES('Table'[ISBN]),
            NOT(ISBLANK([PoP %-∆]))
        )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Feb 2025 16:47:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-average-of-percentage-price-changes-instead-of-change/m-p/4588420#M175780</guid>
      <dc:creator>00Kevin00</dc:creator>
      <dc:date>2025-02-27T16:47:25Z</dc:date>
    </item>
  </channel>
</rss>

