<?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: Sum the count of rows to get an average in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-the-count-of-rows-to-get-an-average/m-p/924171#M9237</link>
    <description>&lt;P&gt;if you want the structure in same way then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create total column as&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total = 'Table 4'[Column1]+'Table 4'[Column2]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;You can add all six columns here&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total average per Name = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;KEEPFILTERS(VALUES('Table 4'[Name])),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CALCULATE(SUM('Table 4'[Total]))/2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;In my case i used 2 columns you can replace two with 6 in formula.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks &amp;amp; regards,&lt;BR /&gt;Pravin Wattamwar&lt;BR /&gt;&lt;A href="http://www.linkedin.com/in/pravin-p-wattamwar" target="_blank"&gt;www.linkedin.com/in/pravin-p-wattamwar&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If I resolve your problem Mark it as a solution and give kudos.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 06 Feb 2020 15:31:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-06T15:31:55Z</dc:date>
    <item>
      <title>Sum the count of rows to get an average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-the-count-of-rows-to-get-an-average/m-p/924144#M9235</link>
      <description>&lt;P&gt;This is more of a DAX/Power Pivot question but this seems like the best place for this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im basically trying to replace the "grand total" with the the average.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each column is a given week. the rows include the count of a certain text within my data set. i cant figure out how to get the average of the weeks with Dax&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ive tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;measure = sum(count("certain text")) but i get an error saying the sum measure cant use count within it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 15:16:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-the-count-of-rows-to-get-an-average/m-p/924144#M9235</guid>
      <dc:creator>Shane86</dc:creator>
      <dc:date>2020-02-06T15:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sum the count of rows to get an average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-the-count-of-rows-to-get-an-average/m-p/924171#M9237</link>
      <description>&lt;P&gt;if you want the structure in same way then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create total column as&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total = 'Table 4'[Column1]+'Table 4'[Column2]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;You can add all six columns here&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total average per Name = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;KEEPFILTERS(VALUES('Table 4'[Name])),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CALCULATE(SUM('Table 4'[Total]))/2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;In my case i used 2 columns you can replace two with 6 in formula.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks &amp;amp; regards,&lt;BR /&gt;Pravin Wattamwar&lt;BR /&gt;&lt;A href="http://www.linkedin.com/in/pravin-p-wattamwar" target="_blank"&gt;www.linkedin.com/in/pravin-p-wattamwar&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If I resolve your problem Mark it as a solution and give kudos.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Feb 2020 15:31:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-the-count-of-rows-to-get-an-average/m-p/924171#M9237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-06T15:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sum the count of rows to get an average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-the-count-of-rows-to-get-an-average/m-p/924181#M9238</link>
      <description>&lt;P&gt;Thats a good solution, my main issue is the weeks are going to be growing every week, its not going to always be just 6 weeks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With your method will i have to go in and update the measure every time a new weeks worth of data is added?&lt;/P&gt;&lt;P&gt;Also, will the average be dynamic if i were to use a slicer and look at weeks 2-4 or weeks 1-7?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 15:40:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-the-count-of-rows-to-get-an-average/m-p/924181#M9238</guid>
      <dc:creator>Shane86</dc:creator>
      <dc:date>2020-02-06T15:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sum the count of rows to get an average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-the-count-of-rows-to-get-an-average/m-p/924211#M9241</link>
      <description>&lt;P&gt;in that case you need to pivot your table and take column in row and count the number of values per name.&lt;/P&gt;&lt;P&gt;So that it will be dynamic and you do not need to do manual changes everytime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;BR /&gt;Pravin Wattamwar&lt;BR /&gt;&lt;A href="http://www.linkedin.com/in/pravin-p-wattamwar" target="_blank"&gt;www.linkedin.com/in/pravin-p-wattamwar&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If I resolve your problem Mark it as a solution and give kudos.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 16:10:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-the-count-of-rows-to-get-an-average/m-p/924211#M9241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-06T16:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum the count of rows to get an average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-the-count-of-rows-to-get-an-average/m-p/924219#M9244</link>
      <description>&lt;P&gt;Understood, i just dont know how to do that. is that with a measure? or strictly just within the pivot? ive tried to do get the avearge within the pivot but it averages all the columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again for all your help with this!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 16:15:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-the-count-of-rows-to-get-an-average/m-p/924219#M9244</guid>
      <dc:creator>Shane86</dc:creator>
      <dc:date>2020-02-06T16:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sum the count of rows to get an average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-the-count-of-rows-to-get-an-average/m-p/924326#M9250</link>
      <description>&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/DAX-Unpivot/td-p/574832" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/DAX-Unpivot/td-p/574832&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Check this article or simple unpivot your column to attribute value pair.&lt;BR /&gt;&lt;BR /&gt;Then your table will be like&lt;BR /&gt;Name attribute value&lt;BR /&gt;Attribute contain all column row and row and value contains corresponding value.&lt;BR /&gt;&lt;BR /&gt;Then you to do is&lt;BR /&gt;&lt;BR /&gt;New measure=Calculate (divide(sum(table[attribute]),count(table[attribute])),allexcept(table,table[name]))&lt;BR /&gt;&lt;BR /&gt;If it resolves your problem mark it as a solution and give Kudos.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Feb 2020 17:51:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-the-count-of-rows-to-get-an-average/m-p/924326#M9250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-06T17:51:33Z</dc:date>
    </item>
  </channel>
</rss>

