<?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: Customize Class Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Customize-Class-Function/m-p/984131#M335854</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;Try this in your script below the SUM Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;gt;=0 and &lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;lt;=3,Dual('0-3,0',1),&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;gt;=4 and &lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;lt;=6,Dual('4-6',2),&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;gt;=7 and &lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;lt;=9,Dual('7-9',3),&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;gt;=10 and &lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;lt;=14,Dual('10-14',4),&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;gt;=15 and &lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;lt;=19,Dual('15-19',5),&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;gt;20,Dual('Above 20',6))))))))) as&amp;nbsp; Band&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2015 09:32:57 GMT</pubDate>
    <dc:creator>krishna20</dc:creator>
    <dc:date>2015-10-15T09:32:57Z</dc:date>
    <item>
      <title>Customize Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Class-Function/m-p/984128#M335851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im currently using the class function and i get the result below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="196"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Band&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Sum&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;0 - 3&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1 100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;3 - 6&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;25 600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;6 - 9&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;9 - 12&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;946&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;12 - 15&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;6 324&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;15 - 18&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1 659&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;18 - 21&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However my desired result would be the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 196px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="98"&gt;Band&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="98"&gt;Sum&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;0 - 3&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;1 100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;3 - 6&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;25 600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;6 - 9&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;9 - 12&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;946&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;12 +&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;8 083&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this? Where you could set a max on the class like my example above of 12+, instead of 12 - 15, 15 -18 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second thing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Is there a way to customize the Class?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 - 3,&lt;/P&gt;&lt;P&gt;4 - 6,&lt;/P&gt;&lt;P&gt;7 - 9,&lt;/P&gt;&lt;P&gt;10 - 14,&lt;/P&gt;&lt;P&gt;15 - 19 etc ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 08:55:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Class-Function/m-p/984128#M335851</guid>
      <dc:creator />
      <dc:date>2015-10-15T08:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Class-Function/m-p/984129#M335852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Magen, for the first thing you can check first the '+12' and then use class, ie:&lt;/P&gt;&lt;P&gt;If(Band&amp;gt;12, '+12', class(...))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the second, if you don't have a fixed step beteween values you should apply each condition using concatenated 'If':&lt;/P&gt;&lt;P&gt;If(Band&amp;lt;4, '0-3', //Better using Dual('0-3', 0) instead of the string '0-3', helps sorting values&lt;/P&gt;&lt;P&gt; If(Band&amp;lt;7, '4-6',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example you don't have fixed steps:&lt;/P&gt;&lt;P&gt;0 - 3, //4 values&lt;/P&gt;&lt;P&gt;4 - 6, // 3 values&lt;/P&gt;&lt;P&gt;7 - 9, // 3 values&lt;/P&gt;&lt;P&gt;10 - 14, // 5 values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 09:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Class-Function/m-p/984129#M335852</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-10-15T09:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Class-Function/m-p/984130#M335853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this Sample app .it might help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 09:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Class-Function/m-p/984130#M335853</guid>
      <dc:creator>nagarjuna_kotha</dc:creator>
      <dc:date>2015-10-15T09:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Class-Function/m-p/984131#M335854</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;Try this in your script below the SUM Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;gt;=0 and &lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;lt;=3,Dual('0-3,0',1),&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;gt;=4 and &lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;lt;=6,Dual('4-6',2),&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;gt;=7 and &lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;lt;=9,Dual('7-9',3),&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;gt;=10 and &lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;lt;=14,Dual('10-14',4),&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;gt;=15 and &lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;lt;=19,Dual('15-19',5),&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;SUM &lt;/SPAN&gt;&amp;gt;20,Dual('Above 20',6))))))))) as&amp;nbsp; Band&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 09:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Class-Function/m-p/984131#M335854</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2015-10-15T09:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Customize-Class-Function/m-p/984132#M335855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in script or expression &lt;/P&gt;&lt;P&gt;Text(If(Temp&lt;SPAN style="font-size: 13.3333px;"&gt;Brand&lt;/SPAN&gt;&amp;lt;12,Replace(Class(&lt;SPAN style="font-size: 13.3333px;"&gt;Temp&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Brand&lt;/SPAN&gt;,6),' &amp;lt;= x &amp;lt; ','-'),'+12')) as Brand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Text(If(Temp&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Brand&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;12,Replace(Class(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Temp&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Brand&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,6),' &amp;lt;= x &amp;lt; ','-'),'+12')) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 10:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customize-Class-Function/m-p/984132#M335855</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2015-10-15T10:15:18Z</dc:date>
    </item>
  </channel>
</rss>

