<?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: Calculate average from functions, dynamic divisor in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Calculate-average-from-functions-dynamic-divisor/m-p/3061796#M105832</link>
    <description>&lt;P&gt;Right answer from @AIB&lt;/P&gt;&lt;PRE&gt;Measure =
VAR Count_ =
    INT ( [Measure1] &amp;lt;&amp;gt; BLANK () )
        + INT ( [Measure2] &amp;lt;&amp;gt; BLANK () )
        + INT ( [Measure3] &amp;lt;&amp;gt; BLANK () )
RETURN
    DIVIDE ( [Measure1] + [Measure2] + [Measure3], Count_ )&lt;/PRE&gt;</description>
    <pubDate>Sat, 04 Feb 2023 20:43:01 GMT</pubDate>
    <dc:creator>Cre8</dc:creator>
    <dc:date>2023-02-04T20:43:01Z</dc:date>
    <item>
      <title>HELP: Calculate average from functions, dynamic divisor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Calculate-average-from-functions-dynamic-divisor/m-p/3060803#M105747</link>
      <description>&lt;P&gt;I have a question and urgently ask for your help!!!&lt;BR /&gt;The following problem:&lt;/P&gt;&lt;P&gt;I have four data columns which I can filter (e.g. by month). In Power BI I have calculated the average per column using the AVERAGE function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mean V1=AVERAGE([Value1] -&amp;gt; New Measure: fx Mean V1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;This for all 4 Values, meaning I get 4 functions (each the average of these individual columns).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far so good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to calculate the average over these four columns. Unfortunately, I cannot have AVERAGE calculated using functions (fx). Therefore I simply summed up the functions (fx) with CALCULATE and divided by 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=CALCULATE([fx average V1]+[fx average V2]+[fx average V3]+[fx average V4])/4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This only works if all results of the functions (fx) contain values. If a function (fx) gives no values, the mean value is calculated incorrectly. What can I do now to get a dynamic divisor?&lt;BR /&gt;&lt;STRONG&gt;Is it somehow possible to generate again a mean value from functions?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 17:40:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Calculate-average-from-functions-dynamic-divisor/m-p/3060803#M105747</guid>
      <dc:creator>Cre8</dc:creator>
      <dc:date>2023-02-03T17:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: HELP: Calculate average from functions, dynamic divisor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Calculate-average-from-functions-dynamic-divisor/m-p/3061299#M105785</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509419" data-lia-user-login="Cre8" class="lia-mention lia-mention-user"&gt;Cre8&lt;/a&gt; , try a new meausre like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Averagex({[fx average V1],[fx average V2],[fx average V3],[fx average V4]}, [Value])&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 02:43:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Calculate-average-from-functions-dynamic-divisor/m-p/3061299#M105785</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-02-04T02:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: HELP: Calculate average from functions, dynamic divisor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Calculate-average-from-functions-dynamic-divisor/m-p/3061796#M105832</link>
      <description>&lt;P&gt;Right answer from @AIB&lt;/P&gt;&lt;PRE&gt;Measure =
VAR Count_ =
    INT ( [Measure1] &amp;lt;&amp;gt; BLANK () )
        + INT ( [Measure2] &amp;lt;&amp;gt; BLANK () )
        + INT ( [Measure3] &amp;lt;&amp;gt; BLANK () )
RETURN
    DIVIDE ( [Measure1] + [Measure2] + [Measure3], Count_ )&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Feb 2023 20:43:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/HELP-Calculate-average-from-functions-dynamic-divisor/m-p/3061796#M105832</guid>
      <dc:creator>Cre8</dc:creator>
      <dc:date>2023-02-04T20:43:01Z</dc:date>
    </item>
  </channel>
</rss>

