<?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: I want to Average multiple columns but ignoring any zeroes or blanks in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-Average-multiple-columns-but-ignoring-any-zeroes-or/m-p/2329875#M58493</link>
    <description>&lt;P&gt;Worked like a charm, thanks heaps&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;... This was my first ever post on the community page, following such a quick and accurate response, I'm going to be more active here from now on. You're a legend.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Feb 2022 05:41:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-02-10T05:41:54Z</dc:date>
    <item>
      <title>I want to Average multiple columns but ignoring any zeroes or blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-Average-multiple-columns-but-ignoring-any-zeroes-or/m-p/2329809#M58487</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hello Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a solution as shown in the table above in PowerBI, I want to create a new column that prints average of these 4 columns but only if they have a non-zero/non blank value. I.e. the answer for first row should not be ((0+0+5+0)/4) instead just (5/1) since rest of the columns are empty. Any replies would be much appreciated, thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 04:47:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-Average-multiple-columns-but-ignoring-any-zeroes-or/m-p/2329809#M58487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-10T04:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: I want to Average multiple columns but ignoring any zeroes or blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-Average-multiple-columns-but-ignoring-any-zeroes-or/m-p/2329866#M58491</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Try a new column like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;divide([A] + [B] + [C] +[D], if(coalesce([A],0) &amp;lt;&amp;gt;0,1,0) + if(coalesce([B],0) &amp;lt;&amp;gt;0,1,0) + if(coalesce([C],0) &amp;lt;&amp;gt;0,1,0) +if(coalesce([D],0) &amp;lt;&amp;gt;0,1,0))&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 05:28:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-Average-multiple-columns-but-ignoring-any-zeroes-or/m-p/2329866#M58491</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-10T05:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: I want to Average multiple columns but ignoring any zeroes or blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-Average-multiple-columns-but-ignoring-any-zeroes-or/m-p/2329875#M58493</link>
      <description>&lt;P&gt;Worked like a charm, thanks heaps&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;... This was my first ever post on the community page, following such a quick and accurate response, I'm going to be more active here from now on. You're a legend.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 05:41:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-to-Average-multiple-columns-but-ignoring-any-zeroes-or/m-p/2329875#M58493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-10T05:41:54Z</dc:date>
    </item>
  </channel>
</rss>

