<?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 Finding Monthly Unique New Customers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-Monthly-Unique-New-Customers/m-p/2261643#M54709</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt;&amp;nbsp;EOM reporting for December and working from one master spreadsheet where new customers are inputted with new orders. The same customer might have ordered something in June and November so they wouldn't be a new customer but I'm trying to get to a number of how many net-new customers joined in December.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the steps I use to find unique customer additions each month in excel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Isolate all December (12/1/2021 - 12/31/2021) customers that were entered into the spreadsheet and dedupe that list to get unique customer ids (example yeild of 100 unique customers)&lt;/P&gt;&lt;P&gt;2. Isolate all customers that were entered into the spreadsheet earlier than December (1/1/2021 - 11/30/2021) and dedupe that list to get unique customer ids (example yeild of 3000 unique customers)&lt;/P&gt;&lt;P&gt;3. Vlookup step 1 against step 2&lt;/P&gt;&lt;P&gt;4. If vlookup doesn't produce any matches then = New Customer&lt;/P&gt;&lt;P&gt;5. If vlookup produces matches then = Existing Customer (doesn't need to be counted)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'd like all existing date filter drop-downs to be able to still change these numbers and graphs as they do now with other visuals in the PBI report. So, if I were to filter for February or August it would give me those month's unique customers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone already put together anything like this before. I've had some success with doing easy DAX measures in PBI, but this one is a mystery to me. Any help would be appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Dec 2021 22:50:44 GMT</pubDate>
    <dc:creator>craigology</dc:creator>
    <dc:date>2021-12-30T22:50:44Z</dc:date>
    <item>
      <title>Finding Monthly Unique New Customers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-Monthly-Unique-New-Customers/m-p/2261643#M54709</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt;&amp;nbsp;EOM reporting for December and working from one master spreadsheet where new customers are inputted with new orders. The same customer might have ordered something in June and November so they wouldn't be a new customer but I'm trying to get to a number of how many net-new customers joined in December.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the steps I use to find unique customer additions each month in excel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Isolate all December (12/1/2021 - 12/31/2021) customers that were entered into the spreadsheet and dedupe that list to get unique customer ids (example yeild of 100 unique customers)&lt;/P&gt;&lt;P&gt;2. Isolate all customers that were entered into the spreadsheet earlier than December (1/1/2021 - 11/30/2021) and dedupe that list to get unique customer ids (example yeild of 3000 unique customers)&lt;/P&gt;&lt;P&gt;3. Vlookup step 1 against step 2&lt;/P&gt;&lt;P&gt;4. If vlookup doesn't produce any matches then = New Customer&lt;/P&gt;&lt;P&gt;5. If vlookup produces matches then = Existing Customer (doesn't need to be counted)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'd like all existing date filter drop-downs to be able to still change these numbers and graphs as they do now with other visuals in the PBI report. So, if I were to filter for February or August it would give me those month's unique customers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone already put together anything like this before. I've had some success with doing easy DAX measures in PBI, but this one is a mystery to me. Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 22:50:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-Monthly-Unique-New-Customers/m-p/2261643#M54709</guid>
      <dc:creator>craigology</dc:creator>
      <dc:date>2021-12-30T22:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Monthly Unique New Customers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-Monthly-Unique-New-Customers/m-p/2261716#M54711</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="348881" data-lia-user-login="craigology" class="lia-mention lia-mention-user"&gt;craigology&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend you check out the New Customers pattern on DAX Patterns:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.daxpatterns.com/new-and-returning-customers/" target="_blank"&gt;https://www.daxpatterns.com/new-and-returning-customers/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When writing your measures, you need to choose whether the calculation should be relative/absolute - described on the above page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post back if you need help adapting to your specific data model &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Owen&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 02:03:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-Monthly-Unique-New-Customers/m-p/2261716#M54711</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2021-12-31T02:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Monthly Unique New Customers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-Monthly-Unique-New-Customers/m-p/2261933#M54719</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="348881" data-lia-user-login="craigology" class="lia-mention lia-mention-user"&gt;craigology&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is quite simple in Power BI&lt;BR /&gt;&lt;BR /&gt;1. Created a table called "Sample" to replicate your dataset. You can replace the col/table names with your dataset.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Create a calculated column "Month Index" to keep track of month passed from a reference date (jan 2021 in my case).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Month Index = DATEDIFF(DATE(2020,1,1), 'Sample'[Input Date ],MONTH)&lt;/LI-CODE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Create another calculated colmumn to check if users are Old/new&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Customer Profile = 
VAR customerName = 'Sample'[Customer Name]
VAR monthIndex = 'Sample'[Month Index] 
VAR previousCount = CALCULATE(countrows('Sample'), filter(all('Sample'), 'Sample'[Customer Name] = customerName &amp;amp;&amp;amp; 'Sample'[Month Index] &amp;lt; monthIndex))
RETURN

IF( previousCount &amp;gt; 0, "Old Customer", "New Customer")&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Create a label visual and add the &lt;STRONG&gt;"Distinct Count" of Customer Name column&lt;/STRONG&gt;. Also add an &lt;STRONG&gt;additional filter on the visual to only count distinct count for "Customer Profile" to be "New Customer"&lt;/STRONG&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thats It! You can filter the table now using month filter (or any other filter) to see the uniqe count between the specified time span.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If this helped you, mark this as the solution to help others refer.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Hanson&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 07:03:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-Monthly-Unique-New-Customers/m-p/2261933#M54719</guid>
      <dc:creator>Hanson97</dc:creator>
      <dc:date>2021-12-31T07:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Monthly Unique New Customers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-Monthly-Unique-New-Customers/m-p/2276535#M55580</link>
      <description>&lt;P&gt;Thanks so much for this Hanson97. You saved me! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 03:03:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-Monthly-Unique-New-Customers/m-p/2276535#M55580</guid>
      <dc:creator>craigology</dc:creator>
      <dc:date>2022-01-11T03:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Monthly Unique New Customers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-Monthly-Unique-New-Customers/m-p/2276537#M55581</link>
      <description>&lt;P&gt;Thanks OwenAuger! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 03:04:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-Monthly-Unique-New-Customers/m-p/2276537#M55581</guid>
      <dc:creator>craigology</dc:creator>
      <dc:date>2022-01-11T03:04:16Z</dc:date>
    </item>
  </channel>
</rss>

