<?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: creating a number band in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/1662745#M1143657</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Class(Aggr(Sum(SumInsured), Cust_ID), 10000, '-'). Slight modification.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jan 2020 04:42:23 GMT</pubDate>
    <dc:creator>basav</dc:creator>
    <dc:date>2020-01-06T04:42:23Z</dc:date>
    <item>
      <title>creating a number band</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546875#M1143638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, in my records I have a numeric field named 'SumInsured'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to do is to band all the records according to the SumInusured field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example, I need to have the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Band&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Record Count&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1 -10000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10001 - 20000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;20001 - 30000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how I can go about this please? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 07:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546875#M1143638</guid>
      <dc:creator />
      <dc:date>2013-09-20T07:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: creating a number band</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546876#M1143640</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 can use AGGR function to get count of records according to SumInsured field. Might be something like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Cust_ID&lt;/SPAN&gt;), &lt;SPAN style="color: #800000;"&gt;SUMINSURED&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Here Cust_ID being the field which you want to count.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 07:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546876#M1143640</guid>
      <dc:creator />
      <dc:date>2013-09-20T07:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: creating a number band</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546877#M1143642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shyamal, what I need to know is how to allocate the SumInsured field to a Band&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 08:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546877#M1143642</guid>
      <dc:creator />
      <dc:date>2013-09-20T08:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: creating a number band</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546878#M1143644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just create a new field in your script as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Sum(&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SUMINSURED&lt;/SPAN&gt;)&amp;gt;0 and Sum(&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SUMINSURED&lt;/SPAN&gt;)&amp;gt;100,'0-1000')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence you can use it in nested if expression or else just assign a value to&amp;nbsp; it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 08:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546878#M1143644</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2013-09-20T08:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: creating a number band</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546879#M1143647</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 can use the class function if you have fixed intervals:&lt;/P&gt;&lt;P&gt;Class(SumInsured, 10000).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to achieve that based on the sum by Cust_ID according to your current selections, you can do it like this:&lt;/P&gt;&lt;P&gt;Class(Aggr(Sum(SumInsured), Cust_ID), 10000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 08:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546879#M1143647</guid>
      <dc:creator />
      <dc:date>2013-09-20T08:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: creating a number band</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546880#M1143650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Jean-Pierre, Class function seems to be what I am looking for.&amp;nbsp; Do you add the class function in the script or in an expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 08:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546880#M1143650</guid>
      <dc:creator />
      <dc:date>2013-09-20T08:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: creating a number band</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546881#M1143654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use calculated dimension using Class function:&lt;/P&gt;&lt;P&gt;Class(SumInusured , 10000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will by default return ranges in format '&amp;lt;= x &amp;lt;'&lt;/P&gt;&lt;P&gt;you can use Replace function on top of it to get the required format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace(Class(SumInusured , 10000), '&amp;lt;= x &amp;lt;', ' - ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 09:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546881#M1143654</guid>
      <dc:creator>AbhijitBansode</dc:creator>
      <dc:date>2013-09-20T09:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: creating a number band</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546882#M1143656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this function also from the script.&lt;/P&gt;&lt;P&gt;But what I've suggested is to use it in your dimension, to be dynamically changed based on your selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 09:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/546882#M1143656</guid>
      <dc:creator />
      <dc:date>2013-09-20T09:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: creating a number band</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/1662745#M1143657</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Class(Aggr(Sum(SumInsured), Cust_ID), 10000, '-'). Slight modification.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 04:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-number-band/m-p/1662745#M1143657</guid>
      <dc:creator>basav</dc:creator>
      <dc:date>2020-01-06T04:42:23Z</dc:date>
    </item>
  </channel>
</rss>

