<?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: getting a count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/getting-a-count/m-p/530954#M1125024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can I use a static box for this? I only want to get the item count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Jan 2014 08:16:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-18T08:16:29Z</dc:date>
    <item>
      <title>getting a count</title>
      <link>https://community.qlik.com/t5/QlikView/getting-a-count/m-p/530953#M1125023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, I have fields like BRAND, CATEGORY, LOCATION and ITEM. I want to get the count of ITEM when i selected each field. As an example, if I selected one of the BRAND then how many ITEMs are there and If I selected a BRAND and one of its CATEGORY then ITEM count should be change. how can I do this. pls help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 08:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-a-count/m-p/530953#M1125023</guid>
      <dc:creator />
      <dc:date>2014-01-18T08:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: getting a count</title>
      <link>https://community.qlik.com/t5/QlikView/getting-a-count/m-p/530954#M1125024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can I use a static box for this? I only want to get the item count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 08:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-a-count/m-p/530954#M1125024</guid>
      <dc:creator />
      <dc:date>2014-01-18T08:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: getting a count</title>
      <link>https://community.qlik.com/t5/QlikView/getting-a-count/m-p/530955#M1125025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i use total count with the static box for Item, then it displays N\A. why is that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 08:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-a-count/m-p/530955#M1125025</guid>
      <dc:creator />
      <dc:date>2014-01-18T08:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: getting a count</title>
      <link>https://community.qlik.com/t5/QlikView/getting-a-count/m-p/530956#M1125026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dushan,&lt;/P&gt;&lt;P&gt;I assume you have a text value in ITEM field.&lt;/P&gt;&lt;P&gt;We can statistics only for the fields which have numeric values, but only one field at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have better ways to do it in straight table.&lt;/P&gt;&lt;P&gt;1. Create a cyclic group for the BRAND, CATEGORY, LOCATION&lt;/P&gt;&lt;P&gt;2. Insert a straight table and enter Cyclic group name in the dimension.&lt;/P&gt;&lt;P&gt;3. In the expression enter COUNT(DISTINCT ITEM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should help.&lt;/P&gt;&lt;P&gt;There is even one better way to do this, it is advised not to use COUNT so we can create an additional column which will have just single value 1 like below:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as CountFlag&lt;/P&gt;&lt;P&gt;FROM []&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the table above use Sum(CountFlag) and it will be much performance optimized. The only thing is that ITEM should be the most granular level in data. Since one CountFlag will refer to one ITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 09:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-a-count/m-p/530956#M1125026</guid>
      <dc:creator>gopalopsharma</dc:creator>
      <dc:date>2014-01-18T09:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: getting a count</title>
      <link>https://community.qlik.com/t5/QlikView/getting-a-count/m-p/530957#M1125027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 09:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-a-count/m-p/530957#M1125027</guid>
      <dc:creator />
      <dc:date>2014-01-18T09:28:04Z</dc:date>
    </item>
  </channel>
</rss>

