<?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 Average Totals in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Totals/m-p/1093047#M15899</link>
    <description>&lt;P&gt;I am trying to calculate the average decline rate (% change) through months and years using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avg. Liquid (mboepd):=AVERAGEX(oga_data, oga_data[Liquid (mbopd)])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Liquid Decline:=&lt;/P&gt;&lt;P&gt;VAR __LiquidPriorMonth = CALCULATE([Avg. Liquid (mboepd)], PARALLELPERIOD('Calendar'[Date], -1, MONTH))&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;DIVIDE([Avg. Liquid (mboepd)] - __LiquidPriorMonth, __LiquidPriorMonth)&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;The monthly decline calculates as expected but the subtotals are not correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could sombody please explain where I am going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 17 May 2020 10:29:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-17T10:29:58Z</dc:date>
    <item>
      <title>Average Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Totals/m-p/1093047#M15899</link>
      <description>&lt;P&gt;I am trying to calculate the average decline rate (% change) through months and years using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avg. Liquid (mboepd):=AVERAGEX(oga_data, oga_data[Liquid (mbopd)])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Liquid Decline:=&lt;/P&gt;&lt;P&gt;VAR __LiquidPriorMonth = CALCULATE([Avg. Liquid (mboepd)], PARALLELPERIOD('Calendar'[Date], -1, MONTH))&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;DIVIDE([Avg. Liquid (mboepd)] - __LiquidPriorMonth, __LiquidPriorMonth)&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;The monthly decline calculates as expected but the subtotals are not correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could sombody please explain where I am going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 10:29:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Totals/m-p/1093047#M15899</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-17T10:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Average Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Totals/m-p/1093079#M15901</link>
      <description>&lt;P&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;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 11:46:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Totals/m-p/1093079#M15901</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-17T11:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Average Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Totals/m-p/1093101#M15903</link>
      <description>&lt;P&gt;Keep your existing measures, but use a measure like this in your visual (assume you have a column called YearMonth in your Date table).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NewMeasure = AverageX(Values(Date[YearMonth]), [Liquid Decline])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should work both for your rows and subtotal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works for you, please mark it as solution.&amp;nbsp; Kudos are appreciated too.&amp;nbsp; Please let me know if not.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 12:34:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Totals/m-p/1093101#M15903</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-05-17T12:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Average Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Totals/m-p/1093137#M15910</link>
      <description>&lt;P&gt;Thanks - that works as expected to get % change by month on the rows and an average of the % change for the year in the subtotals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you also tell me if it's possible to keep % change by month on the rows and get a % change for each year for the subtotals?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 14:55:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-Totals/m-p/1093137#M15910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-17T14:55:17Z</dc:date>
    </item>
  </channel>
</rss>

