<?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 Missing Data Points for Average in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-Data-Points-for-Average/m-p/3282490#M121942</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currrently calculating the average for a column in Table 1, however there's data missing and I'm trying to include it&lt;/P&gt;&lt;P&gt;Data Exists for 6, missing for 11.&lt;/P&gt;&lt;P&gt;Average = {5,5,8,6,8,6} -&amp;gt; 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to add let's say if I had additional data from Table 2 into a measure to fully add the correct average values?&lt;/P&gt;&lt;P&gt;Data to include would the days not included, in this case 7, to equal 0.&lt;/P&gt;&lt;P&gt;{0,0,0,0,0,0,0,0,0,0,0}&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in reality it should be Average = {5,5,8,6,8,6,0,0,0,0,0,0,0,0,0,0,0} --&amp;gt;2.24&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe it can't be done but just wondering if its possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 23:09:41 GMT</pubDate>
    <dc:creator>rogerthat</dc:creator>
    <dc:date>2023-06-13T23:09:41Z</dc:date>
    <item>
      <title>Missing Data Points for Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-Data-Points-for-Average/m-p/3282490#M121942</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currrently calculating the average for a column in Table 1, however there's data missing and I'm trying to include it&lt;/P&gt;&lt;P&gt;Data Exists for 6, missing for 11.&lt;/P&gt;&lt;P&gt;Average = {5,5,8,6,8,6} -&amp;gt; 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to add let's say if I had additional data from Table 2 into a measure to fully add the correct average values?&lt;/P&gt;&lt;P&gt;Data to include would the days not included, in this case 7, to equal 0.&lt;/P&gt;&lt;P&gt;{0,0,0,0,0,0,0,0,0,0,0}&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in reality it should be Average = {5,5,8,6,8,6,0,0,0,0,0,0,0,0,0,0,0} --&amp;gt;2.24&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe it can't be done but just wondering if its possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 23:09:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-Data-Points-for-Average/m-p/3282490#M121942</guid>
      <dc:creator>rogerthat</dc:creator>
      <dc:date>2023-06-13T23:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Data Points for Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-Data-Points-for-Average/m-p/3285230#M122107</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="334322" data-lia-user-login="rogerthat" class="lia-mention lia-mention-user"&gt;rogerthat&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Due to I don't know your data model, here I create a sample to have a test.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Average =
AVERAGEX (
    UNION (
        SELECTCOLUMNS ( 'Table 1', "Value", 'Table 1'[Value] ),
        SELECTCOLUMNS ( 'Table 2', "Value", 'Table 2'[Value] )
    ),
    [Value]
)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 06:18:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Missing-Data-Points-for-Average/m-p/3285230#M122107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-15T06:18:05Z</dc:date>
    </item>
  </channel>
</rss>

