<?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: Bar chart question sum or count ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711736#M539201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try like this in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;If(Age &amp;gt; 14, 'Over 14',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Age &amp;gt;= 7, '7 - 14', 'Under 7')) as AgeGroup;&lt;/P&gt;&lt;P&gt;LOAD * inline [ &lt;/P&gt;&lt;P&gt;Name, Age&lt;/P&gt;&lt;P&gt;pierre, 45&lt;/P&gt;&lt;P&gt;jean, 23&lt;/P&gt;&lt;P&gt;peter, 13&lt;/P&gt;&lt;P&gt;michael, 11&lt;/P&gt;&lt;P&gt;albert, 8&lt;/P&gt;&lt;P&gt;patricia, 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Sep 2014 03:59:49 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2014-09-19T03:59:49Z</dc:date>
    <item>
      <title>Bar chart question sum or count ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711729#M539186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im trying to build a bar chart that will separate the peoples age in different categories&lt;/P&gt;&lt;P&gt;here is my data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 100%; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;NAME&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;AGE&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;pierre&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;jean&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;peter&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;michael&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;albert&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;patricia&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want my bar chart to represent how many people are under 7 / between 7 and 14 / upper than 14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant get to find the right expression to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help , im sure it is not so complicated but im a very beginner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 18:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711729#M539186</guid>
      <dc:creator />
      <dc:date>2014-09-16T18:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart question sum or count ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711730#M539187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use intervalmatch functionality :&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[Name, Age&lt;/P&gt;&lt;P&gt;pierre,45&lt;/P&gt;&lt;P&gt;jean,23&lt;/P&gt;&lt;P&gt;peter,13&lt;/P&gt;&lt;P&gt;michael,11&lt;/P&gt;&lt;P&gt;albert,8&lt;/P&gt;&lt;P&gt;patricia,5];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interval:&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[Start, End, Description&lt;/P&gt;&lt;P&gt;0,6, &amp;lt;7&lt;/P&gt;&lt;P&gt;7,13, 7-14&lt;/P&gt;&lt;P&gt;14,99, &amp;gt;14];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BridgeTable:&lt;/P&gt;&lt;P&gt;IntervalMatch (Age)&lt;/P&gt;&lt;P&gt;Load distinct Start, End Resident Interval;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 19:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711730#M539187</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-16T19:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart question sum or count ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711731#M539188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 20:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711731#M539188</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-09-16T20:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart question sum or count ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711732#M539189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer massimo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if my name name colum contains 10000 records?&lt;/P&gt;&lt;P&gt;I was thinking of building a chart referencing the table and for each bar of the chart make a formula without using alternative table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will write it in natural language as i am not sure of the qlikview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i wanna see the number of people on the vertical axis&lt;/P&gt;&lt;P&gt;on the horizontal the bar with the number of people under 7 years for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so for this write something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if age under 7 then count the number of people and display it : i would label it &amp;lt;7 years&lt;/P&gt;&lt;P&gt;if age between 7 and 15 then count number of people etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just not sure that your solution is adaptable to my scale of people, or is it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 19:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711732#M539189</guid>
      <dc:creator />
      <dc:date>2014-09-18T19:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart question sum or count ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711733#M539192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you see any way to do it without a bridge table? directly in the formula of the chart ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 19:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711733#M539192</guid>
      <dc:creator />
      <dc:date>2014-09-18T19:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart question sum or count ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711734#M539195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may use script similar to the one below. Use AgeGroup as Dimension and Count(NAME) as Expression in a bar chart.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #800000; font-size: 8pt;"&gt;AGE&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt; 7,'Under 7',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #800000; font-size: 8pt;"&gt;AGE&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt; 14,'Over 14','7 - 14')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #800000; font-size: 8pt;"&gt;AgeGroup&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #800000; font-size: 8pt;"&gt;[ &lt;BR /&gt;NAME, AGE&lt;BR /&gt;pierre, 45&lt;BR /&gt;jean, 23&lt;BR /&gt;peter, 13&lt;BR /&gt;michael, 11&lt;BR /&gt;albert, 8&lt;BR /&gt;patricia, 5&lt;BR /&gt;]&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 19:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711734#M539195</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2014-09-18T19:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Bar chart question sum or count ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711735#M539198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can manage with class function and if as already posted (in the attachment 10000 different names)&lt;/P&gt;&lt;P&gt;you can also calculate every bar with an expression (last sheet in the attachment)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 20:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711735#M539198</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-09-18T20:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart question sum or count ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711736#M539201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try like this in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;If(Age &amp;gt; 14, 'Over 14',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Age &amp;gt;= 7, '7 - 14', 'Under 7')) as AgeGroup;&lt;/P&gt;&lt;P&gt;LOAD * inline [ &lt;/P&gt;&lt;P&gt;Name, Age&lt;/P&gt;&lt;P&gt;pierre, 45&lt;/P&gt;&lt;P&gt;jean, 23&lt;/P&gt;&lt;P&gt;peter, 13&lt;/P&gt;&lt;P&gt;michael, 11&lt;/P&gt;&lt;P&gt;albert, 8&lt;/P&gt;&lt;P&gt;patricia, 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 03:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-question-sum-or-count/m-p/711736#M539201</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-09-19T03:59:49Z</dc:date>
    </item>
  </channel>
</rss>

