<?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: Help Calculating Average Excluding 2 Conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Calculating-Average-Excluding-2-Conditions/m-p/4749988#M181878</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;as per my understanding, your existing measure does not need CALCULATE and should read&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EPIC % =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[EPIC Points]&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Master AE'&lt;/SPAN&gt;&lt;SPAN&gt;)*&lt;/SPAN&gt;&lt;SPAN&gt;35&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The new measure&amp;nbsp;&lt;/SPAN&gt;that must exclude any rows where Master AE [EPIC Points Count] is &amp;lt;=17 AND the Master AE [Quarter] is &amp;gt; 2 should yes use CALCULATE and should read&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EPIC % Excl =&amp;nbsp;&lt;BR /&gt;CALCULATE (&amp;nbsp;&lt;BR /&gt;&amp;nbsp; [EPIC %],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;Master AE [EPIC Points Count] is &amp;gt;17,&lt;BR /&gt;&amp;nbsp; Master AE [Quarter] is &amp;lt;= 2&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273" data-lia-user-login="me" class="lia-mention lia-mention-user"&gt;me&lt;/a&gt; in replies or I'll lose your thread&lt;/P&gt;consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 01 Jul 2025 16:14:10 GMT</pubDate>
    <dc:creator>FBergamaschi</dc:creator>
    <dc:date>2025-07-01T16:14:10Z</dc:date>
    <item>
      <title>Help Calculating Average Excluding 2 Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Calculating-Average-Excluding-2-Conditions/m-p/4748975#M181851</link>
      <description>&lt;P&gt;I have an existing DAX measure which gets average of completed fields in the "Master AE" table (there's 35 required fields):&amp;nbsp;&lt;/P&gt;&lt;P&gt;[EPIC %] =&amp;nbsp;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[EPIC Points]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Master AE'&lt;/SPAN&gt;&lt;SPAN&gt;)*&lt;/SPAN&gt;&lt;SPAN&gt;35&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;The current measure gives this output on my KPI cards, which is correct:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&amp;nbsp;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;However, I need to modify it to get a new average that &lt;STRONG&gt;EXCLUDES&lt;/STRONG&gt; any rows where Master AE [EPIC Points Count] is &amp;lt;=17 AND the Master AE [Quarter] is &amp;gt; 2.&lt;BR /&gt;&lt;BR /&gt;Or basically, exclude any results from EPIC % measure result &amp;lt;= 49% AND Quarter &amp;gt; 2.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The desired result average should be &lt;STRONG&gt;40.28%&lt;/STRONG&gt; (only 10 values would be averaged per the conditions)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any idea how I can do this?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;Here is the [EPIC points] measure which sums all the points assigned when blanks completed:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;Appreciate any help!&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Jul 2025 05:45:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Calculating-Average-Excluding-2-Conditions/m-p/4748975#M181851</guid>
      <dc:creator>jabueg</dc:creator>
      <dc:date>2025-07-01T05:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help Calculating Average Excluding 2 Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Calculating-Average-Excluding-2-Conditions/m-p/4749274#M181859</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1281284" data-lia-user-login="jabueg" class="lia-mention lia-mention-user"&gt;jabueg&lt;/a&gt;&amp;nbsp;,Try using&lt;/P&gt;
