<?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: Rang as dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rang-as-dimension/m-p/343324#M126797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a calculated dimension in your chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=if( FIELD &amp;lt;100, '&amp;lt;100', &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( FIELD &amp;lt;=250, '&amp;gt;=100 and &amp;lt;=250', &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( FIELD &amp;gt;300,'&amp;gt;300')))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and as expression &lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum(FIELD)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe even better would be to calculate a new field in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FIELD,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if( FIELD &amp;lt;100, '&amp;lt;100', if( FIELD &amp;lt;=250, '&amp;gt;=100 and &amp;lt;=250', if( FIELD &amp;gt;300,'&amp;gt;300'))) as CLASS,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM ..;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use that CLASS field in the chart.&lt;/P&gt;&lt;P&gt;[Note that your CLASS has a gap between 250 and 300]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if your classification bins are equally wide, you could also use QV class() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2012 20:06:36 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-08-07T20:06:36Z</dc:date>
    <item>
      <title>Rang as dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Rang-as-dimension/m-p/343323#M126796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have a field that has Nrs in it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total &lt;/P&gt;&lt;P&gt;75&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;250&lt;/P&gt;&lt;P&gt;320&lt;/P&gt;&lt;P&gt;155&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build a chart where the dimension is a range&amp;nbsp; &lt;/P&gt;&lt;P&gt;like the bar chart will show as follow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bar one&amp;nbsp; is &amp;lt;100&amp;nbsp; and the sum is 75&lt;/P&gt;&lt;P&gt;bar two&amp;nbsp; is (&amp;gt;=100 and &amp;lt;= 250) and the sum is 605&lt;/P&gt;&lt;P&gt;bar three is &amp;gt;300 and sum is 320&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody knows what should be the dimension for that or If I have to do&amp;nbsp; that in the script then what should I type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 19:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rang-as-dimension/m-p/343323#M126796</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2012-08-07T19:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rang as dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Rang-as-dimension/m-p/343324#M126797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a calculated dimension in your chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=if( FIELD &amp;lt;100, '&amp;lt;100', &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( FIELD &amp;lt;=250, '&amp;gt;=100 and &amp;lt;=250', &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( FIELD &amp;gt;300,'&amp;gt;300')))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and as expression &lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum(FIELD)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe even better would be to calculate a new field in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FIELD,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if( FIELD &amp;lt;100, '&amp;lt;100', if( FIELD &amp;lt;=250, '&amp;gt;=100 and &amp;lt;=250', if( FIELD &amp;gt;300,'&amp;gt;300'))) as CLASS,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM ..;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use that CLASS field in the chart.&lt;/P&gt;&lt;P&gt;[Note that your CLASS has a gap between 250 and 300]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if your classification bins are equally wide, you could also use QV class() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 20:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rang-as-dimension/m-p/343324#M126797</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-07T20:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rang as dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Rang-as-dimension/m-p/343325#M126798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 21:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rang-as-dimension/m-p/343325#M126798</guid>
      <dc:creator>alec1982</dc:creator>
      <dc:date>2012-08-07T21:01:55Z</dc:date>
    </item>
  </channel>
</rss>

