<?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: Trying to create a simple measure of Projects per Staff numbers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-create-a-simple-measure-of-Projects-per-Staff-numbers/m-p/4384611#M174037</link>
    <description>&lt;P&gt;Thanks for the quick response, but unfortunately I have just tried the above and it produced different but still incorrect results, see table below. Although weirdly, the result for Castleford is pretty close (but none of the others are)&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;</description>
    <pubDate>Tue, 28 Jan 2025 14:55:38 GMT</pubDate>
    <dc:creator>StickyToffeePud</dc:creator>
    <dc:date>2025-01-28T14:55:38Z</dc:date>
    <item>
      <title>Trying to create a simple measure of Projects per Staff numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-create-a-simple-measure-of-Projects-per-Staff-numbers/m-p/4384303#M174021</link>
      <description>&lt;P&gt;Sorry, this is first time posting. I am a self taught PowerBI dashboard creator and I am trying to create a simple 'projects per staff number' calculation for my companies dashboard. I feel it should be easy but the numbers keep being wrong, any help would be greatly appreciated, it's been quite frustrating. Details below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Data: I have two sources of data. A Direct Query into a SQL database (DATA1)&amp;nbsp; that lists all projects, with columns for Department etc. and a spreadsheet (DATA 2) with a column for department and staff numbers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution: I want to create a new measure of projects per staff numbers (PPP) and have tried creating a new measure under the spreadsheet data source with code along the lines of:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Projects per Person (PPP) =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;VAR Depart_Project_Count =&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; COUNTAX(FILTER(DATA1[ProjectType]="PROJECT"),DATA1[Department])&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;VAR Staff_Count =&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;COUNTAX('DATA2','DATA2'[Department]) &amp;nbsp; &amp;nbsp;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;RETURN&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; ( Depart_Project_Count / Staff_Count )&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No errors are produced when I run it but gets the numbers wrong, see table belwo:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;For Glasgow the number PPP should be 3.14 ish (&lt;EM&gt;44/14&lt;/EM&gt;) no 22.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or pointers would be greatly appreciated. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 12:20:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-create-a-simple-measure-of-Projects-per-Staff-numbers/m-p/4384303#M174021</guid>
      <dc:creator>StickyToffeePud</dc:creator>
      <dc:date>2025-01-28T12:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create a simple measure of Projects per Staff numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-create-a-simple-measure-of-Projects-per-Staff-numbers/m-p/4384363#M174022</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="600229" data-lia-user-login="StickyToffeePud" class="lia-mention lia-mention-user"&gt;StickyToffeePud&lt;/a&gt;&amp;nbsp;, Please try below approach:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create below measures:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total Projects = COUNTROWS(DATA1)&lt;/P&gt;&lt;P&gt;Total Staff = SUM(DATA2[Staff Numbers])&lt;/P&gt;&lt;P&gt;Projects Per Staff =DIVIDE([Total Projects],[Total Staff],0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if it worked for you, if not please send some sample data.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 12:52:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-create-a-simple-measure-of-Projects-per-Staff-numbers/m-p/4384363#M174022</guid>
      <dc:creator>Azadsingh</dc:creator>
      <dc:date>2025-01-28T12:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create a simple measure of Projects per Staff numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-create-a-simple-measure-of-Projects-per-Staff-numbers/m-p/4384438#M174027</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="600229" data-lia-user-login="StickyToffeePud" class="lia-mention lia-mention-user"&gt;StickyToffeePud&lt;/a&gt;&amp;nbsp;, Try using DAX&lt;BR /&gt;Projects per Person (PPP) =&lt;BR /&gt;VAR Depart_Project_Count =&lt;BR /&gt;CALCULATE(COUNTROWS(DATA1), DATA1[ProjectType] = "PROJECT")&lt;BR /&gt;VAR Staff_Count =&lt;BR /&gt;CALCULATE(SUM(DATA2[StaffNumber]))&lt;BR /&gt;RETURN&lt;BR /&gt;DIVIDE(Depart_Project_Count, Staff_Count)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 13:28:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-create-a-simple-measure-of-Projects-per-Staff-numbers/m-p/4384438#M174027</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-01-28T13:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create a simple measure of Projects per Staff numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-create-a-simple-measure-of-Projects-per-Staff-numbers/m-p/4384611#M174037</link>
      <description>&lt;P&gt;Thanks for the quick response, but unfortunately I have just tried the above and it produced different but still incorrect results, see table below. Although weirdly, the result for Castleford is pretty close (but none of the others are)&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;</description>
      <pubDate>Tue, 28 Jan 2025 14:55:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-create-a-simple-measure-of-Projects-per-Staff-numbers/m-p/4384611#M174037</guid>
      <dc:creator>StickyToffeePud</dc:creator>
      <dc:date>2025-01-28T14:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to create a simple measure of Projects per Staff numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-create-a-simple-measure-of-Projects-per-Staff-numbers/m-p/4384678#M174039</link>
      <description>&lt;P&gt;Hi, Thanks for the quick response. I did try this but it just gave blanks for the answer. Here is a screen grab of Data 1:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And here is a screen grab of Data 2&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need anything else, thanks again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 15:23:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-create-a-simple-measure-of-Projects-per-Staff-numbers/m-p/4384678#M174039</guid>
      <dc:creator>StickyToffeePud</dc:creator>
      <dc:date>2025-01-28T15:23:05Z</dc:date>
    </item>
  </channel>
</rss>

