<?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: Number format in Class() function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398175#M569121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, when I use the sentence = Num(Class([Ventas 2011 (Millones)], 50000, 'Ventas'),'###.###') I have this result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;50.000, and the classes are gone...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that without sacrifying the classes???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2012 19:46:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-11-02T19:46:13Z</dc:date>
    <item>
      <title>Number format in Class() function</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398173#M569119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the Class() function in an Calculated Dimension as this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Class([Ventas 2011 (Millones)], 50000, 'Ventas')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, this is how the Bar Chart looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24557" class="jive-image-thumbnail jive-image" onclick="" alt="Class Bar Chart.png" src="/legacyfs/online/24557_Class Bar Chart.png" style="display: block; margin-left: auto; margin-right: auto;" width="450" /&gt;&lt;/P&gt;&lt;P&gt;And I want the numbers in the dimension to have the number format, i.e. 50.000 &amp;lt;= Ventas &amp;lt; 100.000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 16:49:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398173#M569119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-02T16:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Number format in Class() function</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398174#M569120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Num(ClassExpression,'###.###')&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;= Num(Class([Ventas 2011 (Millones)], 50000, 'Ventas'),'###.###')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 16:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398174#M569120</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-11-02T16:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Number format in Class() function</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398175#M569121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, when I use the sentence = Num(Class([Ventas 2011 (Millones)], 50000, 'Ventas'),'###.###') I have this result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;50.000, and the classes are gone...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that without sacrifying the classes???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 19:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398175#M569121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-02T19:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Number format in Class() function</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398176#M569122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its not possible directly&lt;/P&gt;&lt;P&gt;You need to do some work around&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num(SubField(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Class([Ventas 2011 (Millones)], 50000, 'Ventas')&lt;/SPAN&gt;,' &amp;lt;= &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Ventas&lt;/SPAN&gt; &amp;lt; ', 1),'###.###') &amp;amp; ' &amp;lt;= &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Ventas&lt;/SPAN&gt; &amp;lt; ' &amp;amp; Num(SubField(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Class([Ventas 2011 (Millones)], 50000, 'Ventas')&lt;/SPAN&gt;,' &amp;lt;= &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Ventas&lt;/SPAN&gt; &amp;lt; ',2),'###.###')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 20:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398176#M569122</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-11-02T20:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Number format in Class() function</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398177#M569123</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;Class() returns dual value that has numeric value and text representation.&lt;/P&gt;&lt;P&gt;Num() converts text representation, so this type expressions: Num(Class()) works well without any additional 'work'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that you use implicit aggregation and that's a problem when you add another function.&lt;/P&gt;&lt;P&gt;Choose the aggregation&amp;nbsp; explicitly:&lt;/P&gt;&lt;P&gt;=&lt;STRONG&gt;aggr(&lt;/STRONG&gt;Num(Class([Ventas 2011 (Millones)], 50000))&lt;STRONG&gt;, [Ventas 2011 (Millones)])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Nov 2012 15:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398177#M569123</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-11-03T15:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Number format in Class() function</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398178#M569124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt; Class() returns dual value that has numeric value and text representation.&lt;/P&gt;&lt;P&gt;Num() converts text representation, so this type expressions: Num(Class()) works well without any additional 'work'.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Right, class() returns a dual, but the numeric value will only hold the (AFAIR) lower limit of the interval that class() is creating. So, applying num() will only format that lower limit and replace the text value (which holds the full interval as text) with the formatted numeric value (like Juan observed also).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to keep both limits of the interval in the text representation, I believe you need to use some kind of text manipulation, something along the lines Celambarasan suggested. &lt;/P&gt;&lt;P&gt;Would be nice if QV would just apply the standard number format by default.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Nov 2012 19:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398178#M569124</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-03T19:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Number format in Class() function</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398179#M569125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;50.000, and the classes are gone...&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks, Stefan, I've missunderstood.&lt;/P&gt;&lt;P&gt;I thought all classes rows are gone, not just '&amp;lt;= Ventas &amp;lt; N' from labels...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case don't see the need to use class() with string parsing functions:&lt;/P&gt;&lt;P&gt;=aggr(Num(D&lt;SPAN class="Code"&gt;iv&lt;/SPAN&gt;([Ventas 2011 (Millones)],50000)*50000, '###.###') &amp;amp;&amp;nbsp; ' &amp;lt;= Ventas &amp;lt; ' &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(D&lt;SPAN class="Code"&gt;iv&lt;/SPAN&gt;([Ventas 2011 (Millones)],50000+1)*50000, '###.###'), [Ventas 2011 (Millones)])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2012 10:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398179#M569125</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-11-04T10:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Number format in Class() function</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398180#M569126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right, if you need to change the string format that class() will return, it's probably better not to use class() at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if the classification is only based on field value (no aggregation, not depending on selection state), like in the discussed chart, I think it's even better to calculate the classification in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then use one of the classification methods discussed here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/message/240288#240288"&gt;http://community.qlik.com/message/240288#240288&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2012 17:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-in-Class-function/m-p/398180#M569126</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-04T17:07:53Z</dc:date>
    </item>
  </channel>
</rss>

