<?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 Class function showing issue when using if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Class-function-showing-issue-when-using-if/m-p/958571#M329130</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;I have a problem when I use the class function, please see below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="106357" alt="Class1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106357_Class1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I use this dimension to show the sum(VALUE) in a chart :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="106358" alt="class2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/106358_class2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it shows like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="106359" alt="class3.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/106359_class3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder why it didn't show the 2 &amp;lt;= &amp;lt; 10000,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to show like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="106360" alt="Class4.PNG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/106360_Class4.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why it shows 0 &amp;lt;=,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please help me to do that? Or if you have any other method, please tell me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order need to like above and I also try to use like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(F1&amp;lt;-100,class(F1,1,''),if(F1&amp;lt;0,class(F1,0.05,''),if(F1&amp;lt;2,class(F1,0.01,''),&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;lt;=')))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think it is a little ugly and it must have better way to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and any questions please tell me, you can use the attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Nov 2015 02:39:07 GMT</pubDate>
    <dc:creator>uacg0009</dc:creator>
    <dc:date>2015-11-23T02:39:07Z</dc:date>
    <item>
      <title>Class function showing issue when using if</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-showing-issue-when-using-if/m-p/958571#M329130</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;I have a problem when I use the class function, please see below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="106357" alt="Class1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106357_Class1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I use this dimension to show the sum(VALUE) in a chart :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="106358" alt="class2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/106358_class2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it shows like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="106359" alt="class3.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/106359_class3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder why it didn't show the 2 &amp;lt;= &amp;lt; 10000,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to show like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="106360" alt="Class4.PNG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/106360_Class4.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why it shows 0 &amp;lt;=,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please help me to do that? Or if you have any other method, please tell me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order need to like above and I also try to use like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(F1&amp;lt;-100,class(F1,1,''),if(F1&amp;lt;0,class(F1,0.05,''),if(F1&amp;lt;2,class(F1,0.01,''),&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;lt;=')))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think it is a little ugly and it must have better way to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and any questions please tell me, you can use the attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 02:39:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-function-showing-issue-when-using-if/m-p/958571#M329130</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2015-11-23T02:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Class function showing issue when using if</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-showing-issue-when-using-if/m-p/958572#M329131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this as your calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;=If(F1 &amp;lt; -100,&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Class(F1,1,''),&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt; If(F1 &amp;lt; 0,&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Class(F1,0.05,''),&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt; If(F1 &amp;lt; 2,&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Class(F1,0.01,''),&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt; If(F1 &amp;lt; 10000 and F1 &amp;gt;= 2, Dual('2 &amp;lt;= &amp;lt; 10000', 5001), '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;lt;='))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106361_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 02:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-function-showing-issue-when-using-if/m-p/958572#M329131</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-23T02:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Class function showing issue when using if</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-showing-issue-when-using-if/m-p/958573#M329132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first time to use DUAL function, if possible could you please tell me when I can use it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have another question &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dual('2 &amp;lt;= &amp;lt; 10000', 5001) &lt;/STRONG&gt;in your suggestion : can I change the 5001 to any number? do some other columns will affect the column's value when I use 5001, or the value will affect other columns value when i use 5001?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just afraid of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 03:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-function-showing-issue-when-using-if/m-p/958573#M329132</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2015-11-23T03:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Class function showing issue when using if</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-showing-issue-when-using-if/m-p/958574#M329133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put the number 5001 as an average of 2 and 10000, but I think the idea is to put a number which would making the sorting correct. This number can be any number bigger than 2 in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dual function is a function which is used when you want to assign a numeric value to a text. In this case '2 &amp;lt;= &amp;lt; 10000' is text, but it also was assigned a numeric value of 5001. Again did it so that it can be sorted properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 03:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-function-showing-issue-when-using-if/m-p/958574#M329133</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-23T03:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Class function showing issue when using if</title>
      <link>https://community.qlik.com/t5/QlikView/Class-function-showing-issue-when-using-if/m-p/958575#M329134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it！ Thank you so much for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But do you know why the class shows wrong if I use like that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 04:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-function-showing-issue-when-using-if/m-p/958575#M329134</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2015-11-23T04:30:20Z</dc:date>
    </item>
  </channel>
</rss>

