<?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: Average everything else in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-everything-else/m-p/2210257#M52137</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="340980" data-lia-user-login="stjimi" class="lia-mention lia-mention-user"&gt;stjimi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your example, it looks like a measure such as this would give the result you want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Average of others = 
CALCULATE ( 
    [Average],
    EXCEPT ( 
        ALLSELECTED ( YourTable[Jurisdiction] ),
        VALUES ( YourTable[Jurisdiction] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This assumes a measure [Average] is already defined.&lt;/P&gt;
&lt;P&gt;The EXCEPT ( ... ) expression creates a modified filter on Jurisdiction, by taking the filter on Jurisdiction applying to the overall visual, and removing the value(s) of Jurisdiction visible in the current filter context, i.e. removes the single value from the current row of your table in your example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Owen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 27 Nov 2021 11:39:50 GMT</pubDate>
    <dc:creator>OwenAuger</dc:creator>
    <dc:date>2021-11-27T11:39:50Z</dc:date>
    <item>
      <title>Average everything else</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-everything-else/m-p/2210200#M52130</link>
      <description>&lt;P&gt;HI All,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am new to Dax and I can't seem to figure out how to find the average of all values in the category without including the present row of another category. For example, I want to find the average of all controls of all other jurisdictions except the one on the row. See below.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Sorry, I can't explain it properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Control Number&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Jurisdiction&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Average&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Average of others&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Control 1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;SA&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Control 1&lt;/TD&gt;&lt;TD&gt;NSW&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Control 1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;WA&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;2.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Control 2&lt;/TD&gt;&lt;TD&gt;SA&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;3.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Control 2&lt;/TD&gt;&lt;TD&gt;NSW&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Control 2&lt;/TD&gt;&lt;TD&gt;WA&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;3.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Control 3&lt;/TD&gt;&lt;TD&gt;SA&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;5.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Control 3&lt;/TD&gt;&lt;TD&gt;NSW&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Control 3&lt;/TD&gt;&lt;TD&gt;WA&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;6.5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 27 Nov 2021 06:57:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-everything-else/m-p/2210200#M52130</guid>
      <dc:creator>stjimi</dc:creator>
      <dc:date>2021-11-27T06:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Average everything else</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-everything-else/m-p/2210257#M52137</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="340980" data-lia-user-login="stjimi" class="lia-mention lia-mention-user"&gt;stjimi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your example, it looks like a measure such as this would give the result you want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Average of others = 
CALCULATE ( 
    [Average],
    EXCEPT ( 
        ALLSELECTED ( YourTable[Jurisdiction] ),
        VALUES ( YourTable[Jurisdiction] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This assumes a measure [Average] is already defined.&lt;/P&gt;
&lt;P&gt;The EXCEPT ( ... ) expression creates a modified filter on Jurisdiction, by taking the filter on Jurisdiction applying to the overall visual, and removing the value(s) of Jurisdiction visible in the current filter context, i.e. removes the single value from the current row of your table in your example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Owen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 11:39:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-everything-else/m-p/2210257#M52137</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2021-11-27T11:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Average everything else</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-everything-else/m-p/2210295#M52139</link>
      <description>&lt;P&gt;Thanks so much, Owen. This makes sense.&amp;nbsp; How would I go about defining a measure for the Average? Would I do this with a 'new measure'. Sorry about the simple question.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 13:50:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-everything-else/m-p/2210295#M52139</guid>
      <dc:creator>stjimi</dc:creator>
      <dc:date>2021-11-27T13:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Average everything else</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-everything-else/m-p/2210385#M52143</link>
      <description>&lt;P&gt;It would just be &lt;STRONG&gt;AVERAGE ( Table1[Column1] )&lt;/STRONG&gt; where you substitute whatever column you're wanting to average instead of my placeholder.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 16:27:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-everything-else/m-p/2210385#M52143</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-11-27T16:27:27Z</dc:date>
    </item>
  </channel>
</rss>

