<?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 Qliksense - Identifying Repeated Customers between Week N &amp; Week (N-1) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qliksense-Identifying-Repeated-Customers-between-Week-N-Week-N-1/m-p/1328973#M28941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi members of the Qlik Community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just joined a tech startup as a business analyst, and while I have no problems performing routine tasks right within Qliksense, I am starting to run into more complex problems, some of which I have little to no clue to go about solving it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For instance, I am trying to generate a list of customers who fulfills the below conditions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A&gt; Orders at least once in 2016/10 and at least once in 2016/17 &lt;STRONG&gt;&lt;EM&gt;AND&lt;/EM&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt; Delivery fails to reach them due to 'Error'&lt;SPAN style="font-size: 13.3333px;"&gt; at least once&lt;/SPAN&gt; in both times&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...and I have the following key fields available:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[1] customer_id &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;(e.g. alphanumeric string)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[2] &lt;SPAN style="font-size: 13.3333px;"&gt;package_id &lt;EM&gt;(e.g. alphanumeric string)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[3] delivery_failed_reason &lt;EM&gt;(e.g. 'Error', 'Rejected', 'Cancelled', 'N/A')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;[4] &lt;SPAN style="font-size: 13.3333px;"&gt;delivered_date &lt;EM&gt;(e.g. 2016/10, 2016/11, 2016/12, ...)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[5] country &lt;EM&gt;(e.g. RU, DE, AU, SK)&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In my feeble attempt I have tried the following in a straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;DIM:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if(delivered_date = '2016/10' or &lt;SPAN style="font-size: 13.3333px;"&gt;delivered_date = '2016/11', &lt;SPAN style="font-size: 13.3333px;"&gt;customer_id)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;MEASURE&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;count (distinct if(wildmatch('*Error*, &lt;SPAN style="font-size: 13.3333px;"&gt;delivery_failed_reason), package_id))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then apply a count function to the measure column, which would ideally provide the count of customers fitting conditions &lt;A&gt; &amp;amp; &lt;B&gt;. However numbers dont look right so far.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/B&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2017 13:32:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-01T13:32:39Z</dc:date>
    <item>
      <title>Qliksense - Identifying Repeated Customers between Week N &amp; Week (N-1)</title>
      <link>https://community.qlik.com/t5/App-Development/Qliksense-Identifying-Repeated-Customers-between-Week-N-Week-N-1/m-p/1328973#M28941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi members of the Qlik Community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just joined a tech startup as a business analyst, and while I have no problems performing routine tasks right within Qliksense, I am starting to run into more complex problems, some of which I have little to no clue to go about solving it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For instance, I am trying to generate a list of customers who fulfills the below conditions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A&gt; Orders at least once in 2016/10 and at least once in 2016/17 &lt;STRONG&gt;&lt;EM&gt;AND&lt;/EM&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt; Delivery fails to reach them due to 'Error'&lt;SPAN style="font-size: 13.3333px;"&gt; at least once&lt;/SPAN&gt; in both times&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...and I have the following key fields available:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[1] customer_id &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;(e.g. alphanumeric string)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[2] &lt;SPAN style="font-size: 13.3333px;"&gt;package_id &lt;EM&gt;(e.g. alphanumeric string)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[3] delivery_failed_reason &lt;EM&gt;(e.g. 'Error', 'Rejected', 'Cancelled', 'N/A')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;[4] &lt;SPAN style="font-size: 13.3333px;"&gt;delivered_date &lt;EM&gt;(e.g. 2016/10, 2016/11, 2016/12, ...)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[5] country &lt;EM&gt;(e.g. RU, DE, AU, SK)&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In my feeble attempt I have tried the following in a straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;DIM:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if(delivered_date = '2016/10' or &lt;SPAN style="font-size: 13.3333px;"&gt;delivered_date = '2016/11', &lt;SPAN style="font-size: 13.3333px;"&gt;customer_id)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;MEASURE&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;count (distinct if(wildmatch('*Error*, &lt;SPAN style="font-size: 13.3333px;"&gt;delivery_failed_reason), package_id))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then apply a count function to the measure column, which would ideally provide the count of customers fitting conditions &lt;A&gt; &amp;amp; &lt;B&gt;. However numbers dont look right so far.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/B&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 13:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qliksense-Identifying-Repeated-Customers-between-Week-N-Week-N-1/m-p/1328973#M28941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-01T13:32:39Z</dc:date>
    </item>
  </channel>
</rss>

