<?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 customers with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769286#M273189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, i Need to exclude from the generated set, the Customers (AccountNr) who, for the same set and selected Dates, bought in PurchaseChannel 2 or 3 or in both&lt;/P&gt;&lt;P&gt;how can i put the "exclusion" condition, so that&amp;nbsp; i exclude the Account Nr. who bought besides channel 1 on channel 2 and 3 for the same period of time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2015 13:09:05 GMT</pubDate>
    <dc:creator>felcar2013</dc:creator>
    <dc:date>2015-03-25T13:09:05Z</dc:date>
    <item>
      <title>count customers with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769280#M273183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i want to Count the number of customers who bought through only one purchase channel for a selected period of time. if during that period of time a customer bought in 2 or 3 different channels, then the customer is disregarded from the Count.&lt;/P&gt;&lt;P&gt;i used the formula&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PurchaseChannel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {1}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AccountNr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PurchaseChannel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {2,3}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AccountNr)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PurchaseChannel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={1}-{2,3}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AccountNr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'#.##0') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;but both of them are not working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached a sample file with the following table:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt; &lt;BR /&gt; trans:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 14pt;"&gt;load&lt;/STRONG&gt;&lt;SPAN style="font-size: 14pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 14pt;"&gt;[&lt;BR /&gt; AccountNr,PurchaseChannel,Date&lt;BR /&gt; 1,1,02.02.2015&lt;BR /&gt; 1,2,02.02.2015&lt;BR /&gt; 1,2,03.02.2015&lt;BR /&gt; 2,1,03.02.2015&lt;BR /&gt; 2,3,03.02.2015&lt;BR /&gt; 3,2,03.02.2015&lt;BR /&gt; 4,1,03.02.2015&lt;BR /&gt; 4,1,04.02.2015&lt;BR /&gt; 4,2,04.02.2015&lt;BR /&gt; 5,1,04.02.2015&lt;BR /&gt; 5,1,05.02.2015&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the example, i should get for Purchase Channel 1 only one customer (which is the number 5), if the selected period is from [02.02.2015 to 05.02.2015]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea to solve this? is this possible?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 11:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769280#M273183</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-03-23T11:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: count customers with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769281#M273184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;PurchaseChannel= {'*'}-{2,3}&amp;gt;} AccountNr)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 11:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769281#M273184</guid>
      <dc:creator>sagarkharpude</dc:creator>
      <dc:date>2015-03-23T11:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: count customers with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769282#M273185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it did not work&lt;/P&gt;&lt;P&gt;i Need to specify 1 as Purchase Channel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 11:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769282#M273185</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-03-23T11:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: count customers with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769283#M273186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this its for selected date...&lt;/P&gt;&lt;P&gt;='Range select count '&amp;amp;(count( {&amp;lt;Date ={"&amp;gt;=$(#mindate) &amp;lt;=$(#maxdate)"}&amp;nbsp; ,PurchaseChannel={1}&amp;gt;}AccountNr ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vimlesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 11:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769283#M273186</guid>
      <dc:creator />
      <dc:date>2015-03-23T11:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: count customers with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769284#M273187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, thanks&lt;/P&gt;&lt;P&gt;the selected date is fine, there is no much Change to do there, what the difficulty is, is that i only Need to Count the customers, who for a selected period of time, ONLY used one channel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex. for the period of time 02.02.2015 to 05.02.1025, customer number 1 used on 02.02 purchase channels 1 and 2 and on 03.02 he used purchase channel nr. 2 again. this means, i will not consider Customer Nr. 1 into the Count, because he used purchase channels 1 and 2 for the selected period o time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of customer nr. 5, he used purchase channel 1 on the 04.02 and the same channel on the 05.02, so i will consider this customers in the total Count, because for the selected period of time he used only one purchase channel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The period of time must be selected from the list box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 11:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769284#M273187</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-03-23T11:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: count customers with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769285#M273188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;number of customers who bought through only one purchase channel for a selected period &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(count({$ &amp;lt;AccountNr={"=count(distinct PurchaseChannel)=1"}&amp;gt;} DISTINCT AccountNr), AccountNr))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 21:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769285#M273188</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-23T21:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: count customers with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769286#M273189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, i Need to exclude from the generated set, the Customers (AccountNr) who, for the same set and selected Dates, bought in PurchaseChannel 2 or 3 or in both&lt;/P&gt;&lt;P&gt;how can i put the "exclusion" condition, so that&amp;nbsp; i exclude the Account Nr. who bought besides channel 1 on channel 2 and 3 for the same period of time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 13:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769286#M273189</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-03-25T13:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: count customers with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769287#M273190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with dimension PurchaseChannel&lt;/P&gt;&lt;P&gt;and expression&lt;/P&gt;&lt;P&gt;concat({$ &amp;lt;AccountNr={"=count(distinct PurchaseChannel)=1"}&amp;gt;} DISTINCT AccountNr, ',')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 18:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769287#M273190</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-25T18:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: count customers with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769288#M273191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, thanks for your help&lt;/P&gt;&lt;P&gt;the original table contains more than 2 Million distinct customers, so that will be difficult. generally i have to get the number of customers for exclusively only one purchase channel. A customer may have bought via purchase channel 1 on the 02.02.2015 but on the 03.02.2015 the same customer bought again, but via purchase channel 2. This means, i cannot Count this customer, since he bought in the selected period of time in two different channels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the test data, only customer 5 fullfills the restriction of having bought only via purchase channel 1 for the period of time 02.02.2015 to 05.02.2015 (this period of time shall be selected variably in the list box)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. select purchase channel: either 1, 2 or 3&lt;/P&gt;&lt;P&gt;2. get list of selected customers who complain with the restriction (say Purchase Channel 1)&lt;/P&gt;&lt;P&gt;3. Compare the customers from list in 2. with the full list of customers and check if they also bought in a purchase channel different than the one selected in 1.&lt;/P&gt;&lt;P&gt;4. Count the customers who bought only in the purchase channel defined in 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 09:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769288#M273191</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-03-26T09:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: count customers with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769289#M273192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, i transformed columns into rows, then applied your formula, with the condition that purchasechannel shall be either 1,2 or 3 and it worked&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;trans:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 14pt;"&gt;load&lt;/STRONG&gt;&lt;SPAN style="font-size: 14pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 14pt;"&gt;[&lt;BR /&gt; AccountNr,PurchaseChannel,Date&lt;BR /&gt; 1,1,02.02.2015&lt;BR /&gt; 1,2,02.02.2015&lt;BR /&gt; 1,2,03.02.2015&lt;BR /&gt; ........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 14pt;"&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Transformed: where PP = PurchaseChannel (1,2,3 converted to 1 or 0s)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN style="color: #800000; font-size: 18pt;"&gt;AccountNr,Date,PC1,PC2,PC3&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 18pt;"&gt; 1,02.02.2015,1,1,0&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 18pt;"&gt; ..............&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 08:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-customers-with-set-analysis/m-p/769289#M273192</guid>
      <dc:creator>felcar2013</dc:creator>
      <dc:date>2015-04-02T08:33:26Z</dc:date>
    </item>
  </channel>
</rss>

