<?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 of sumx calculation where results of measure &amp;gt; 0 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-sumx-calculation-where-results-of-measure-gt-0/m-p/2423963#M64314</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372584" data-lia-user-login="fisqkuz1" class="lia-mention lia-mention-user"&gt;fisqkuz1&lt;/a&gt; , if Test is a measure it needs a group by to check &amp;gt;0 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Averagex(filter(Values(Table[Column]), [Test] &amp;gt;0), [Test])&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 10:32:03 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-03-29T10:32:03Z</dc:date>
    <item>
      <title>average of sumx calculation where results of measure &gt; 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-sumx-calculation-where-results-of-measure-gt-0/m-p/2423642#M64305</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to get the average of a column which was calculated with SUMX. If get that it's not working because dax doesn't know the context, however I can't seem to figure this out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;test = SUMX(table1, table1[c1] - table1[2])&lt;BR /&gt;&lt;BR /&gt;and then I want IF test &amp;gt; 0 -&amp;gt; take into account to average.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 08:51:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-sumx-calculation-where-results-of-measure-gt-0/m-p/2423642#M64305</guid>
      <dc:creator>fisqkuz1</dc:creator>
      <dc:date>2022-03-29T08:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: average of sumx calculation where results of measure &gt; 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-sumx-calculation-where-results-of-measure-gt-0/m-p/2423963#M64314</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372584" data-lia-user-login="fisqkuz1" class="lia-mention lia-mention-user"&gt;fisqkuz1&lt;/a&gt; , if Test is a measure it needs a group by to check &amp;gt;0 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Averagex(filter(Values(Table[Column]), [Test] &amp;gt;0), [Test])&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 10:32:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-sumx-calculation-where-results-of-measure-gt-0/m-p/2423963#M64314</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-29T10:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: average of sumx calculation where results of measure &gt; 0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-sumx-calculation-where-results-of-measure-gt-0/m-p/2431672#M64738</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372584" data-lia-user-login="fisqkuz1" class="lia-mention lia-mention-user"&gt;fisqkuz1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try this measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;AVG = AVERAGEX(FILTER('Table1','Table1'[C1]-'Table1'[C2]&amp;gt;0),'Table1'[C1]-'Table1'[C2])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is my sample data and measure result.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is not what you want, can you provide some sample data and expected result so that we can try to come up with a more accurate solution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards, &lt;BR /&gt;Community Support Team _ Jing&lt;BR /&gt;If this post helps, please Accept it as Solution to help other members find it.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 09:59:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-sumx-calculation-where-results-of-measure-gt-0/m-p/2431672#M64738</guid>
      <dc:creator>v-jingzhang</dc:creator>
      <dc:date>2022-04-01T09:59:03Z</dc:date>
    </item>
  </channel>
</rss>

