<?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: Class aggregation (histogram) - force to start from 1 and not zero in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526695#M196837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And another question that your experience may help with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any tips on how to make this into a % graph, so like a mecca but with the same column widths? I would normally divide by the sum of the category total but I can't see how I'd code in the category total since it is not a defined field!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, I really appreciate it,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isabel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2013 10:11:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-25T10:11:50Z</dc:date>
    <item>
      <title>Class aggregation (histogram) - force to start from 1 and not zero</title>
      <link>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526690#M196832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am using the following function to make a histogram :&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),3),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[All Codes]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;When my class width is 1, my&amp;nbsp; categories start from 1 (i.e. 1&amp;lt;=x&amp;lt;2), but when I set my class width as 3 as in the formula above, it unhelpfully starts from zero (.e. 0&amp;lt;=x&amp;lt;3). How can I make it so that my first category is 1&amp;lt;=x&amp;lt;4?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Many thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Isabel &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 09:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526690#M196832</guid>
      <dc:creator />
      <dc:date>2013-10-25T09:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Class aggregation (histogram) - force to start from 1 and not zero</title>
      <link>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526691#M196833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using the &lt;EM&gt;offset&lt;/EM&gt; parameter to class() function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),3, 'x', 1 ),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[All Codes]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 09:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526691#M196833</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-25T09:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Class aggregation (histogram) - force to start from 1 and not zero</title>
      <link>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526692#M196834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works a dream - thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 09:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526692#M196834</guid>
      <dc:creator />
      <dc:date>2013-10-25T09:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Class aggregation (histogram) - force to start from 1 and not zero</title>
      <link>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526693#M196835</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;Is it possible to also cap the expression, so I have 7+ as one category? Dimension limits want to work of the value in the category, rather that the category its self!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thank,&lt;/P&gt;&lt;P&gt;Isabel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 10:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526693#M196835</guid>
      <dc:creator />
      <dc:date>2013-10-25T10:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Class aggregation (histogram) - force to start from 1 and not zero</title>
      <link>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526694#M196836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(if(count(distinct Month)&amp;lt;7,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),3, 'x', 1 ), dual('7+',7) ) ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[All Codes]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 10:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526694#M196836</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-25T10:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Class aggregation (histogram) - force to start from 1 and not zero</title>
      <link>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526695#M196837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And another question that your experience may help with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any tips on how to make this into a % graph, so like a mecca but with the same column widths? I would normally divide by the sum of the category total but I can't see how I'd code in the category total since it is not a defined field!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, I really appreciate it,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isabel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 10:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526695#M196837</guid>
      <dc:creator />
      <dc:date>2013-10-25T10:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Class aggregation (histogram) - force to start from 1 and not zero</title>
      <link>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526696#M196838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked perfectly too - I'm so pleased. Thanks for your quick responses!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isabel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 10:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526696#M196838</guid>
      <dc:creator />
      <dc:date>2013-10-25T10:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Class aggregation (histogram) - force to start from 1 and not zero</title>
      <link>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526697#M196839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understood your % graph request correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your current expression in the chart? Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct [All Codes])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try &lt;/P&gt;&lt;P&gt;=count(distinct [All Codes]) / count(total distinct [All codes])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using a second dimension, Category, then you can add this to the total field list:&lt;/P&gt;&lt;P&gt;=count(distinct [All Codes]) / count(total&amp;lt;Category&amp;gt; distinct [All codes])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And format this expression as percentage on number tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 10:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-aggregation-histogram-force-to-start-from-1-and-not-zero/m-p/526697#M196839</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-25T10:25:06Z</dc:date>
    </item>
  </channel>
</rss>

