<?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: Seeking DAX Help for Unique Employee Headcount Over Time with Dynamic Status Filtering in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Seeking-DAX-Help-for-Unique-Employee-Headcount-Over-Time-with/m-p/3671199#M142415</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="358999" data-lia-user-login="d_rohlfs" class="lia-mention lia-mention-user"&gt;d_rohlfs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for coming back quickly !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this error message in my visual&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2024 19:45:47 GMT</pubDate>
    <dc:creator>alexflo188</dc:creator>
    <dc:date>2024-01-31T19:45:47Z</dc:date>
    <item>
      <title>Seeking DAX Help for Unique Employee Headcount Over Time with Dynamic Status Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Seeking-DAX-Help-for-Unique-Employee-Headcount-Over-Time-with/m-p/3671120#M142413</link>
      <description>&lt;P&gt;Hello Power BI Enthusiasts!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I trust you're all doing wonderfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm in a bit of a bind with a DAX measure I'm trying to construct in Power BI, and I could really use your collective expertise. My goal is to create a measure that counts unique employee records based on their employee number and filters these counts by their employment status using a related status dimension. This measure is intended to be dynamic, reflecting changes over time, leveraging a unique timestamp that marks each status change for the employees.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Despite my efforts, I'm encountering an issue with duplicates in the data,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the DAX I'm using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test_Headcount_Dimstatus =&lt;BR /&gt;VAR __selecteddate = MAX(Dim_calendar_start[Date])&lt;BR /&gt;VAR LatestEmployeeRecord =&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;'EMPLOYEES - Ceridian modified',&lt;BR /&gt;'EMPLOYEES - Ceridian modified'[EMPLOYEE_EMPLOYEEID],&lt;BR /&gt;"LatestTimestamp", MAX('EMPLOYEES - Ceridian modified'[EMPLOYEEEMPLOYMENTSTATUS_CREATEDTIMESTAMP])&lt;BR /&gt;)&lt;BR /&gt;VAR FilteredEmployeeRecord =&lt;BR /&gt;FILTER(&lt;BR /&gt;LatestEmployeeRecord,&lt;BR /&gt;[LatestTimestamp] &amp;lt;= __selecteddate&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;COUNTROWS(FilteredEmployeeRecord)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Accompanying this post is a snapshot of my model for reference.&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;&lt;P&gt;I've been grappling with this problem for over a month, and it's quite frustrating. Does anyone have any insights into what might be going wrong? Any suggestions or guidance would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you for taking the time to help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 14:02:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Seeking-DAX-Help-for-Unique-Employee-Headcount-Over-Time-with/m-p/3671120#M142413</guid>
      <dc:creator>alexflo188</dc:creator>
      <dc:date>2024-02-01T14:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Seeking DAX Help for Unique Employee Headcount Over Time with Dynamic Status Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Seeking-DAX-Help-for-Unique-Employee-Headcount-Over-Time-with/m-p/3671178#M142414</link>
      <description>&lt;P&gt;Hey AlexFlo188,&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;Test_Headcount_Dimstatus 2 =&lt;BR /&gt;VAR _SelectedDate = MAX(Dim_calendar_start[Date])&lt;BR /&gt;VAR _LatestEmployeeRecord =&lt;BR /&gt;SummarizeColumns(&lt;BR /&gt;'EMPLOYEES - Ceridian modified'[EMPLOYEE_EMPLOYEEID],&lt;BR /&gt;"LatestTimestamp", MAX('EMPLOYEES - Ceridian modified'[EMPLOYEEEMPLOYMENTSTATUS_CREATEDTIMESTAMP])&lt;BR /&gt;)&lt;BR /&gt;VAR FilteredEmployeeRecord =&lt;BR /&gt;FILTER(&lt;BR /&gt;_LatestEmployeeRecord,&lt;BR /&gt;[LatestTimestamp] &amp;lt;= _SelectedDate&lt;BR /&gt;)&lt;BR /&gt;VAR _Result =&lt;BR /&gt;COUNTROWS(&lt;BR /&gt;FilteredEmployeeRecord&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;_Result&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 19:25:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Seeking-DAX-Help-for-Unique-Employee-Headcount-Over-Time-with/m-p/3671178#M142414</guid>
      <dc:creator>d_rohlfs</dc:creator>
      <dc:date>2024-01-31T19:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Seeking DAX Help for Unique Employee Headcount Over Time with Dynamic Status Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Seeking-DAX-Help-for-Unique-Employee-Headcount-Over-Time-with/m-p/3671199#M142415</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="358999" data-lia-user-login="d_rohlfs" class="lia-mention lia-mention-user"&gt;d_rohlfs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for coming back quickly !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this error message in my visual&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 19:45:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Seeking-DAX-Help-for-Unique-Employee-Headcount-Over-Time-with/m-p/3671199#M142415</guid>
      <dc:creator>alexflo188</dc:creator>
      <dc:date>2024-01-31T19:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Seeking DAX Help for Unique Employee Headcount Over Time with Dynamic Status Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Seeking-DAX-Help-for-Unique-Employee-Headcount-Over-Time-with/m-p/3671244#M142417</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="679742" data-lia-user-login="alexflo188" class="lia-mention lia-mention-user"&gt;alexflo188&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Try just going back to your original equation and instead of doing a Countrows for your result do DISTINCTCOUNT('&lt;SPAN&gt;FilteredEmployeeRecord'[EMPLOYEE_EMPLOYEEID])&lt;BR /&gt;&lt;BR /&gt;This won't fix the table that you are making, but it should get your count correct.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 20:37:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Seeking-DAX-Help-for-Unique-Employee-Headcount-Over-Time-with/m-p/3671244#M142417</guid>
      <dc:creator>d_rohlfs</dc:creator>
      <dc:date>2024-01-31T20:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Seeking DAX Help for Unique Employee Headcount Over Time with Dynamic Status Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Seeking-DAX-Help-for-Unique-Employee-Headcount-Over-Time-with/m-p/3671248#M142418</link>
      <description>&lt;P&gt;Or you could try:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Test_Headcount_Dimstatus =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR __selecteddate = MAX(Dim_calendar_start[Date])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR LatestEmployeeRecord =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SUMMARIZE(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'EMPLOYEES - Ceridian modified',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'EMPLOYEES - Ceridian modified'[EMPLOYEE_EMPLOYEEID],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"LatestTimestamp", MAX('EMPLOYEES - Ceridian modified'[EMPLOYEEEMPLOYMENTSTATUS_CREATEDTIMESTAMP])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR FilteredEmployeeRecord1=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FILTER(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LatestEmployeeRecord,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LatestTimestamp] &amp;lt;= __selecteddate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;VAR &lt;SPAN&gt;FilteredEmployeeRecord =&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;FILTER(&lt;BR /&gt;&lt;SPAN&gt;FilteredEmployeeRecord1,&lt;BR /&gt;&lt;/SPAN&gt;DISTINCT(&lt;BR /&gt;&lt;SPAN&gt;[EMPLOYEE_EMPLOYEEID])&lt;BR /&gt;&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;COUNTROWS(FilteredEmployeeRecord)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 20:43:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Seeking-DAX-Help-for-Unique-Employee-Headcount-Over-Time-with/m-p/3671248#M142418</guid>
      <dc:creator>d_rohlfs</dc:creator>
      <dc:date>2024-01-31T20:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Seeking DAX Help for Unique Employee Headcount Over Time with Dynamic Status Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Seeking-DAX-Help-for-Unique-Employee-Headcount-Over-Time-with/m-p/3671256#M142419</link>
      <description>&lt;P&gt;I have thie error &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&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>Wed, 31 Jan 2024 20:48:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Seeking-DAX-Help-for-Unique-Employee-Headcount-Over-Time-with/m-p/3671256#M142419</guid>
      <dc:creator>alexflo188</dc:creator>
      <dc:date>2024-01-31T20:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Seeking DAX Help for Unique Employee Headcount Over Time with Dynamic Status Filtering</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Seeking-DAX-Help-for-Unique-Employee-Headcount-Over-Time-with/m-p/3673064#M142507</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="358999" data-lia-user-login="d_rohlfs" class="lia-mention lia-mention-user"&gt;d_rohlfs&lt;/a&gt;&amp;nbsp;I've read on window fonction and I think that might be somthing that work. However I'm not entirely sure how that works could you help me with this ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 14:01:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Seeking-DAX-Help-for-Unique-Employee-Headcount-Over-Time-with/m-p/3673064#M142507</guid>
      <dc:creator>alexflo188</dc:creator>
      <dc:date>2024-02-01T14:01:02Z</dc:date>
    </item>
  </channel>
</rss>