&lt;P&gt;[EPIC %] = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;DIVIDE(&lt;BR /&gt;[EPIC Points], &lt;BR /&gt;COUNTROWS('Master AE') * 35&lt;BR /&gt;),&lt;BR /&gt;FILTER(&lt;BR /&gt;'Master AE',&lt;BR /&gt;'Master AE'[EPIC Points Count] &amp;gt; 17 &amp;amp;&amp;amp; 'Master AE'[Quarter] &amp;lt;= 2&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 06:04:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Calculating-Average-Excluding-2-Conditions/m-p/4749274#M181859</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-07-01T06:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help Calculating Average Excluding 2 Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Calculating-Average-Excluding-2-Conditions/m-p/4749302#M181860</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;Thanks, but it's giving incorrect result. The expected result should be 40.29%. What should I adjust in the calculation?&lt;BR /&gt;&lt;BR /&gt;(85.71% + 48.57 + 34.29 + 34.29 + 31.43 + 31.43 + 31.43 +31.43 +28.57 +22.86) =&amp;nbsp; 402.87/10 rows&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 06:23:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Calculating-Average-Excluding-2-Conditions/m-p/4749302#M181860</guid>
      <dc:creator>jabueg</dc:creator>
      <dc:date>2025-07-01T06:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help Calculating Average Excluding 2 Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Calculating-Average-Excluding-2-Conditions/m-p/4749969#M181876</link>
      <description>&lt;P&gt;I figured out the solution. Had to create a calculated a column "Filtered Points" in Table view to filter out the condition and set them to 0&amp;nbsp; -&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Filtered Points =&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;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Master AE'&lt;/SPAN&gt;&lt;SPAN&gt;[EPIC Points Count]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;17&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;'Master AE'&lt;/SPAN&gt;&lt;SPAN&gt;[Quarter #]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;[EPIC Points Count]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;And then created a new measure with the new calculated column:&lt;BR /&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EPIC Points Risk =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;Points&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Master AE'&lt;/SPAN&gt;&lt;SPAN&gt;[Filtered Points]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Points&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Lastly, created new measure to get average of filtered points (excluding the conditions):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;NEW EPIC % =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[EPIC Points Risk]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Master AE'&lt;/SPAN&gt;&lt;SPAN&gt;)*&lt;/SPAN&gt;&lt;SPAN&gt;35&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Master AE'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Master AE'&lt;/SPAN&gt;&lt;SPAN&gt;[Filtered Points]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks to all who helped anyway!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 18:43:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Calculating-Average-Excluding-2-Conditions/m-p/4749969#M181876</guid>
      <dc:creator>jabueg</dc:creator>
      <dc:date>2025-07-01T18:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help Calculating Average Excluding 2 Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Calculating-Average-Excluding-2-Conditions/m-p/4749988#M181878</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;as per my understanding, your existing measure does not need CALCULATE and should read&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EPIC % =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[EPIC Points]&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Master AE'&lt;/SPAN&gt;&lt;SPAN&gt;)*&lt;/SPAN&gt;&lt;SPAN&gt;35&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The new measure&amp;nbsp;&lt;/SPAN&gt;that must exclude any rows where Master AE [EPIC Points Count] is &amp;lt;=17 AND the Master AE [Quarter] is &amp;gt; 2 should yes use CALCULATE and should read&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EPIC % Excl =&amp;nbsp;&lt;BR /&gt;CALCULATE (&amp;nbsp;&lt;BR /&gt;&amp;nbsp; [EPIC %],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;Master AE [EPIC Points Count] is &amp;gt;17,&lt;BR /&gt;&amp;nbsp; Master AE [Quarter] is &amp;lt;= 2&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273" data-lia-user-login="me" class="lia-mention lia-mention-user"&gt;me&lt;/a&gt; in replies or I'll lose your thread&lt;/P&gt;consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Jul 2025 16:14:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Calculating-Average-Excluding-2-Conditions/m-p/4749988#M181878</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-07-01T16:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help Calculating Average Excluding 2 Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Calculating-Average-Excluding-2-Conditions/m-p/4750101#M181887</link>
      <description>&lt;P&gt;Thank you for your response, but it didn't give me the desired result. I was actually able to figure out the solution and posted in my comment.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 18:44:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Calculating-Average-Excluding-2-Conditions/m-p/4750101#M181887</guid>
      <dc:creator>jabueg</dc:creator>
      <dc:date>2025-07-01T18:44:02Z</dc:date>
    </item>
  </channel>
</rss>

