<?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 per employee in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3595155#M138901</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625468" data-lia-user-login="T-Pan" class="lia-mention lia-mention-user"&gt;T-Pan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you post a sample of the expected output?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;LinkedIn:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2023 01:24:56 GMT</pubDate>
    <dc:creator>VahidDM</dc:creator>
    <dc:date>2023-12-21T01:24:56Z</dc:date>
    <item>
      <title>Average per employee</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3594830#M138884</link>
      <description>&lt;P&gt;I have the following dataset:&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;EmployeName&amp;nbsp; &amp;nbsp;Operations&lt;/P&gt;&lt;P&gt;1/1/23.&amp;nbsp; &amp;nbsp; A.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15&lt;/P&gt;&lt;P&gt;1/1/23.&amp;nbsp; &amp;nbsp; B.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&lt;/P&gt;&lt;P&gt;1/1/23.&amp;nbsp; &amp;nbsp; C.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For every date, i want to calculate the average operations (sum operations per date divided by the number of employess appears in the same date).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 19:49:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3594830#M138884</guid>
      <dc:creator>T-Pan</dc:creator>
      <dc:date>2023-12-20T19:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Average per employee</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3595155#M138901</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625468" data-lia-user-login="T-Pan" class="lia-mention lia-mention-user"&gt;T-Pan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you post a sample of the expected output?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;LinkedIn:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 01:24:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3595155#M138901</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2023-12-21T01:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Average per employee</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3595567#M138921</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625468" data-lia-user-login="T-Pan" class="lia-mention lia-mention-user"&gt;T-Pan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;for new column try below&lt;/P&gt;&lt;P&gt;just adjust table name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column = 
var a = 'Table (2)'[date]
var b = SUMX(FILTER('Table (2)','Table (2)'[date]=a),'Table (2)'[operation])
var c = COUNTX(FILTER('Table (2)','Table (2)'[date]=a),'Table (2)'[emp name])
return
DIVIDE(b,c)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and for measure try below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure 2 = 
var a = SUMX(FILTER(all('Table (2)'),'Table (2)'[date]=MAX('Table (2)'[date])),'Table (2)'[operation])
var b = COUNTX(FILTER(all('Table (2)'),'Table (2)'[date]=MAX('Table (2)'[date])),'Table (2)'[emp name])
RETURN
DIVIDE(a,b)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 21 Dec 2023 06:29:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3595567#M138921</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-12-21T06:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Average per employee</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3596620#M138960</link>
      <description>&lt;P&gt;This is my table, resolved by column Represents the name of employess, count of operations represents an operations, resolution date is the timestamp where the operation completed.&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The follow image is an table i have created to expalin what i want to measure&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to divide the value '17660' by the sum of last column whic represents the distinct names of employess in each date and is the follow measure : (distinct count resolved by (all activities) = distinctcount('ALL ACTIVITIES'[resolved by].))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 12:00:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3596620#M138960</guid>
      <dc:creator>T-Pan</dc:creator>
      <dc:date>2023-12-21T12:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Average per employee</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3596623#M138961</link>
      <description>&lt;P&gt;This is my table, resolved by column Represents the name of employess, count of operations represents an operations, resolution date is the timestamp where the operation completed.&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The follow image is an table i have created to expalin what i want to measure&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to divide the value '17660' by the sum of last column whic represents the distinct names of employess in each date and is the follow measure : (distinct count resolved by (all activities) = distinctcount('ALL ACTIVITIES'[resolved by].))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 12:00:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3596623#M138961</guid>
      <dc:creator>T-Pan</dc:creator>
      <dc:date>2023-12-21T12:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Average per employee</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3596715#M138967</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625468" data-lia-user-login="T-Pan" class="lia-mention lia-mention-user"&gt;T-Pan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;try below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;measure =
var a = sumx('ALL ACTIVITIES',[(distinct count resolved by (all activities)])
var b = calculate(sum('ALL ACTIVITIES'[count operation]),removefilters())
return
divide(b,a)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 21 Dec 2023 12:31:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3596715#M138967</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-12-21T12:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Average per employee</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3601063#M139147</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625468" data-lia-user-login="T-Pan" class="lia-mention lia-mention-user"&gt;T-Pan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp;distinct count resolved by (all activities) is a measure.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
Var _N1=CALCULATE(SUM('Table'[Count Operations]),ALL('Table'))
Var _table=SUMMARIZE('Table','Table'[Day],"Distinct",[distinct count resolved by (all activities )])
Var _N2=SUMX(_table,[Distinct])
RETURN
DIVIDE(_N1,_N2)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is this the result you expect?&lt;/SPAN&gt; &lt;SPAN&gt;Please see the attached document.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;EM&gt;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2023 11:03:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3601063#M139147</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-12-25T11:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Average per employee</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3606166#M139316</link>
      <description>&lt;P&gt;Yes the result is the same with the measure that i create, which is the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Average Activities per Distinct Analyst per Date =&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DIVIDE(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SUM('All Activities Table'[Count Operations]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SUMX(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES('All Activities Table'[Resolution Date Only]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALCULATE(DISTINCTCOUNT('All Activities Table'[Resolved By]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 22:00:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-per-employee/m-p/3606166#M139316</guid>
      <dc:creator>T-Pan</dc:creator>
      <dc:date>2023-12-28T22:00:01Z</dc:date>
    </item>
  </channel>
</rss>

