<?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: Sales of New/lost customer in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655657#M49339</link>
    <description>&lt;P&gt;screenshot of table&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2019 20:21:56 GMT</pubDate>
    <dc:creator>Dmasvinc</dc:creator>
    <dc:date>2019-12-09T20:21:56Z</dc:date>
    <item>
      <title>Sales of New/lost customer</title>
      <link>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655225#M49331</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need to calculate, SUM of a new and lost customer sales past two years.&lt;/P&gt;&lt;P&gt;Lost= made sales last year, but not the selected year&lt;/P&gt;&lt;P&gt;New= sales made selected year but not last year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2019 15:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655225#M49331</guid>
      <dc:creator>Dmasvinc</dc:creator>
      <dc:date>2019-12-08T15:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sales of New/lost customer</title>
      <link>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655227#M49332</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Maye be this :&lt;/P&gt;&lt;P&gt;Lost&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=sum({&amp;lt;Year = {"$(=Max(Year)-1)"}&amp;gt;} Sales)&lt;/LI-CODE&gt;&lt;P&gt;New&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=sum({&amp;lt;Year = {"$(=Max(Year))"}&amp;gt;} Sales)&lt;/LI-CODE&gt;&lt;P&gt;olso for new just sum(Sales) can work&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2019 16:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655227#M49332</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-08T16:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sales of New/lost customer</title>
      <link>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655228#M49333</link>
      <description>&lt;P&gt;doesnt work both expressions show same result just sum of my total sales..&lt;/P&gt;&lt;P&gt;I have 2014 and 2015 years&amp;nbsp; and i need just to make like&amp;nbsp;comparison of customers that made sales in 2014,&amp;nbsp; but they gone in 2015.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2019 16:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655228#M49333</guid>
      <dc:creator>Dmasvinc</dc:creator>
      <dc:date>2019-12-08T16:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sales of New/lost customer</title>
      <link>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655230#M49334</link>
      <description>&lt;P&gt;can you share some of your data with the requested outuput&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2019 16:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655230#M49334</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-08T16:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sales of New/lost customer</title>
      <link>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655610#M49335</link>
      <description>&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Formula must show, old client sum = 2935+3520&lt;/P&gt;&lt;P&gt;New clients = 5373+2950+5290+2554+2037&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 18:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655610#M49335</guid>
      <dc:creator>Dmasvinc</dc:creator>
      <dc:date>2019-12-09T18:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sales of New/lost customer</title>
      <link>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655632#M49336</link>
      <description>&lt;P&gt;if I consider the following data:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;LOAD * INLINE [
    Customer, year, Sales
     2, 2018, 2
    3, 2019, 3
    4, 2017, 4
    5, 2019, 5
    6, 2019, 6
    1, 2018, 1
    2, 2019, 2
    3, 2015, 3
    4, 2014, 4
    5, 2019, 5
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 339px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25196iD8E15F09B7D045CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;can you see this solution if it's okay ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1- Straight or pivot table&lt;/P&gt;&lt;P&gt;2-as a dimension: Cusomer (for my case)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3- Expressions:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sales for the previous year:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=sum({&amp;lt;year={$(=Max(year)-1)}&amp;gt;} Sales)&lt;/LI-CODE&gt;&lt;P&gt;Sales for the current year:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=sum({&amp;lt;year={$(=Max(year))}&amp;gt;} Sales)&lt;/LI-CODE&gt;&lt;P&gt;Old client :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=if(((sum({&amp;lt;year={$(=Max(year)-1)}&amp;gt;} Sales))&amp;gt;0) and ((sum({&amp;lt;year={$(=Max(year))}&amp;gt;} Sales))=0),sum({&amp;lt;year={$(=Max(year)-1)}&amp;gt;} Sales))&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;New Client:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=if(((sum({&amp;lt;year={$(=Max(year)-1)}&amp;gt;} Sales))=0) and ((sum({&amp;lt;year={$(=Max(year))}&amp;gt;} Sales))&amp;gt;0),sum({&amp;lt;year={$(=Max(year))}&amp;gt;} Sales))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get as a result the table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 666px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25197i9D52B6245C1CD35A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 19:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655632#M49336</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-09T19:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sales of New/lost customer</title>
      <link>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655648#M49337</link>
      <description>&lt;P&gt;if(((sum({&amp;lt;year={$(=Max(year)-1)}&amp;gt;} [item_ledger.sales_amount]))=0) and ((sum({&amp;lt;year={$(=Max(year))}&amp;gt;} [item_ledger.sales_amount]))&amp;gt;0),sum({&amp;lt;year={$(=Max(year))}&amp;gt;} [item_ledger.sales_amount]))&lt;/P&gt;&lt;P&gt;still doesnt work ...there just " - " result idk why..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 20:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655648#M49337</guid>
      <dc:creator>Dmasvinc</dc:creator>
      <dc:date>2019-12-09T20:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sales of New/lost customer</title>
      <link>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655649#M49338</link>
      <description>&lt;P&gt;same goes and to old client&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 20:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655649#M49338</guid>
      <dc:creator>Dmasvinc</dc:creator>
      <dc:date>2019-12-09T20:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sales of New/lost customer</title>
      <link>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655657#M49339</link>
      <description>&lt;P&gt;screenshot of table&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 20:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655657#M49339</guid>
      <dc:creator>Dmasvinc</dc:creator>
      <dc:date>2019-12-09T20:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sales of New/lost customer</title>
      <link>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655671#M49340</link>
      <description>&lt;P&gt;Oh, my calculations in Qlik sense, can you write formula for this program ?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 20:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655671#M49340</guid>
      <dc:creator>Dmasvinc</dc:creator>
      <dc:date>2019-12-09T20:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sales of New/lost customer</title>
      <link>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655802#M49341</link>
      <description>&lt;P&gt;can you share your qliksense file ?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 07:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655802#M49341</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-10T07:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sales of New/lost customer</title>
      <link>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655819#M49342</link>
      <description>&lt;P&gt;Yes. I use field item ledger sales amount as measure, and customers name as dimension, also date year.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 08:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1655819#M49342</guid>
      <dc:creator>Dmasvinc</dc:creator>
      <dc:date>2019-12-10T08:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sales of New/lost customer</title>
      <link>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1658666#M49352</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sorry, I forgot to answer.&lt;BR /&gt;attached my proposal&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25685i71BAC514A9E51998/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 19:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sales-of-New-lost-customer/m-p/1658666#M49352</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-17T19:02:54Z</dc:date>
    </item>
  </channel>
</rss>

