<?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: Creating a variable to count customers spending over a certain amount in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629510#M477016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Each customer has a distinct location_ID so customer and location_ID are synonymous. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2014 08:52:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-12T08:52:02Z</dc:date>
    <item>
      <title>Creating a variable to count customers spending over a certain amount</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629507#M477013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Last week I asked a question where I wanted to count customers spending more than £500 who were buying specific products. Someone gave me the answer to that particular question with this bit of code: &lt;EM&gt;&lt;STRONG&gt;count({&amp;lt;location_id={"=Sum(customer_gross_sales)&amp;gt;500"}&amp;gt;}location_id) &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then want to be able to say what percentage of customers spending more than £500 are buying each product. My question is how to count all of the customers and not just those related to the particular product? Could I establish a variable to count them and then use this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 08:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629507#M477013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-12T08:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a variable to count customers spending over a certain amount</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629508#M477014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;count({&amp;lt;location_id={"=Sum(customer_gross_sales)&amp;gt;500"}&amp;gt;}location_id) / count({1}&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;location_id)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 08:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629508#M477014</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-05-12T08:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a variable to count customers spending over a certain amount</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629509#M477015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems you would like to count how many customers who has having sales more than 500 for each Location, You can achieve using this Sum(Aggr(IF(&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;count({&amp;lt;location_id={"=Sum(customer_gross_sales)&amp;gt;500"}&amp;gt;}location_id)&lt;/STRONG&gt;&lt;/EM&gt;)&amp;gt;1,1),[location_id]))';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chinni Kanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 08:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629509#M477015</guid>
      <dc:creator />
      <dc:date>2014-05-12T08:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a variable to count customers spending over a certain amount</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629510#M477016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Each customer has a distinct location_ID so customer and location_ID are synonymous. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 08:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629510#M477016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-12T08:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a variable to count customers spending over a certain amount</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629511#M477017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anbu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply. What does {1} do when put in front of location_ID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 08:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629511#M477017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-12T08:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a variable to count customers spending over a certain amount</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629512#M477018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In set analysis, 1 Represents the full set of all the records in the application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({1} location_ID) gives the count of all customers in your application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 08:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629512#M477018</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-05-12T08:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a variable to count customers spending over a certain amount</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629513#M477019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I'm pretty sure that's the answer then. Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 09:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629513#M477019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-12T09:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a variable to count customers spending over a certain amount</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629514#M477020</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;"&gt;try this then&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;Sum(Aggr(IF(&lt;/SPAN&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(customer_gross_sales)&amp;gt;500&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,1),[Cust 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;Regards,&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;Chinni Kanna&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 09:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629514#M477020</guid>
      <dc:creator />
      <dc:date>2014-05-12T09:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a variable to count customers spending over a certain amount</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629515#M477021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That didn't actually seem to work as it gave a different number for each product when the number of customers spending more than £500 is the same for each product (although they don't buy all products). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 09:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629515#M477021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-12T09:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a variable to count customers spending over a certain amount</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629516#M477022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please send us sample data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Chinni Kanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 12:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-variable-to-count-customers-spending-over-a-certain/m-p/629516#M477022</guid>
      <dc:creator />
      <dc:date>2014-05-12T12:05:25Z</dc:date>
    </item>
  </channel>
</rss>

