<?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: Needing help with New measure using date range in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Needing-help-with-New-measure-using-date-range/m-p/2872783#M92778</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="463640" data-lia-user-login="KeyFMSPM" class="lia-mention lia-mention-user"&gt;KeyFMSPM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are myriads of questions on this forum related to your problem or even straight answers to it. There's a Search box in the upper right corner of the page. Please make use of it. On top of that, I'd strongly suggest that you read this first:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-Get-Your-Question-Answered-Quickly/td-p/1626726" target="_blank"&gt;How to Get Your Question Answered Quickly - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will seriously help you obtain good and quick solutions.&lt;/P&gt;</description>
    <pubDate>Sun, 30 Oct 2022 08:00:04 GMT</pubDate>
    <dc:creator>daXtreme</dc:creator>
    <dc:date>2022-10-30T08:00:04Z</dc:date>
    <item>
      <title>Needing help with New measure using date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Needing-help-with-New-measure-using-date-range/m-p/2871576#M92677</link>
      <description>&lt;P&gt;I struggle with DAX big time and I've been struggling with trying to create a new measure that establishes the number of active users based on a "Hire date" and "Termination date".&amp;nbsp; What DAX function can I use to find active employee count&amp;nbsp; if I only have hire and term dates?&amp;nbsp; &amp;nbsp;I am assuming that once I have this measure, I can use a slicer, for a specific period in time, and have an accurate headcount on said date.&amp;nbsp; Any help is appreciated.&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>Fri, 28 Oct 2022 18:28:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Needing-help-with-New-measure-using-date-range/m-p/2871576#M92677</guid>
      <dc:creator>KeyFMSPM</dc:creator>
      <dc:date>2022-10-28T18:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Needing help with New measure using date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Needing-help-with-New-measure-using-date-range/m-p/2871901#M92718</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="463640" data-lia-user-login="KeyFMSPM" class="lia-mention lia-mention-user"&gt;KeyFMSPM&lt;/a&gt; , refer to my blog or video. Check the attached files &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI: HR Analytics - Employees as on Date: &lt;A href="https://youtu.be/e6Y-l_JtCq4" target="_blank"&gt;https://youtu.be/e6Y-l_JtCq4&lt;/A&gt; &lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 03:13:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Needing-help-with-New-measure-using-date-range/m-p/2871901#M92718</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-10-29T03:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Needing help with New measure using date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Needing-help-with-New-measure-using-date-range/m-p/2872783#M92778</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="463640" data-lia-user-login="KeyFMSPM" class="lia-mention lia-mention-user"&gt;KeyFMSPM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are myriads of questions on this forum related to your problem or even straight answers to it. There's a Search box in the upper right corner of the page. Please make use of it. On top of that, I'd strongly suggest that you read this first:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-Get-Your-Question-Answered-Quickly/td-p/1626726" target="_blank"&gt;How to Get Your Question Answered Quickly - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will seriously help you obtain good and quick solutions.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 08:00:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Needing-help-with-New-measure-using-date-range/m-p/2872783#M92778</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-10-30T08:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Needing help with New measure using date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Needing-help-with-New-measure-using-date-range/m-p/2873612#M92816</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="463640" data-lia-user-login="KeyFMSPM" class="lia-mention lia-mention-user"&gt;KeyFMSPM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;BR /&gt;Sample data:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Create a new calendar table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date = CALENDAR(MIN('Table'[Hire date]),TODAY())&lt;/LI-CODE&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
CALCULATE (
    COUNT ( 'Table'[Employee] ),
    FILTER ( ALL ( 'Table' ), [Termination date] = BLANK () )
)
    + CALCULATE (
        COUNT ( 'Table'[Employee] ),
        FILTER (
            ALL ( 'Table' ),
            [Hire date] &amp;gt;= MIN ( 'Date'[Date] )
                &amp;amp;&amp;amp; [Termination date] &amp;lt;= MAX ( 'Date'[Date] )
                &amp;amp;&amp;amp; [Termination date] &amp;lt;&amp;gt; BLANK ()
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please refer to the attachment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 02:58:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Needing-help-with-New-measure-using-date-range/m-p/2873612#M92816</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-10-31T02:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Needing help with New measure using date range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Needing-help-with-New-measure-using-date-range/m-p/2874857#M92884</link>
      <description>&lt;P&gt;This did the trick!&amp;nbsp; Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 14:47:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Needing-help-with-New-measure-using-date-range/m-p/2874857#M92884</guid>
      <dc:creator>KeyFMSPM</dc:creator>
      <dc:date>2022-10-31T14:47:58Z</dc:date>
    </item>
  </channel>
</rss>

