<?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: How to Determine New Client Accounts This Year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Determine-New-Client-Accounts-This-Year/m-p/2374004#M61047</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , We call account new when we have done a placement this year and no placement before that ? or based on account creation date ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using a date or year table&lt;/P&gt;
&lt;P&gt;//Only year vs Year, not a level below &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This Year = CALCULATE(placement[account id]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))&lt;BR /&gt;Last Year = CALCULATE(placement[account id]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for below year leve&lt;/P&gt;
&lt;P&gt;this year = count(placement[account id])&lt;/P&gt;
&lt;P&gt;last year&amp;nbsp; = CALCULATE(placement[account id])dateadd('Date'[Date],-1,Year))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new = countx(values(account[account id]), if(not(isblank([this year])) &amp;amp;&amp;amp; isbalnk([last year]) , [account id], blank()) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer&lt;/P&gt;
&lt;P&gt;Customer Retention Part 5: LTD Vs Period Retention&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-5-LTD-and-PeriodYoY-Retention-is-only/ba-p/2114497" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-5-LTD-and-PeriodYoY-Retention-is-only/ba-p/2114497&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Customer Retention Part 1:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529&lt;/A&gt;&lt;BR /&gt;Customer Retention Part 2: Period over Period Retention :&lt;A href="https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retention/ba-p/1377458" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retention/ba-p/1377458&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 03:22:50 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-03-04T03:22:50Z</dc:date>
    <item>
      <title>How to Determine New Client Accounts This Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Determine-New-Client-Accounts-This-Year/m-p/2373764#M61031</link>
      <description>&lt;P&gt;I am trying to come up with a count of new Accounts (or clients) we have serviced this year. I would like it to be dynamic, so that when we roll over to 2023, the number resets to zero.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables in this problem: an Accounts table (where my clients are stored) and a Placements table (a fact table of services we have provided, at the transaction level). Snippet of my data model:&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;Ultimately, I need to look into the Placements table and find placements that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;were done for an Account for the very first time, and&lt;/LI&gt;&lt;LI&gt;done this year&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I would like to be able to both count the number of Accounts where we did placements for this first time, AS WELL AS list those Accounts in a visualization.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm in over my head on this, DAX-wise, so if I'm missing some information here, let me know and I'll be happy to oblige. I am hopig this is relatively simple, but we'll see. Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 23:30:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Determine-New-Client-Accounts-This-Year/m-p/2373764#M61031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-03T23:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Determine New Client Accounts This Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Determine-New-Client-Accounts-This-Year/m-p/2373777#M61033</link>
      <description>&lt;P&gt;One correction here...the Accounts table contains clients AND prospects, so a company could be in the Accounts table without ever appearing in the Placements table.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 23:47:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Determine-New-Client-Accounts-This-Year/m-p/2373777#M61033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-03T23:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Determine New Client Accounts This Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Determine-New-Client-Accounts-This-Year/m-p/2374004#M61047</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , We call account new when we have done a placement this year and no placement before that ? or based on account creation date ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using a date or year table&lt;/P&gt;
&lt;P&gt;//Only year vs Year, not a level below &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This Year = CALCULATE(placement[account id]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))&lt;BR /&gt;Last Year = CALCULATE(placement[account id]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for below year leve&lt;/P&gt;
&lt;P&gt;this year = count(placement[account id])&lt;/P&gt;
&lt;P&gt;last year&amp;nbsp; = CALCULATE(placement[account id])dateadd('Date'[Date],-1,Year))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new = countx(values(account[account id]), if(not(isblank([this year])) &amp;amp;&amp;amp; isbalnk([last year]) , [account id], blank()) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer&lt;/P&gt;
&lt;P&gt;Customer Retention Part 5: LTD Vs Period Retention&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-5-LTD-and-PeriodYoY-Retention-is-only/ba-p/2114497" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-5-LTD-and-PeriodYoY-Retention-is-only/ba-p/2114497&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Customer Retention Part 1:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/ba-p/1361529&lt;/A&gt;&lt;BR /&gt;Customer Retention Part 2: Period over Period Retention :&lt;A href="https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retention/ba-p/1377458" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retention/ba-p/1377458&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 03:22:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Determine-New-Client-Accounts-This-Year/m-p/2374004#M61047</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-04T03:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Determine New Client Accounts This Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Determine-New-Client-Accounts-This-Year/m-p/2375299#M61133</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;I found a solution, but I had to look at the data in a completely different way (and in an entirely different table than what I posted above).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did try your This Year measure, but it kept saying that there was a syntax error that I could not resolve. Just a heads up there. Thank you for the response...I've seen you on here a lot and you are always very knowledgable!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 15:29:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Determine-New-Client-Accounts-This-Year/m-p/2375299#M61133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-04T15:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Determine New Client Accounts This Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Determine-New-Client-Accounts-This-Year/m-p/2375304#M61134</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Thanks for the update. Sorry for the mistake, I forget to put aggregation &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This Year = CALCULATE(count(placement[account id]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 15:32:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Determine-New-Client-Accounts-This-Year/m-p/2375304#M61134</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-04T15:32:48Z</dc:date>
    </item>
  </channel>
</rss>

