<?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: Divide a value by Distinct Count of Employees in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-Distinct-Count-of-Employees/m-p/3338186#M125215</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="563915" data-lia-user-login="BIlix" class="lia-mention lia-mention-user"&gt;BIlix&lt;/a&gt;&amp;nbsp;for distinctcount of employees usually&amp;nbsp;&lt;SPAN&gt;Distinctcount(FactTable[EmployeeID]) should be fine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try&amp;nbsp;CountofEmployees =&amp;nbsp;Distinctcount(FactTable[EmployeeID])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did I answer your question? Mark my post as a solution! Kudos Appreciated!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2023 09:00:14 GMT</pubDate>
    <dc:creator>some_bih</dc:creator>
    <dc:date>2023-07-19T09:00:14Z</dc:date>
    <item>
      <title>Divide a value by Distinct Count of Employees</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-Distinct-Count-of-Employees/m-p/3336671#M125147</link>
      <description>&lt;P&gt;Hello Community,&lt;BR /&gt;&lt;BR /&gt;I have a measure which Calculates the DistinctCount of employees who worked in&amp;nbsp; a Project.&lt;BR /&gt;&lt;BR /&gt;I need to divide a measure with working Hours, by this distinct count. I need the result for further calculation. The current Problem is, that in the Employee Context, the Count does not show the total amount of employees.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;750 Working Hours, DistinctCount Result is 3 Employees -&amp;gt; 250 Hours per Employee&lt;BR /&gt;&lt;BR /&gt;But on the Employee Level its 750 Working Hours, Distinct Count Result is 1 Employee.&amp;nbsp; -&amp;gt; 750 Hours per Employee&lt;BR /&gt;&lt;BR /&gt;I used ALL and also ALLEXCEPT but did not manage to get a proper result.&lt;BR /&gt;&lt;BR /&gt;VAR CountofEmployees = Calculate (&amp;nbsp;&lt;BR /&gt;Distinctcount(FactTable[EmployeeID]),&lt;BR /&gt;ALL(FactTable[EmployeeID],&lt;BR /&gt;FILTER(FactTable, Related(DimProject[ID]) = 1))&lt;BR /&gt;VAR Calculation = DIVIDE([Working Hour MEasure], CountOfEmployees)&lt;BR /&gt;RETURN&lt;BR /&gt;CALC&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Appreciate any help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 14:07:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-Distinct-Count-of-Employees/m-p/3336671#M125147</guid>
      <dc:creator>BIlix</dc:creator>
      <dc:date>2023-07-18T14:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a value by Distinct Count of Employees</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-Distinct-Count-of-Employees/m-p/3338186#M125215</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="563915" data-lia-user-login="BIlix" class="lia-mention lia-mention-user"&gt;BIlix&lt;/a&gt;&amp;nbsp;for distinctcount of employees usually&amp;nbsp;&lt;SPAN&gt;Distinctcount(FactTable[EmployeeID]) should be fine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try&amp;nbsp;CountofEmployees =&amp;nbsp;Distinctcount(FactTable[EmployeeID])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did I answer your question? Mark my post as a solution! Kudos Appreciated!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 09:00:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-a-value-by-Distinct-Count-of-Employees/m-p/3338186#M125215</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-07-19T09:00:14Z</dc:date>
    </item>
  </channel>
</rss>

