<?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 find count of New Customers ? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-count-of-New-Customers/m-p/3214868#M117359</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;Thank for answer.&amp;nbsp; This is working but it is giving answer of distinct count (customercode). How to include &lt;SPAN&gt;sum(sales[grosssalesvalue]) condition in this formula.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;New Customers = Distinct count of Customer Codes which have sum(sales[grosssalesvalue]) &amp;gt;0 in current year and sum(sales[grosssalesvalue]) = 0 in previous year&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2023 05:23:25 GMT</pubDate>
    <dc:creator>saurabhtd</dc:creator>
    <dc:date>2023-05-02T05:23:25Z</dc:date>
    <item>
      <title>How to find count of New Customers ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-count-of-New-Customers/m-p/3214746#M117349</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;I will like to ask for help in this case :&amp;nbsp;&lt;BR /&gt;I need help in DAX logic for&amp;nbsp; finding count of New Customers.&amp;nbsp;&lt;BR /&gt;New Customers = Distinct count of Customer Codes which have grosssalesvalue &amp;gt;0 in current year and&amp;nbsp;grosssalesvalue = 0 in previous year&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;note : Customer Code,&amp;nbsp;grosssalesvalue are the attributes from sales fact. sales fact and calender dim have relationship.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 02:45:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-count-of-New-Customers/m-p/3214746#M117349</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2023-05-02T02:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to find count of New Customers ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-count-of-New-Customers/m-p/3214788#M117353</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I hope the below can provide some ideas on how to create a solution for your datamodel.&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;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales: = 
SUM( Sales[Sales] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New customer count: =
VAR _currentyear =
    YEAR ( TODAY () )
VAR _currentyearlist =
    SUMMARIZE (
        CALCULATETABLE ( Sales, 'Calendar'[Year] = _currentyear ),
        Customer[Customer]
    )
VAR _prevyearlist =
    SUMMARIZE (
        CALCULATETABLE ( Sales, 'Calendar'[Year] = _currentyear - 1 ),
        Customer[Customer]
    )
VAR _newcustomerlist =
    EXCEPT ( _currentyearlist, _prevyearlist )
RETURN
    COUNTROWS ( _newcustomerlist )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 03:21:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-count-of-New-Customers/m-p/3214788#M117353</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-05-02T03:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to find count of New Customers ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-count-of-New-Customers/m-p/3214868#M117359</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;Thank for answer.&amp;nbsp; This is working but it is giving answer of distinct count (customercode). How to include &lt;SPAN&gt;sum(sales[grosssalesvalue]) condition in this formula.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;New Customers = Distinct count of Customer Codes which have sum(sales[grosssalesvalue]) &amp;gt;0 in current year and sum(sales[grosssalesvalue]) = 0 in previous year&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 05:23:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-find-count-of-New-Customers/m-p/3214868#M117359</guid>
      <dc:creator>saurabhtd</dc:creator>
      <dc:date>2023-05-02T05:23:25Z</dc:date>
    </item>
  </channel>
</rss>

