<?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: Formula for Active Contacts Measure - Newbie help! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-for-Active-Contacts-Measure-Newbie-help/m-p/2394917#M62439</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , check this this very similar to active employee in this blog&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this does not help&lt;BR /&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2022 10:22:19 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-03-15T10:22:19Z</dc:date>
    <item>
      <title>Formula for Active Contacts Measure - Newbie help!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-for-Active-Contacts-Measure-Newbie-help/m-p/2394835#M62432</link>
      <description>&lt;P&gt;Hi all, I'm fairly new to PowerBI, but after searching through the internet i haven't been able to find the solution to my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help with my DAX formula for a measure of active contacts in our system.&amp;nbsp; The formula I was given by a colleague isn't working, and I can't seem to find out why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Active Contacts (Accum) =&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;COUNT('CE vwContact'[CreatedOn]),&lt;/P&gt;&lt;P&gt;IF('CE vwContact'[CreatedOn] &amp;lt;= MAX('BI vwCalendar'[Date]),&lt;/P&gt;&lt;P&gt;AND('CE vwContact'[Rics_LapsedDate]=BLANK&lt;/P&gt;&lt;P&gt;)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After searching around and looking at other ways to doing it, I've arrived at the following, but PBI is saying there's an error in line 3, but I don't know why:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Active Contacts (Accum) = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'CE vwContact'[Rics_contactno]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURNIF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'CE vwContact'&lt;/SPAN&gt;&lt;SPAN&gt;[CreatedOn]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;() &lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;'CE vwContact'&lt;/SPAN&gt;&lt;SPAN&gt;[Rics_LapsedDate]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;())))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can anyone help me with it?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Cheers!!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DaveH&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Mar 2022 09:51:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-for-Active-Contacts-Measure-Newbie-help/m-p/2394835#M62432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-15T09:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Formula for Active Contacts Measure - Newbie help!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-for-Active-Contacts-Measure-Newbie-help/m-p/2394917#M62439</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , check this this very similar to active employee in this blog&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this does not help&lt;BR /&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 10:22:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-for-Active-Contacts-Measure-Newbie-help/m-p/2394917#M62439</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-15T10:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Formula for Active Contacts Measure - Newbie help!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-for-Active-Contacts-Measure-Newbie-help/m-p/2402387#M62947</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Active Contacts (Accum) =
CALCULATE(DISTINCTCOUNT('CE vwContact'[Rics_contactno]),
FILTER(ALL('CE vwContact'),'CE vwContact'[CreatedOn]&amp;gt;=TODAY()&amp;amp;&amp;amp;'CE vwContact'[Rics_LapsedDate]&amp;lt;=TODAY()))&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 06:31:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-for-Active-Contacts-Measure-Newbie-help/m-p/2402387#M62947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-18T06:31:41Z</dc:date>
    </item>
  </channel>
</rss>

