<?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: How to make a Histogram chart with the given data? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-make-a-Histogram-chart-with-the-given-data/m-p/345949#M1172644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use your examlpe to solve my problem but I can do it.&lt;/P&gt;&lt;P&gt;I have data (Diferença) between some value and I want to count the value between 0-1, 1-2, 2-3 and 3 or greater.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this code to the calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(if(Diferença&amp;lt;1, '0-1',&lt;/P&gt;&lt;P&gt;if(Diferença&amp;gt;1 and Diferença&amp;lt;=2, '1-2',&lt;/P&gt;&lt;P&gt;if(Diferença&amp;gt;2 and Diferença&amp;lt;=3, '2-3',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Diferença&amp;gt;3, '&amp;gt;3')))),Diferença).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the chart it says 'No numeric values on x-axis'. Can someone help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Feb 2015 15:25:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-02T15:25:43Z</dc:date>
    <item>
      <title>How to make a Histogram chart with the given data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-Histogram-chart-with-the-given-data/m-p/345944#M1172637</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;&lt;/P&gt;&lt;P&gt;My data is in this format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column1(Country)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column2(Product)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column3(Netsales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dove&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 250&lt;/P&gt;&lt;P&gt; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sunsilk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Panteen&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 300&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the list goes on, now what i want is to plot a histogram chart.&lt;/P&gt;&lt;P&gt;Whenever i select a country i should get all the products under that country as bar where each bar represents a product and the BIN should be below avg, avg and above average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply if anyone has any idea, if possible tell me the expressions and dimenssions as i don't have Licensed version of QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Sagar Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jun 2012 18:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-Histogram-chart-with-the-given-data/m-p/345944#M1172637</guid>
      <dc:creator />
      <dc:date>2012-06-10T18:23:48Z</dc:date>
    </item>
    <item>
      <title>How to make a Histogram chart with the given data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-Histogram-chart-with-the-given-data/m-p/345945#M1172638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't fully understood what you mean with '...&lt;EM&gt;all&lt;/EM&gt; products under that country as bar where each bar represents a product and the &lt;EM&gt;BIN &lt;/EM&gt;should be below avg, avg and above average.', i.e. showing &lt;EM&gt;all &lt;/EM&gt;countries and showing bins seems to me a bit controversial. &lt;/P&gt;&lt;P&gt;Maybe you could post the expected outcome for the above, or a somewhat more complex, sample data (as hand-drawing, excel table etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jun 2012 22:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-Histogram-chart-with-the-given-data/m-p/345945#M1172638</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-10T22:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Histogram chart with the given data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-Histogram-chart-with-the-given-data/m-p/345946#M1172640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks for the Reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what i want, say 1 have 10 counties and each country has 20 products(May be distinct or may not be), now if i select a country from the list box i should get a histogram which consist of products which fall in the selected country(represented as bars) and my X axis should have three buckets:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: Below average(all prducts whose sales is below average, say: 0-120)&lt;/P&gt;&lt;P&gt;2: Average( all products whose sales are average, say: 120-300)&lt;/P&gt;&lt;P&gt;3: Above average(all products whose sales is above average, say: 300+)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will make you clear about my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot again for replying&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sagar Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 03:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-Histogram-chart-with-the-given-data/m-p/345946#M1172640</guid>
      <dc:creator />
      <dc:date>2012-06-11T03:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Histogram chart with the given data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-Histogram-chart-with-the-given-data/m-p/345947#M1172641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sagar Gupta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could create a calculated dimension for your bar chart, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=aggr(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(sum(Sales) &amp;lt;= avg(total aggr(sum(Sales),Product))-$(vRangeAvg),'Below avg -$(vRangeAvg)'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,if(sum(Sales) &amp;lt;= avg(total aggr(sum(Sales),Product))+$(vRangeAvg),'avg +-$(vRangeAvg)'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,'above avg+$(vRangeAvg)')), &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Product)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and as expression in your bar chart:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count(distinct Product)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculated dimension is grouping your products into 3 bins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created an input box with a variable vRangeAvg to control the width of the average+-X bin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also create something similar in the chart, but if you need to be selection sensitive (i.e. selection on Products / products group), I would go for the calculated dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that you can't open the file, but maybe anybody elser want to see a sample, so I am attaching one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 07:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-Histogram-chart-with-the-given-data/m-p/345947#M1172641</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-11T07:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Histogram chart with the given data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-Histogram-chart-with-the-given-data/m-p/345948#M1172643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I think if you using the Class() function will help make this alot easier.&amp;nbsp; Here is a quick copy/paste from the manual:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;class(expression, interval [ , label [ , offset ]])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Creates a classification of expressions. The bin width is determined by the number set as interval. The result&lt;/P&gt;&lt;P&gt;is shown as a&amp;lt;=x&amp;lt;b, where a and b are the upper and lower limits of the bin. The x can be replaced by an&lt;/P&gt;&lt;P&gt;arbitrary string stated in label. 0 is normally the default starting point of the classification. This can be&lt;/P&gt;&lt;P&gt;changed by adding an offset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Examples:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;class( var,10 ) with var = 23 returns '20&amp;lt;=x&amp;lt;30'&lt;/P&gt;&lt;P&gt;class( var,5,'value' ) with var = 23 returns '20&amp;lt;= value &amp;lt;25'&lt;/P&gt;&lt;P&gt;class( var,10,'x',5 ) with var = 23 returns '15&amp;lt;=x&amp;lt;25'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 00:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-Histogram-chart-with-the-given-data/m-p/345948#M1172643</guid>
      <dc:creator />
      <dc:date>2012-06-15T00:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Histogram chart with the given data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-Histogram-chart-with-the-given-data/m-p/345949#M1172644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use your examlpe to solve my problem but I can do it.&lt;/P&gt;&lt;P&gt;I have data (Diferença) between some value and I want to count the value between 0-1, 1-2, 2-3 and 3 or greater.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this code to the calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(if(Diferença&amp;lt;1, '0-1',&lt;/P&gt;&lt;P&gt;if(Diferença&amp;gt;1 and Diferença&amp;lt;=2, '1-2',&lt;/P&gt;&lt;P&gt;if(Diferença&amp;gt;2 and Diferença&amp;lt;=3, '2-3',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Diferença&amp;gt;3, '&amp;gt;3')))),Diferença).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the chart it says 'No numeric values on x-axis'. Can someone help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 15:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-Histogram-chart-with-the-given-data/m-p/345949#M1172644</guid>
      <dc:creator />
      <dc:date>2015-02-02T15:25:43Z</dc:date>
    </item>
  </channel>
</rss>

