<?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 Sum of Variables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-Sum-of-Variables/m-p/4334727#M172103</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="735285" data-lia-user-login="CUdatanerd" class="lia-mention lia-mention-user"&gt;CUdatanerd&lt;/a&gt;&amp;nbsp;- In that case my approach will not work, but&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;'s approach will.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HOWEVER - You should be very careful with this approach. In general, simply averaging averages is going to give a false answer. Please read this blog, which explains everything you need to know:&amp;nbsp;&lt;A href="https://www.stevefenton.co.uk/blog/2020/02/can-you-average-averages-in-your-analytics/" target="_blank" rel="noopener"&gt;https://www.stevefenton.co.uk/blog/2020/02/can-you-average-averages-in-your-analytics/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Essentially, if any survey has less responses than the others, it will skew the results of your final average.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Personally, I would see if it possible to append the results of the 6 surveys together into one table using Power Query, you will then be able to calculate an average over a singular column and the affects of any skew will be nullified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the documentation for appending:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-query/append-queries" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-query/append-queries&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Dec 2024 09:15:17 GMT</pubDate>
    <dc:creator>mark_endicott</dc:creator>
    <dc:date>2024-12-18T09:15:17Z</dc:date>
    <item>
      <title>Average of Sum of Variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-Sum-of-Variables/m-p/4333458#M172055</link>
      <description>&lt;P&gt;I'm at a loss:&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;&lt;P&gt;The issue is that sometimes a variable will have no value, dividing by 6 does not calculate the way I need it to when filtering to row values that have nothing in a column:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any suggestions or help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 16:22:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-Sum-of-Variables/m-p/4333458#M172055</guid>
      <dc:creator>CUdatanerd</dc:creator>
      <dc:date>2024-12-17T16:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Average of Sum of Variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-Sum-of-Variables/m-p/4333532#M172058</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="735285" data-lia-user-login="CUdatanerd" class="lia-mention lia-mention-user"&gt;CUdatanerd&lt;/a&gt;&amp;nbsp;- There are two ways you could solve this. You could go back to your model and Unpivot your data so that all of your "Assist" measures are in a single column. This would make this DAX and any future much easier.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can use DAX. If you wish to do this, try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;AVERAGEX( 'Table', [MSC Assist] + [NL Assist] + [NM Assist] + [NP Assist] + [RE Assist] + [Tran Assist] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not know enough about your model, or what you are trying to acheive visually to be confident that this will work for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it gets you closer, please accept as the solution to help with visibility for others with the same challenge.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 17:01:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-Sum-of-Variables/m-p/4333532#M172058</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-12-17T17:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Average of Sum of Variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-Sum-of-Variables/m-p/4333581#M172061</link>
      <description>&lt;P&gt;Each measure is an average of a column on various survey types; so 6 different tables.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 17:35:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-Sum-of-Variables/m-p/4333581#M172061</guid>
      <dc:creator>CUdatanerd</dc:creator>
      <dc:date>2024-12-17T17:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Average of Sum of Variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-Sum-of-Variables/m-p/4333940#M172070</link>
      <description>&lt;P&gt;Hi&amp;nbsp;mark_endicott&amp;nbsp;,thanks for the quick reply, I'll add more.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="735285" data-lia-user-login="CUdatanerd" class="lia-mention lia-mention-user"&gt;CUdatanerd&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Try this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Assist In Future = 
VAR _m1 = [MSC Assist]
VAR _m2 = [NL Assist]
VAR _m3 = [NM Assist]
VAR _m4 = [NP Assist]
VAR _m5 = [RE Assist]
VAR _m6 = [Tran Assist]
VAR _table = {_m1,_m2,_m3,_m4,_m5,_m6}
RETURN
DIVIDE(SUMX(_table,[Value]),COUNTROWS(FILTER(_table,[Value] &amp;lt;&amp;gt; BLANK())))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 01:49:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-Sum-of-Variables/m-p/4333940#M172070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-18T01:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Average of Sum of Variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-Sum-of-Variables/m-p/4334727#M172103</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="735285" data-lia-user-login="CUdatanerd" class="lia-mention lia-mention-user"&gt;CUdatanerd&lt;/a&gt;&amp;nbsp;- In that case my approach will not work, but&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;'s approach will.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HOWEVER - You should be very careful with this approach. In general, simply averaging averages is going to give a false answer. Please read this blog, which explains everything you need to know:&amp;nbsp;&lt;A href="https://www.stevefenton.co.uk/blog/2020/02/can-you-average-averages-in-your-analytics/" target="_blank" rel="noopener"&gt;https://www.stevefenton.co.uk/blog/2020/02/can-you-average-averages-in-your-analytics/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Essentially, if any survey has less responses than the others, it will skew the results of your final average.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Personally, I would see if it possible to append the results of the 6 surveys together into one table using Power Query, you will then be able to calculate an average over a singular column and the affects of any skew will be nullified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the documentation for appending:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-query/append-queries" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-query/append-queries&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 09:15:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-Sum-of-Variables/m-p/4334727#M172103</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-12-18T09:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Average of Sum of Variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-Sum-of-Variables/m-p/4340719#M172361</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="735285" data-lia-user-login="CUdatanerd" class="lia-mention lia-mention-user"&gt;CUdatanerd&lt;/a&gt;&amp;nbsp;- did we resolve your issue? If we did, please select the appropriate solution, it helps with visibility for others and for SuperUsers to keep their status! Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 10:50:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-Sum-of-Variables/m-p/4340719#M172361</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-12-23T10:50:01Z</dc:date>
    </item>
  </channel>
</rss>

