<?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 Counting customers with spend between certain values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-customers-with-spend-between-certain-values/m-p/706351#M475802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to build a table which counts the number of customers spending in pre specified bands. Someone had asked a similar question a couple of years ago and got an answer which I can't make work for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our data customers are location_id, sales are customer_gross_sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my first spend segment I've written the following piece of set analysis: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN style="font-size: 10pt;"&gt;=count({$&amp;lt;location_id={"sum(customer_gross_sales)&amp;gt;0"}*{"=sum(customer_gross_sales)&amp;lt;1000"}&amp;gt;} distinct location_id)&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the dimension I've put yr_date (which brings up Jan_2014 etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No data has populated my table &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is my formula to count customers wrong, or should I be using a different dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2014 13:42:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-03T13:42:42Z</dc:date>
    <item>
      <title>Counting customers with spend between certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-customers-with-spend-between-certain-values/m-p/706351#M475802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to build a table which counts the number of customers spending in pre specified bands. Someone had asked a similar question a couple of years ago and got an answer which I can't make work for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our data customers are location_id, sales are customer_gross_sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my first spend segment I've written the following piece of set analysis: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN style="font-size: 10pt;"&gt;=count({$&amp;lt;location_id={"sum(customer_gross_sales)&amp;gt;0"}*{"=sum(customer_gross_sales)&amp;lt;1000"}&amp;gt;} distinct location_id)&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the dimension I've put yr_date (which brings up Jan_2014 etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No data has populated my table &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is my formula to count customers wrong, or should I be using a different dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 13:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-customers-with-spend-between-certain-values/m-p/706351#M475802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-03T13:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Counting customers with spend between certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-customers-with-spend-between-certain-values/m-p/706352#M475803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like this:&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;location_id={"=sum(customer_gross_sales)&amp;gt;0 and sum(customer_gross_sales)&amp;lt;1000"}&amp;gt;} distinct location_id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 13:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-customers-with-spend-between-certain-values/m-p/706352#M475803</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-07-03T13:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Counting customers with spend between certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-customers-with-spend-between-certain-values/m-p/706353#M475804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert, that worked. I hadn't realised you could use "and" in set analysis and thought you were restricted to +,-,* etc. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 13:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-customers-with-spend-between-certain-values/m-p/706353#M475804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-03T13:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Counting customers with spend between certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-customers-with-spend-between-certain-values/m-p/706354#M475805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert, if I wanted to modify this fomula to count customers of a certain type only how would I do this? We have DDs and IPs and there is a table which ties this to location_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would I do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=count({$&amp;lt;location_id={"=sum(customer_gross_sales)&amp;gt;0 and sum(customer_gross_sales)&amp;lt;1000"}, DD_IP ="IP" &amp;gt;} distinct location_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 14:27:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-customers-with-spend-between-certain-values/m-p/706354#M475805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-03T14:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Counting customers with spend between certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-customers-with-spend-between-certain-values/m-p/706355#M475806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignore that last one I managed to work it out (I think). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;location_id={"=sum(customer_gross_sales)&amp;gt;0 and sum(customer_gross_sales)&amp;lt;1000"}, DD_IP= {'IP'} &amp;gt;} distinct location_id) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 14:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-customers-with-spend-between-certain-values/m-p/706355#M475806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-03T14:33:11Z</dc:date>
    </item>
  </channel>
</rss>

