<?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 Get employee names from a count of employees in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-employee-names-from-a-count-of-employees/m-p/3660627#M141846</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;For now I have this formula (Measure):&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#Work Hours&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTA&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Employees&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Employees&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Employees&lt;/SPAN&gt;&lt;SPAN&gt;[WorkHours]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;45&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;&lt;BR /&gt;This is returning the number of employees that worked more than 45 hours. I need to return the list of employees (name) that worked more than 45 hours in a visual (can you suggest me something) like Table or Card. I have the column Name in the Employees table.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help/tip is welcome. If you need more information/clarification tell me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ferk&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2024 13:58:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-25T13:58:52Z</dc:date>
    <item>
      <title>Get employee names from a count of employees</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-employee-names-from-a-count-of-employees/m-p/3660627#M141846</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;For now I have this formula (Measure):&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#Work Hours&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTA&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Employees&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Employees&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Employees&lt;/SPAN&gt;&lt;SPAN&gt;[WorkHours]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;45&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;&lt;BR /&gt;This is returning the number of employees that worked more than 45 hours. I need to return the list of employees (name) that worked more than 45 hours in a visual (can you suggest me something) like Table or Card. I have the column Name in the Employees table.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help/tip is welcome. If you need more information/clarification tell me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ferk&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 13:58:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-employee-names-from-a-count-of-employees/m-p/3660627#M141846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-25T13:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get employee names from a count of employees</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-employee-names-from-a-count-of-employees/m-p/3660784#M141859</link>
      <description>&lt;P&gt;One easy thing you could do is wrap that in an IF statement and create two categories, those that work &amp;gt; 45 hours and those that don't. Then create a table with all employee names and use that measure as a filter on the table. That should only show those that worked greater than 45 hours. There are probably more elegant ways to do it, but that's the quick, dirty way I'd do it.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 15:00:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-employee-names-from-a-count-of-employees/m-p/3660784#M141859</guid>
      <dc:creator>jeewats</dc:creator>
      <dc:date>2024-01-25T15:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get employee names from a count of employees</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-employee-names-from-a-count-of-employees/m-p/3662048#M141910</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm happy to answer your questions. I suggest using the following method to filter the Work Hours&amp;gt;45 employee rows, which is very easy to do. I created a sample with the main data as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Let's create a table visualization:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;We set the Work Hours in the &lt;STRONG&gt;filters&lt;/STRONG&gt; &lt;STRONG&gt;&amp;gt;&amp;gt; show items when then values &amp;gt;&amp;gt; is greater than &amp;gt;&amp;gt; Enter 45 in the input box below &amp;gt;&amp;gt; Apply filter&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;img /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Here are the results:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The second way, we can create a slicer as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Move the slider to 45:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;This also allows filtering to be achieved. If the above solutions can help you, that's great. I've provided my sample PBIX file below.&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;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-jianpengli%40microsoft.com%7C525dd0cd521945604f6108dc1e324fc6%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638418448677101227%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=9%2BIWdybDiS9dN5PcglmdBkT%2FA%2BuC33%2F1WjkUphXW3FQ%3D&amp;amp;reserved=0" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Jianpeng Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 05:56:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-employee-names-from-a-count-of-employees/m-p/3662048#M141910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-26T05:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get employee names from a count of employees</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-employee-names-from-a-count-of-employees/m-p/3662489#M141926</link>
      <description>&lt;P&gt;Thank you for your answers&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569169" data-lia-user-login="jeewats" class="lia-mention lia-mention-user"&gt;jeewats&lt;/a&gt;!&lt;BR /&gt;&lt;BR /&gt;I found this solution:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Employees =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONCATENATEX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Employees&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Employees&lt;/SPAN&gt;&lt;SPAN&gt;[WorkHours]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;45&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Employees&lt;/SPAN&gt;&lt;SPAN&gt;[Name]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;" , "&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Jan 2024 09:47:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-employee-names-from-a-count-of-employees/m-p/3662489#M141926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-26T09:47:07Z</dc:date>
    </item>
  </channel>
</rss>

