<?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: Cohort Retention in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Cohort-Retention/m-p/2487194#M101484</link>
    <description>&lt;P&gt;Kudos nice solution!!&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2024 23:33:48 GMT</pubDate>
    <dc:creator>seanbruton</dc:creator>
    <dc:date>2024-10-15T23:33:48Z</dc:date>
    <item>
      <title>Cohort Retention</title>
      <link>https://community.qlik.com/t5/App-Development/Cohort-Retention/m-p/2486946#M101442</link>
      <description>&lt;P&gt;I'm trying to get a retention data over time based on customer sign-up date.&lt;/P&gt;
&lt;P&gt;I have data as follows:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;Customer&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Start_Date&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Months_Active&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;A&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1/1/2024&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;B&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1/1/2024&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;C&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;2/1/2024&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;D&lt;/TD&gt;
&lt;TD&gt;2/1/2024&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;E&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;3/1/2024&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&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 want to know how many active customers I had for each month number broken down by Start_Date. This is what the data should look like (the numeric values at the column headers indicate # of months post Start_Date, so '1' indicates 2/1/2024 for customers started on 1/1/2024)&lt;/P&gt;
&lt;TABLE border="1" width="84.02612229587046%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Start_Date&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;count(Customer)&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;3&lt;/TD&gt;
&lt;TD width="8.333333333333334%" height="25px"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;1/1/2024&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="8.333333333333334%" height="25px"&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;2/1/2024&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;-&lt;/TD&gt;
&lt;TD width="8.333333333333334%" height="25px"&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;3/1/2024&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;-&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;-&lt;/TD&gt;
&lt;TD width="8.333333333333334%" height="25px"&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was trying to find an expression formula that would take value in Months_Active at the top of the pivot table and count Customers whose Months_Active &amp;lt;= to that dimension value. I just can't get there. It's either the wrong approach or I just can't find the right combination of set analyses and functions to get me there.&lt;/P&gt;
&lt;P&gt;Any help will be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 23:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cohort-Retention/m-p/2486946#M101442</guid>
      <dc:creator>tsbrian</dc:creator>
      <dc:date>2024-10-14T23:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cohort Retention</title>
      <link>https://community.qlik.com/t5/App-Development/Cohort-Retention/m-p/2486958#M101443</link>
      <description>&lt;P&gt;What if you do something like this.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Load Customer, Start_Date, Months_Active From Source;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;For m=0 to 60 //60=5years&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Load&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;$(m) as Months_Active,&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;iterno() as Active_N_Months_Ago&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Autogenerate 1&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;While iterno() &amp;lt;= $(m)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Next m&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And with this data model create a pivot with Start_Date as row dimension, Months_Active as column dimension and count(Customer) as your measure.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 21:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cohort-Retention/m-p/2486958#M101443</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2024-10-15T21:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cohort Retention</title>
      <link>https://community.qlik.com/t5/App-Development/Cohort-Retention/m-p/2487129#M101465</link>
      <description>&lt;P&gt;Awesome. Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25001"&gt;@Vegar&lt;/a&gt;&amp;nbsp;for the alternate approach.&lt;/P&gt;
&lt;P&gt;When implementing, I found 2 issues.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The semicolon should be removed after '&lt;EM&gt;Autogenerate 1&lt;FONT color="#FF0000"&gt;;&lt;/FONT&gt;&lt;/EM&gt;' and should, instead, be placed at the end of the '&lt;EM&gt;While...&lt;/EM&gt;' line&lt;/LI&gt;
&lt;LI&gt;In line '&lt;EM&gt;&lt;FONT color="#FF0000"&gt;$(m)&lt;/FONT&gt; + iterno() -1 as Active_N_Months_Ago'&amp;nbsp;&lt;/EM&gt; the '$(m)' should be replaced with &lt;EM&gt;'1' &lt;/EM&gt;so that the records that are created start from 1 and not $(m).&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If you correct these, I'll mark your approach as a correct Solution to this issue.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 14:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cohort-Retention/m-p/2487129#M101465</guid>
      <dc:creator>tsbrian</dc:creator>
      <dc:date>2024-10-15T14:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cohort Retention</title>
      <link>https://community.qlik.com/t5/App-Development/Cohort-Retention/m-p/2487178#M101479</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/230504"&gt;@tsbrian&lt;/a&gt;&amp;nbsp;thanks for pointing that out. Instead of having 1+iterno()-1 i simplified it to only iterno(), since +1-1=0.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 21:31:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cohort-Retention/m-p/2487178#M101479</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2024-10-15T21:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cohort Retention</title>
      <link>https://community.qlik.com/t5/App-Development/Cohort-Retention/m-p/2487194#M101484</link>
      <description>&lt;P&gt;Kudos nice solution!!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 23:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cohort-Retention/m-p/2487194#M101484</guid>
      <dc:creator>seanbruton</dc:creator>
      <dc:date>2024-10-15T23:33:48Z</dc:date>
    </item>
  </channel>
</rss>

