<?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: Calculate the percentage of employees in a specific branch who have completed courses in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-percentage-of-employees-in-a-specific-branch-who/m-p/3193894#M115891</link>
    <description>&lt;P&gt;Woohoo!&amp;nbsp; This worked.&amp;nbsp; Turns out there were duplicates in the MyGCHR report that shouldn't have been there and once I removed them and changed the cardinality, it all worked great!&amp;nbsp; Thank you so much for all your help with this&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2023 14:18:32 GMT</pubDate>
    <dc:creator>DeniseDL</dc:creator>
    <dc:date>2023-04-18T14:18:32Z</dc:date>
    <item>
      <title>Calculate the percentage of employees in a specific branch who have completed courses</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-percentage-of-employees-in-a-specific-branch-who/m-p/3186614#M115394</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;HELP!!&lt;/P&gt;&lt;P&gt;I am fairly new to Power BI and I am having trouble figuring out how to create the correct measure for what I need to show.&lt;/P&gt;&lt;P&gt;I need &lt;FONT color="#000000"&gt;&lt;SPAN&gt;to show the percentage of employees in the region &amp;amp; branch who have completed courses and then show who those people are.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I have:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CSPS School table&lt;/STRONG&gt; - shows all completed courses and which employees have completed them&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MyGCHR HR Table&lt;/STRONG&gt; - shows all employees in the department by region and branch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have done is created 3 measures:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Employees = &lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'MyGCHR report'&lt;/SPAN&gt;&lt;SPAN&gt;[Full Name]&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Courses Completed = &lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'CSPS Report'&lt;/SPAN&gt;&lt;SPAN&gt;[Transcript Status]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;% Completed = &lt;/SPAN&gt;&lt;SPAN&gt;[Total Employees]&lt;/SPAN&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;SPAN&gt;[Total Completed]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The results that I'm getting are almost correct.&amp;nbsp; I'm showing:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Region (correct)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Branch (correct)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # of employees who have completed courses (correct)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;List of Courses each employee has taken&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;The percentages are incorrect - this is where I'm struggling - there are way more than 8 employees in the P&amp;amp;C branch so the percentage is obviously incorrect.&amp;nbsp; I want to show the percentage of employees in the region &amp;amp; branch who have completed courses and then show who those people are.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any advice would be great!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Apr 2023 15:05:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-percentage-of-employees-in-a-specific-branch-who/m-p/3186614#M115394</guid>
      <dc:creator>DeniseDL</dc:creator>
      <dc:date>2023-04-13T15:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the percentage of employees in a specific branch who have completed courses</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-percentage-of-employees-in-a-specific-branch-who/m-p/3186743#M115404</link>
      <description>&lt;P&gt;Assuming that employees can complete more than one course, I think the measure for the number of employees who have completed a course should be&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Employees completed courses =
DISTINCTCOUNT ( 'CSPS Report'[Employee ID] )
&lt;/LI-CODE&gt;
&lt;P&gt;You can then use that measure in your calculation of the %&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 15:48:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-percentage-of-employees-in-a-specific-branch-who/m-p/3186743#M115404</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-13T15:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the percentage of employees in a specific branch who have completed courses</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-percentage-of-employees-in-a-specific-branch-who/m-p/3191399#M115753</link>
      <description>&lt;P&gt;Thank you for the reply.&amp;nbsp; However, I seem to be getting a weird result and I can't figure out why.&lt;/P&gt;&lt;P&gt;When I have no date filter applied, the percentage comes out correctly (Total employees who have completed courses / Total employees). Figures marked in yellow.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;However, when I apply the date filter to reflect our fiscal year of April 1/22 - Mar 31/23, the percentage isn't correct.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;7900 / 16036 doesn't add up to 109.87%&lt;/P&gt;&lt;P&gt;The measures I am using are:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total employees - All = &lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'MyGCHR report'&lt;/SPAN&gt;&lt;SPAN&gt;[EmployeeID]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total employees who completed courses = &lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'CSPS Report'&lt;/SPAN&gt;&lt;SPAN&gt;[Empoyee ID]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;% Employees completed courses =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[Total employees who completed courses]&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;[Total employees - All]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure it's something silly that I'm missing.&amp;nbsp; If anyone has any suggestions, I would love to hear them as I am stuck on this one thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 11:28:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-percentage-of-employees-in-a-specific-branch-who/m-p/3191399#M115753</guid>
      <dc:creator>DeniseDL</dc:creator>
      <dc:date>2023-04-17T11:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the percentage of employees in a specific branch who have completed courses</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-percentage-of-employees-in-a-specific-branch-who/m-p/3191559#M115760</link>
      <description>&lt;P&gt;Is there a relationship between your date table and 'MyGCHR report' ? If there is, check for blank values in the 'MyGCHR report' column.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 12:59:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-percentage-of-employees-in-a-specific-branch-who/m-p/3191559#M115760</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-17T12:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the percentage of employees in a specific branch who have completed courses</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-percentage-of-employees-in-a-specific-branch-who/m-p/3193448#M115864</link>
      <description>&lt;P&gt;No there isn't a relationship between the date table and the MyGCHR report.&amp;nbsp; I also made sure there were no blanks in the CSPS report.&amp;nbsp; It seems to work fine until I change the date.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 11:08:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-percentage-of-employees-in-a-specific-branch-who/m-p/3193448#M115864</guid>
      <dc:creator>DeniseDL</dc:creator>
      <dc:date>2023-04-18T11:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the percentage of employees in a specific branch who have completed courses</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-percentage-of-employees-in-a-specific-branch-who/m-p/3193677#M115875</link>
      <description>&lt;P&gt;Can you change the relationship between CSPS and MyGCHR Report to single direction, so that CSPS filters MyGCHR Report and not the other way around ?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 12:41:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-percentage-of-employees-in-a-specific-branch-who/m-p/3193677#M115875</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-18T12:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the percentage of employees in a specific branch who have completed courses</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-percentage-of-employees-in-a-specific-branch-who/m-p/3193894#M115891</link>
      <description>&lt;P&gt;Woohoo!&amp;nbsp; This worked.&amp;nbsp; Turns out there were duplicates in the MyGCHR report that shouldn't have been there and once I removed them and changed the cardinality, it all worked great!&amp;nbsp; Thank you so much for all your help with this&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 14:18:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-percentage-of-employees-in-a-specific-branch-who/m-p/3193894#M115891</guid>
      <dc:creator>DeniseDL</dc:creator>
      <dc:date>2023-04-18T14:18:32Z</dc:date>
    </item>
  </channel>
</rss>

