<?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 a Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Average-of-a-Measure/m-p/4624502#M177013</link>
    <description>&lt;P&gt;Gallons Consumed = DIVIDE(SUM(Table[Total Miles]), CALCULATE([MPG],ALL()))&lt;/P&gt;</description>
    <pubDate>Tue, 25 Mar 2025 16:25:09 GMT</pubDate>
    <dc:creator>sjoerdvn</dc:creator>
    <dc:date>2025-03-25T16:25:09Z</dc:date>
    <item>
      <title>Calculate Average of a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Average-of-a-Measure/m-p/4624260#M177005</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Gallons consumed is a measure that is supposed to take the Sum of Total Miles divided by the Average MPG. MPG is also a measure that is Sum of Total Miles divided by Sum of Gallons Purchased.&amp;nbsp;&lt;BR /&gt;So ideally, it would be&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;IL - 327053.96 / 5.70 = 57377.89 gallons consumed&lt;BR /&gt;IN -&amp;nbsp; 573683.22 / 5.70 = 100646.18 gallons consumed&lt;BR /&gt;OH - 35671.18 / 5.70 = 6258.10 gallons consumed&lt;BR /&gt;&lt;BR /&gt;But right now it is diving by 9.87, 4.51. and 9.37 and just equaling the sum of gallons purchased.&lt;BR /&gt;&lt;BR /&gt;How can I get it to divide by the average of the MPG on my table?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 13:47:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Average-of-a-Measure/m-p/4624260#M177005</guid>
      <dc:creator>RachelQ</dc:creator>
      <dc:date>2025-03-25T13:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Average of a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Average-of-a-Measure/m-p/4624502#M177013</link>
      <description>&lt;P&gt;Gallons Consumed = DIVIDE(SUM(Table[Total Miles]), CALCULATE([MPG],ALL()))&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 16:25:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Average-of-a-Measure/m-p/4624502#M177013</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2025-03-25T16:25:09Z</dc:date>
    </item>
  </channel>
</rss>

