<?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 Retention chart of buyers without using load editor in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Retention-chart-of-buyers-without-using-load-editor/m-p/2141877#M92890</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am trying to create a chart to monitor buyer retention. I want to track how many buyers have purchased also n the previous month and how many are new buyers (or reactivated). A limitation in doing so is given by the fact that I cannot use the load editor and create a flag in the backend of the app.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The goal is a chart like this (mock up):&lt;BR /&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Defo_0-1701162374367.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120667i9D5D881EED6B1CAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Defo_0-1701162374367.png" alt="Defo_0-1701162374367.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;At the moment I am achieving this evaluation only in a table, with a combination of Above and Aggr functions:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Defo_1-1701162467366.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120668iC202E5478973278B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Defo_1-1701162467366.png" alt="Defo_1-1701162467366.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But when I try to convert this logic in the bar chart it doesn't work anymore (probably because I am loosing the USERID dimension used in the Aggr() ).&lt;/P&gt;
&lt;P&gt;Here the formulas used:&lt;BR /&gt;-&amp;nbsp;Count({&amp;lt;Purchase_amount={"&amp;gt;0"}&amp;gt;}DISTINCT USERID) -&amp;gt; Buyer&lt;BR /&gt;-&amp;nbsp;if(&lt;BR /&gt;if(USERID = Above(USERID),1)&lt;BR /&gt;+ if(above(aggr(count(distinct {&amp;lt;Purchase_amount={"&amp;gt;0"}&amp;gt;} USERID),USERID,Month))=1,1)&lt;BR /&gt;+ if(Month = Above(Month)+ 1,1)&lt;BR /&gt;&amp;lt;&amp;gt;3,count(distinct {&amp;lt;Purchase_amount={"&amp;gt;0"}&amp;gt;} USERID),0) -&amp;gt; Buyer M0&lt;BR /&gt;-&amp;nbsp;if(&lt;BR /&gt;if(USERID = Above(USERID),1)&lt;BR /&gt;+ if(above(aggr(count(distinct {&amp;lt;Purchase_amount={"&amp;gt;0"}&amp;gt;} USERID),USERID,Month))=1,1)&lt;BR /&gt;+ if(Month = Above(Month)+ 1,1)&lt;BR /&gt;=3,count(distinct {&amp;lt;Purchase_amount={"&amp;gt;0"}&amp;gt;} USERID),0) -&amp;gt; buyer M-1&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have tried to summarize the problem in the clearest way possible, but I think it's a bit tricky. So, I am open to sharing more details. Any other ideas or approaches to this problem are welcomed.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2023 09:28:22 GMT</pubDate>
    <dc:creator>Defo</dc:creator>
    <dc:date>2023-11-28T09:28:22Z</dc:date>
    <item>
      <title>Retention chart of buyers without using load editor</title>
      <link>https://community.qlik.com/t5/App-Development/Retention-chart-of-buyers-without-using-load-editor/m-p/2141877#M92890</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am trying to create a chart to monitor buyer retention. I want to track how many buyers have purchased also n the previous month and how many are new buyers (or reactivated). A limitation in doing so is given by the fact that I cannot use the load editor and create a flag in the backend of the app.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The goal is a chart like this (mock up):&lt;BR /&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Defo_0-1701162374367.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120667i9D5D881EED6B1CAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Defo_0-1701162374367.png" alt="Defo_0-1701162374367.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;At the moment I am achieving this evaluation only in a table, with a combination of Above and Aggr functions:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Defo_1-1701162467366.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120668iC202E5478973278B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Defo_1-1701162467366.png" alt="Defo_1-1701162467366.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But when I try to convert this logic in the bar chart it doesn't work anymore (probably because I am loosing the USERID dimension used in the Aggr() ).&lt;/P&gt;
&lt;P&gt;Here the formulas used:&lt;BR /&gt;-&amp;nbsp;Count({&amp;lt;Purchase_amount={"&amp;gt;0"}&amp;gt;}DISTINCT USERID) -&amp;gt; Buyer&lt;BR /&gt;-&amp;nbsp;if(&lt;BR /&gt;if(USERID = Above(USERID),1)&lt;BR /&gt;+ if(above(aggr(count(distinct {&amp;lt;Purchase_amount={"&amp;gt;0"}&amp;gt;} USERID),USERID,Month))=1,1)&lt;BR /&gt;+ if(Month = Above(Month)+ 1,1)&lt;BR /&gt;&amp;lt;&amp;gt;3,count(distinct {&amp;lt;Purchase_amount={"&amp;gt;0"}&amp;gt;} USERID),0) -&amp;gt; Buyer M0&lt;BR /&gt;-&amp;nbsp;if(&lt;BR /&gt;if(USERID = Above(USERID),1)&lt;BR /&gt;+ if(above(aggr(count(distinct {&amp;lt;Purchase_amount={"&amp;gt;0"}&amp;gt;} USERID),USERID,Month))=1,1)&lt;BR /&gt;+ if(Month = Above(Month)+ 1,1)&lt;BR /&gt;=3,count(distinct {&amp;lt;Purchase_amount={"&amp;gt;0"}&amp;gt;} USERID),0) -&amp;gt; buyer M-1&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have tried to summarize the problem in the clearest way possible, but I think it's a bit tricky. So, I am open to sharing more details. Any other ideas or approaches to this problem are welcomed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 09:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retention-chart-of-buyers-without-using-load-editor/m-p/2141877#M92890</guid>
      <dc:creator>Defo</dc:creator>
      <dc:date>2023-11-28T09:28:22Z</dc:date>
    </item>
  </channel>
</rss>

