<?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: Count purchases with previous demos in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-purchases-with-previous-demos/m-p/1633443#M47159</link>
    <description>&lt;P&gt;For the sake of completeness. Using GROUP BY and concat , and then wildmatch to create a new table worked fine. Adds a few seconds during load, and is then instant in the app more or less. Great!&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 06:39:37 GMT</pubDate>
    <dc:creator>fluxfrog</dc:creator>
    <dc:date>2019-10-10T06:39:37Z</dc:date>
    <item>
      <title>Count purchases with previous demos</title>
      <link>https://community.qlik.com/t5/App-Development/Count-purchases-with-previous-demos/m-p/1632226#M47076</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have an app that monitor software sales. Customers can buy "full" products or get a "demo". I would like to visualise how useful the demos really are by comparing the number of purchases that were preceded by a demo to the direct purchases.&lt;/P&gt;&lt;P&gt;My attached table shows some example data, and also the numbers I would like to get out of this. Can you help me to figure out the best way of achieving this?&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 21:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-purchases-with-previous-demos/m-p/1632226#M47076</guid>
      <dc:creator>fluxfrog</dc:creator>
      <dc:date>2019-10-07T21:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count purchases with previous demos</title>
      <link>https://community.qlik.com/t5/App-Development/Count-purchases-with-previous-demos/m-p/1632233#M47077</link>
      <description>&lt;P&gt;you can do it in pivot chart, under columns add&amp;nbsp;&lt;/P&gt;&lt;P&gt;create a dimension&lt;/P&gt;&lt;P&gt;if( wildmatch(aggr(concat(Type,',',Date),CustomerID,ProductID),'Demo*Full'),'fullafterdemo',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if( wildmatch(aggr(concat(Type,',',Date),CustomerID,&lt;SPAN&gt;ProductID&lt;/SPAN&gt;),'Full'),'Fullonly',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if( wildmatch(aggr(concat(Type,',',Date),CustomerID,&lt;SPAN&gt;ProductID&lt;/SPAN&gt;),'Demo'),'demoonly')))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in expression(values) create count( CustomerID)&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 21:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-purchases-with-previous-demos/m-p/1632233#M47077</guid>
      <dc:creator>asinha1991</dc:creator>
      <dc:date>2019-10-07T21:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count purchases with previous demos</title>
      <link>https://community.qlik.com/t5/App-Development/Count-purchases-with-previous-demos/m-p/1632246#M47080</link>
      <description>&lt;P&gt;Wow, what a dirty trick (in a good way). But, it does require that the data is sorted according to date, right? This doesn't explicitly compare the dates but rather look for concatenated strings with "Demo" followed by "Full" if I understand the code correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 22:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-purchases-with-previous-demos/m-p/1632246#M47080</guid>
      <dc:creator>fluxfrog</dc:creator>
      <dc:date>2019-10-07T22:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count purchases with previous demos</title>
      <link>https://community.qlik.com/t5/App-Development/Count-purchases-with-previous-demos/m-p/1632249#M47081</link>
      <description>&lt;P&gt;in concat you can add an ordering field, I did add date&lt;/P&gt;&lt;P&gt;concatenation will done in order of date field&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 22:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-purchases-with-previous-demos/m-p/1632249#M47081</guid>
      <dc:creator>asinha1991</dc:creator>
      <dc:date>2019-10-07T22:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count purchases with previous demos</title>
      <link>https://community.qlik.com/t5/App-Development/Count-purchases-with-previous-demos/m-p/1632357#M47098</link>
      <description>&lt;P&gt;Clever! I didn't know that. And yes, it works! But, unfortunately, it is a bit too slow with millions of lines in that table. However, I think I could get what I want in the load script using GROUP BY and the same strategy, to create some sort of helper table with this information pre-calculated. I'll give it a try!&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 08:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-purchases-with-previous-demos/m-p/1632357#M47098</guid>
      <dc:creator>fluxfrog</dc:creator>
      <dc:date>2019-10-08T08:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count purchases with previous demos</title>
      <link>https://community.qlik.com/t5/App-Development/Count-purchases-with-previous-demos/m-p/1633443#M47159</link>
      <description>&lt;P&gt;For the sake of completeness. Using GROUP BY and concat , and then wildmatch to create a new table worked fine. Adds a few seconds during load, and is then instant in the app more or less. Great!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 06:39:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-purchases-with-previous-demos/m-p/1633443#M47159</guid>
      <dc:creator>fluxfrog</dc:creator>
      <dc:date>2019-10-10T06:39:37Z</dc:date>
    </item>
  </channel>
</rss>

