<?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: Table with customer retention by month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Table-with-customer-retention-by-month/m-p/2487394#M101523</link>
    <description>&lt;P&gt;Sorry, my bad! Hoping that you got the point.&lt;/P&gt;
&lt;P&gt;How did you get that result you are showing? That's exactly what I'm looking for.&lt;/P&gt;
&lt;P&gt;Thanks, Davide&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2024 14:00:41 GMT</pubDate>
    <dc:creator>Defo</dc:creator>
    <dc:date>2024-10-16T14:00:41Z</dc:date>
    <item>
      <title>Table with customer retention by month</title>
      <link>https://community.qlik.com/t5/App-Development/Table-with-customer-retention-by-month/m-p/2487135#M101469</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I'm here for a very common issue, retention rate. I want to show in a table the number of customers of the specific month and the number of customers that have bought in the specific month and in the previous too.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I can only solve this problem at front end level, not have permission to access to load editor.&amp;nbsp;&lt;/STRONG&gt;Imagine that I have available a table for all transaction at CustomerCode and YearMonth level.&lt;BR /&gt;Somenthing like:&lt;/P&gt;
&lt;TABLE border="1" width="56.25000142481221%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="24px"&gt;YearMonth&lt;/TD&gt;
&lt;TD width="25%" height="24px"&gt;CustomerCode&lt;/TD&gt;
&lt;TD width="25%" height="24px"&gt;Flag Buyer&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="24px"&gt;2024-01&lt;/TD&gt;
&lt;TD height="24px"&gt;20&lt;/TD&gt;
&lt;TD height="24px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="24px"&gt;2024-01&lt;/TD&gt;
&lt;TD width="25%" height="24px"&gt;21&lt;/TD&gt;
&lt;TD width="25%" height="24px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="24px"&gt;2024-01&lt;/TD&gt;
&lt;TD width="25%" height="24px"&gt;22&lt;/TD&gt;
&lt;TD width="25%" height="24px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="24px"&gt;2024-01&lt;/TD&gt;
&lt;TD height="24px"&gt;23&lt;/TD&gt;
&lt;TD height="24px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="24px"&gt;2024-01&lt;/TD&gt;
&lt;TD height="24px"&gt;24&lt;/TD&gt;
&lt;TD height="24px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="24px"&gt;2024-02&lt;/TD&gt;
&lt;TD height="24px"&gt;20&lt;/TD&gt;
&lt;TD height="24px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="24px"&gt;2024-02&lt;/TD&gt;
&lt;TD height="24px"&gt;23&lt;/TD&gt;
&lt;TD height="24px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="24px"&gt;2024-02&lt;/TD&gt;
&lt;TD width="25%" height="24px"&gt;39&lt;/TD&gt;
&lt;TD width="25%" height="24px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Resulting in:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;YearMonth&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;# Customers&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;# Retained Customer&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;2024-01&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;4&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;2024-02&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;3&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking to a formula that can be evaluated at row level, letting me compute for each row how many customer have bought in the row's Month and in the previous.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Davide&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 15:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Table-with-customer-retention-by-month/m-p/2487135#M101469</guid>
      <dc:creator>Defo</dc:creator>
      <dc:date>2024-10-15T15:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Table with customer retention by month</title>
      <link>https://community.qlik.com/t5/App-Development/Table-with-customer-retention-by-month/m-p/2487177#M101478</link>
      <description>&lt;P&gt;Hi - is see only customer 20 is the only customer that&amp;nbsp; bought in both current month and previous month, so how is the retained customers = 2 in the second table when its actually 1 for 2024-02?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2487135 - Table with customer retention by month.PNG" style="width: 895px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172970i2E9A776B98F622DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="2487135 - Table with customer retention by month.PNG" alt="2487135 - Table with customer retention by month.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 21:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Table-with-customer-retention-by-month/m-p/2487177#M101478</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-10-15T21:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table with customer retention by month</title>
      <link>https://community.qlik.com/t5/App-Development/Table-with-customer-retention-by-month/m-p/2487394#M101523</link>
      <description>&lt;P&gt;Sorry, my bad! Hoping that you got the point.&lt;/P&gt;
&lt;P&gt;How did you get that result you are showing? That's exactly what I'm looking for.&lt;/P&gt;
&lt;P&gt;Thanks, Davide&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 14:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Table-with-customer-retention-by-month/m-p/2487394#M101523</guid>
      <dc:creator>Defo</dc:creator>
      <dc:date>2024-10-16T14:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Table with customer retention by month</title>
      <link>https://community.qlik.com/t5/App-Development/Table-with-customer-retention-by-month/m-p/2487421#M101527</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/187827"&gt;@Defo&lt;/a&gt;&amp;nbsp; try below expression for&amp;nbsp;&lt;STRONG&gt;# Retained Customer&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=sum(aggr(if(CustomerCode = Above(Only({1}CustomerCode)) and 
             YearMonth &amp;lt;&amp;gt; Above(Only({1}YearMonth)) and 
             (Above(Only({1}[Flag Buyer])=1 and [Flag Buyer]=1))
          ,1,0),
    CustomerCode,YearMonth))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-16 at 15.56.41.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173038iB7754483235D44A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-10-16 at 15.56.41.png" alt="Screenshot 2024-10-16 at 15.56.41.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 15:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Table-with-customer-retention-by-month/m-p/2487421#M101527</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-16T15:35:45Z</dc:date>
    </item>
  </channel>
</rss>

