<?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 New Customers where Sales &amp;gt;2000 in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/New-Customers-where-Sales-gt-2000/m-p/2508266#M104476</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;i wrote a formula to find customers we sold during 2025 but now during last 3 years, the expression is this:&lt;/P&gt;
&lt;PRE&gt;Count(DISTINCT {&amp;lt;SOLD_TO = p({&amp;lt;SALES_YEAR = {$(=Year(today(1)))}&amp;gt;})*e({&amp;lt;SALES_YEAR = {$(=Year(AddYears(today(1),-1))),$(=Year(AddYears(today(1),-2))),$(=Year(AddYears(today(1),-3)))}&amp;gt;})&amp;gt;} SOLD_TO )&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;This expression works well, it extract the new customers, regardless the sales amount.&lt;/P&gt;
&lt;P&gt;Now i need to enhance it by setting a sales amount limit, i need to consider a new customer only if the sum(sales) of current year is over 2000$ and if we didn't sold more than 2000$ during last 3 years.&lt;/P&gt;
&lt;P&gt;How to do this?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 04 Mar 2025 16:26:25 GMT</pubDate>
    <dc:creator>micheledenardi</dc:creator>
    <dc:date>2025-03-04T16:26:25Z</dc:date>
    <item>
      <title>New Customers where Sales &gt;2000</title>
      <link>https://community.qlik.com/t5/App-Development/New-Customers-where-Sales-gt-2000/m-p/2508266#M104476</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;i wrote a formula to find customers we sold during 2025 but now during last 3 years, the expression is this:&lt;/P&gt;
&lt;PRE&gt;Count(DISTINCT {&amp;lt;SOLD_TO = p({&amp;lt;SALES_YEAR = {$(=Year(today(1)))}&amp;gt;})*e({&amp;lt;SALES_YEAR = {$(=Year(AddYears(today(1),-1))),$(=Year(AddYears(today(1),-2))),$(=Year(AddYears(today(1),-3)))}&amp;gt;})&amp;gt;} SOLD_TO )&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;This expression works well, it extract the new customers, regardless the sales amount.&lt;/P&gt;
&lt;P&gt;Now i need to enhance it by setting a sales amount limit, i need to consider a new customer only if the sum(sales) of current year is over 2000$ and if we didn't sold more than 2000$ during last 3 years.&lt;/P&gt;
&lt;P&gt;How to do this?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 16:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-Customers-where-Sales-gt-2000/m-p/2508266#M104476</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2025-03-04T16:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: New Customers where Sales &gt;2000</title>
      <link>https://community.qlik.com/t5/App-Development/New-Customers-where-Sales-gt-2000/m-p/2508279#M104484</link>
      <description>&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count(DISTINCT {&amp;lt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; SOLD_TO = p({&amp;lt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SALES_YEAR = {$(=Year(Today(1)))},&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SALES = {"&amp;gt;2000"}&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;gt;})&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; *&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; e({&amp;lt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SALES_YEAR = {$(=Year(AddYears(Today(1),-1))),&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(=Year(AddYears(Today(1),-2))),&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(=Year(AddYears(Today(1),-3)))},&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SALES = {"&amp;gt;2000"}&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;gt;})&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;} SOLD_TO)&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 17:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-Customers-where-Sales-gt-2000/m-p/2508279#M104484</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2025-03-04T17:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: New Customers where Sales &gt;2000</title>
      <link>https://community.qlik.com/t5/App-Development/New-Customers-where-Sales-gt-2000/m-p/2509005#M104637</link>
      <description>&lt;P&gt;I create this expression which consider the amout of each year, not the total sales of all previus 3 years together:&lt;/P&gt;
&lt;DIV&gt;Count(DISTINCT {&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;lt;SOLD_TO={"=sum({&amp;lt;SALES_YEAR = {$(=Year(today(1)))}&amp;gt;}SALES)&amp;gt;=2000"}&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; *&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;lt;SOLD_TO-={"=sum({&amp;lt;SALES_YEAR = {$(=Year(AddYears(today(1),-1)))}&amp;gt;}SALES)&amp;gt;=2000"}&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp;*&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;lt;SOLD_TO-={"=Sum({&amp;lt;SALES_YEAR = {$(=Year(AddYears(today(1),-2)))}&amp;gt;}SALES)&amp;gt;=2000"}&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp;*&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;lt;SOLD_TO-={"=sum({&amp;lt;SALES_YEAR = {$(=Year(AddYears(today(1),-3)))}&amp;gt;}SALES)&amp;gt;=2000"}&amp;gt;}&amp;nbsp; SOLD_TO)&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Mar 2025 12:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/New-Customers-where-Sales-gt-2000/m-p/2509005#M104637</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2025-03-10T12:01:11Z</dc:date>
    </item>
  </channel>
</rss>

