<?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: AverageX, feel like I'm being an idiot... in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AverageX-feel-like-I-m-being-an-idiot/m-p/4652691#M178115</link>
    <description>&lt;P&gt;Duh.... My intution was correct (using the divide), but I just wasn't thinking about it properly to rationalize it in my head... Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Apr 2025 03:16:22 GMT</pubDate>
    <dc:creator>rpiboy_1</dc:creator>
    <dc:date>2025-04-15T03:16:22Z</dc:date>
    <item>
      <title>AverageX, feel like I'm being an idiot...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AverageX-feel-like-I-m-being-an-idiot/m-p/4652497#M178104</link>
      <description>&lt;P&gt;Not sure why I'm struggling so much with this, I just want to have an average show-up in my Matrix based on the Date Hierarchy, so average for quarter, year, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data Model:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Date (dimension) - well formed data table&lt;/P&gt;&lt;P&gt;Projects (dimension) - list of all projects&lt;/P&gt;&lt;P&gt;Months Projects Open (fact) -&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;each row represents a month a project is open&lt;/LI&gt;&lt;LI&gt;columns {"Project ID", "Month Open"}&lt;/LI&gt;&lt;LI&gt;has relationships to the two dimenion tables&lt;/LI&gt;&lt;LI&gt;[Month Open] is always the first of the month as that is our maximum granularity.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I wrote this measure and it works fine in a matrix with the date hierachy; as expected at the month granulirity I get the actual number of open projects, at quarter and year I get the average over the number of months (yay!):&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Active Average = DIVIDE(COUNTROWS('Months Projects Open'), DISTINCTCOUNT('Date'[Year Month Number]))&lt;/LI-CODE&gt;&lt;P&gt;When I try to use AVERAGEX with something like VALUES('Date'[Year Month Number]) it behaves like it is iterating over a single row and therefore returns the total amount of rows and not the average. I don't think I should need a Calculate as I'm not interested in changing the date context/filter, I just want to properly calculate the average over the number of months within the context. Do I need to implement a 'summarize' (seems unccessary for something otherwise so simple).&lt;BR /&gt;&lt;BR /&gt;I feel like I'm missing something really obvious in terms of properly iterating over the date table?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 21:31:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AverageX-feel-like-I-m-being-an-idiot/m-p/4652497#M178104</guid>
      <dc:creator>rpiboy_1</dc:creator>
      <dc:date>2025-04-14T21:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: AverageX, feel like I'm being an idiot...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AverageX-feel-like-I-m-being-an-idiot/m-p/4652565#M178107</link>
      <description>&lt;LI-CODE lang="markup"&gt;I just want to properly calculate the average over the number of months within the context. &lt;/LI-CODE&gt;
&lt;P&gt;The average of what?&amp;nbsp; Your (virtual) table needs to have the values you want to average. If you want to do that across months then yes, you need to groupby or summarize or summarizecolumns over these months.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 00:00:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AverageX-feel-like-I-m-being-an-idiot/m-p/4652565#M178107</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-04-15T00:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: AverageX, feel like I'm being an idiot...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AverageX-feel-like-I-m-being-an-idiot/m-p/4652691#M178115</link>
      <description>&lt;P&gt;Duh.... My intution was correct (using the divide), but I just wasn't thinking about it properly to rationalize it in my head... Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 03:16:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AverageX-feel-like-I-m-being-an-idiot/m-p/4652691#M178115</guid>
      <dc:creator>rpiboy_1</dc:creator>
      <dc:date>2025-04-15T03:16:22Z</dc:date>
    </item>
  </channel>
</rss>

