<?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 in chart expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-in-chart-expression/m-p/188639#M51826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New chart (table type) -&amp;gt; add dimension ParentID -&amp;gt; add expression "=Count( Children )"&lt;/P&gt;&lt;P&gt;And uncheck "Supress zero values".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2009 01:18:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-16T01:18:03Z</dc:date>
    <item>
      <title>Counting in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-in-chart-expression/m-p/188638#M51825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I've a question regarding counting of children inside a hierarchy.&lt;/P&gt;&lt;P&gt;I have 2 fields: ID and ParentID.&lt;/P&gt;&lt;P&gt;I have to create a chart with ID as a dimension, and an expression that would count the number of children associated to the ParentID.&lt;/P&gt;&lt;P&gt;So, for example, if I have a table of IDs and ParentIDs&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH&gt;ID&lt;/TH&gt;&lt;TH&gt;ParentID&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I wanted to have a resulting table chart like this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH&gt;ID&lt;/TH&gt;&lt;TH&gt;Children&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;How can I accomplish this task without writing load scripts?&lt;/P&gt;&lt;P&gt;I tried the expression:&lt;BR /&gt;count({&amp;lt;ParentID=ID&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;but without any success.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Valera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 01:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-in-chart-expression/m-p/188638#M51825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-16T01:01:06Z</dc:date>
    </item>
    <item>
      <title>Counting in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-in-chart-expression/m-p/188639#M51826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New chart (table type) -&amp;gt; add dimension ParentID -&amp;gt; add expression "=Count( Children )"&lt;/P&gt;&lt;P&gt;And uncheck "Supress zero values".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 01:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-in-chart-expression/m-p/188639#M51826</guid>
      <dc:creator />
      <dc:date>2009-12-16T01:18:03Z</dc:date>
    </item>
    <item>
      <title>Counting in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-in-chart-expression/m-p/188640#M51827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I can't do that because all my tables are connected through the field ID and not ParentID. So, I am forced to insert ID as my dimension if I want to add also other related fields from different tables like Name, Date, PurchaseValue etc.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 05:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-in-chart-expression/m-p/188640#M51827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-16T05:57:13Z</dc:date>
    </item>
  </channel>
</rss>

