<?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 Count help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-help/m-p/323862#M1196221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Removed - duplicated the post - sorry!]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Apr 2011 17:02:44 GMT</pubDate>
    <dc:creator>chris_johnson</dc:creator>
    <dc:date>2011-04-26T17:02:44Z</dc:date>
    <item>
      <title>Count help</title>
      <link>https://community.qlik.com/t5/QlikView/Count-help/m-p/323852#M1196211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have data something like this&lt;BR /&gt;&lt;BR /&gt;Acct_Prod:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Acct, Product&lt;BR /&gt; Acct_A, Prod_A&lt;BR /&gt; Acct_A, Prod_B&lt;BR /&gt; Acct_B, Prod_A&lt;BR /&gt; Acct_B, Prod_B&lt;BR /&gt; Acct_C, Prod_B&lt;BR /&gt; Acct_C, Prod_C&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;want to calculate Avg products per purchasing Acct&lt;BR /&gt;&lt;BR /&gt;the total number of Products purchased by purchasing Accts / total number of unique purchasing Accts&lt;BR /&gt;&lt;BR /&gt;E.g.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Acct Acct_A purchased Prod_A, Prod_B.&lt;BR /&gt;Acct Acct_B purchased Prod_A and Prod_B, and&lt;BR /&gt;Acct Acct_C purchased Prod_B and Prod_C.&lt;BR /&gt;&lt;BR /&gt;For Prod_A:&lt;BR /&gt;&lt;BR /&gt;Total number of products purchased = 4 (Prod_A, Prod_B (for Acct_A), Prod_A, Prod_B (for Acct_B))&lt;BR /&gt;Total number of purchasing Accts 2. (Acct_A, Acct_B)&lt;BR /&gt;&lt;BR /&gt;Avg products per purchasing Acct = 4/2.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 21:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-help/m-p/323852#M1196211</guid>
      <dc:creator />
      <dc:date>2011-04-25T21:37:04Z</dc:date>
    </item>
    <item>
      <title>Count help</title>
      <link>https://community.qlik.com/t5/QlikView/Count-help/m-p/323853#M1196212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, but how do you get this result:&lt;/P&gt;&lt;P&gt;Total number of products purchased = 4 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 22:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-help/m-p/323853#M1196212</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-04-25T22:02:24Z</dc:date>
    </item>
    <item>
      <title>Count help</title>
      <link>https://community.qlik.com/t5/QlikView/Count-help/m-p/323854#M1196213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the above e.g is for Prod_A&lt;BR /&gt;&lt;BR /&gt;Prod_A contains in 2 Acct's (Acct_A &amp;amp; Acct_B), so total number of products in those 2 accts is 4 (No distinct)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 22:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-help/m-p/323854#M1196213</guid>
      <dc:creator />
      <dc:date>2011-04-25T22:13:14Z</dc:date>
    </item>
    <item>
      <title>Count help</title>
      <link>https://community.qlik.com/t5/QlikView/Count-help/m-p/323855#M1196214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not sure i have understood your question.&lt;/P&gt;&lt;P&gt;Check the attached application and let me the solution soulves your problem.&lt;/P&gt;&lt;P&gt;- Sridhar &lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 04:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-help/m-p/323855#M1196214</guid>
      <dc:creator />
      <dc:date>2011-04-26T04:22:36Z</dc:date>
    </item>
    <item>
      <title>Count help</title>
      <link>https://community.qlik.com/t5/QlikView/Count-help/m-p/323856#M1196215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope its not working... any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 16:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-help/m-p/323856#M1196215</guid>
      <dc:creator />
      <dc:date>2011-04-26T16:09:43Z</dc:date>
    </item>
    <item>
      <title>Count help</title>
      <link>https://community.qlik.com/t5/QlikView/Count-help/m-p/323857#M1196216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't solve your prob`s is it? what is the problem..? could you pl be specific and clear?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 16:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-help/m-p/323857#M1196216</guid>
      <dc:creator />
      <dc:date>2011-04-26T16:17:54Z</dc:date>
    </item>
    <item>
      <title>Count help</title>
      <link>https://community.qlik.com/t5/QlikView/Count-help/m-p/323858#M1196217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand this correctly then, in your example you want to total up the number of products sold to a customers who have baught product A?&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 16:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-help/m-p/323858#M1196217</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2011-04-26T16:46:41Z</dc:date>
    </item>
    <item>
      <title>Count help</title>
      <link>https://community.qlik.com/t5/QlikView/Count-help/m-p/323859#M1196218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes exactly..&lt;/P&gt;&lt;P&gt;Also I have attached a sample how I want to show my chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 16:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-help/m-p/323859#M1196218</guid>
      <dc:creator />
      <dc:date>2011-04-26T16:48:59Z</dc:date>
    </item>
    <item>
      <title>Count help</title>
      <link>https://community.qlik.com/t5/QlikView/Count-help/m-p/323860#M1196219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm half way there:&lt;/P&gt;&lt;P&gt;=count ({$&amp;lt;Acct = (P({1&amp;lt;Product={'Prod_A'}&amp;gt;}))&amp;gt;} Product)&lt;/P&gt;&lt;P&gt;That will give you the number of products sold to accounts who have bought 'Prod_A' (I think! - I'm making it up as I go along!)&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 16:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-help/m-p/323860#M1196219</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2011-04-26T16:57:37Z</dc:date>
    </item>
    <item>
      <title>Count help</title>
      <link>https://community.qlik.com/t5/QlikView/Count-help/m-p/323861#M1196220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this?&lt;/P&gt;&lt;P&gt;=count ({$&amp;lt;Acct = (P({1&amp;lt;Product={'Prod_A'}&amp;gt;}))&amp;gt;} Product) /&lt;BR /&gt; count ({$&amp;lt;Acct = (P({1&amp;lt;Product={'Prod_A'}&amp;gt;}))&amp;gt;} distinct Product)&lt;/P&gt;&lt;P&gt;I'd try it out though as I'm making it up using the example qvd from a few posts back!!&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 17:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-help/m-p/323861#M1196220</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2011-04-26T17:01:36Z</dc:date>
    </item>
    <item>
      <title>Count help</title>
      <link>https://community.qlik.com/t5/QlikView/Count-help/m-p/323862#M1196221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Removed - duplicated the post - sorry!]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 17:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-help/m-p/323862#M1196221</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2011-04-26T17:02:44Z</dc:date>
    </item>
    <item>
      <title>Count help</title>
      <link>https://community.qlik.com/t5/QlikView/Count-help/m-p/323863#M1196222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm. My answer seems to work in a text box but not when put into a chart. I'm hoping someone can explain why and finish the job!&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 17:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-help/m-p/323863#M1196222</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2011-04-26T17:05:39Z</dc:date>
    </item>
    <item>
      <title>Count help</title>
      <link>https://community.qlik.com/t5/QlikView/Count-help/m-p/323864#M1196223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes.. I want it for chart...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 17:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-help/m-p/323864#M1196223</guid>
      <dc:creator />
      <dc:date>2011-04-26T17:07:48Z</dc:date>
    </item>
    <item>
      <title>Count help</title>
      <link>https://community.qlik.com/t5/QlikView/Count-help/m-p/323865#M1196224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is the solution&lt;/P&gt;&lt;P&gt;=sum( aggr(nodistinct count({1} distinct [Product]),ACCT))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 19:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-help/m-p/323865#M1196224</guid>
      <dc:creator />
      <dc:date>2011-04-26T19:46:06Z</dc:date>
    </item>
  </channel>
</rss>

