<?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 How to use Class() function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-Class-function/m-p/641879#M235142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A reoccurring question to Qlik Support has been how values can be grouped in intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The simple answer to this question is to use the Class() function, which groups values into intervals.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;For example the values below can be grouped in to intervals of 10, which means that the values 10, 11 and 15 all belong to the same interval of 10 to 20. The value 51 on the other hand fits in the group 50 to 60.There are no values between 20 and 50 so no other groups are generated. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="59308" alt="2014-05-21 14_59_08-QlikView x64 - [C__Users_tko_Documents_Enablement Sessions_Partner Enablement - .jpg" class="jive-image" src="/legacyfs/online/59308_2014-05-21 14_59_08-QlikView x64 - [C__Users_tko_Documents_Enablement Sessions_Partner Enablement - .jpg" /&gt;&lt;/P&gt;&lt;P&gt;As all other values the classified interval label is a dual value, and has a underlying numerical value. This can be seen by the right alignment of the interval labels. By using the Num() function it is also possible to reveal the actual underlying value, and see that all intervals are numerically represented by the intervals first value.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="59309" alt="2014-05-21 15_05_16-QlikView x64 - [C__Users_tko_Documents_Enablement Sessions_Partner Enablement - .jpg" class="jive-image" src="/legacyfs/online/59309_2014-05-21 15_05_16-QlikView x64 - [C__Users_tko_Documents_Enablement Sessions_Partner Enablement - .jpg" /&gt;&lt;/P&gt;&lt;P&gt;The same Class() based interval classification can be done in the load script, and thereby a pre-calculated interval has been generated. As any other field by selecting in the interval field in the front-end application, it is now possible to make an interval based selection.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="59311" alt="19 - Copy.jpg" class="jive-image" src="/legacyfs/online/59311_19 - Copy.jpg" /&gt; &lt;IMG __jive_id="59312" alt="2014-05-21 15_14_16-QlikView x64 - [C__Users_tko_Documents_Enablement Sessions_Partner Enablement - .jpg" class="jive-image" src="/legacyfs/online/59312_2014-05-21 15_14_16-QlikView x64 - [C__Users_tko_Documents_Enablement Sessions_Partner Enablement - .jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2014 13:17:55 GMT</pubDate>
    <dc:creator>ToniKautto</dc:creator>
    <dc:date>2014-05-21T13:17:55Z</dc:date>
    <item>
      <title>How to use Class() function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Class-function/m-p/641879#M235142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A reoccurring question to Qlik Support has been how values can be grouped in intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The simple answer to this question is to use the Class() function, which groups values into intervals.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;For example the values below can be grouped in to intervals of 10, which means that the values 10, 11 and 15 all belong to the same interval of 10 to 20. The value 51 on the other hand fits in the group 50 to 60.There are no values between 20 and 50 so no other groups are generated. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="59308" alt="2014-05-21 14_59_08-QlikView x64 - [C__Users_tko_Documents_Enablement Sessions_Partner Enablement - .jpg" class="jive-image" src="/legacyfs/online/59308_2014-05-21 14_59_08-QlikView x64 - [C__Users_tko_Documents_Enablement Sessions_Partner Enablement - .jpg" /&gt;&lt;/P&gt;&lt;P&gt;As all other values the classified interval label is a dual value, and has a underlying numerical value. This can be seen by the right alignment of the interval labels. By using the Num() function it is also possible to reveal the actual underlying value, and see that all intervals are numerically represented by the intervals first value.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="59309" alt="2014-05-21 15_05_16-QlikView x64 - [C__Users_tko_Documents_Enablement Sessions_Partner Enablement - .jpg" class="jive-image" src="/legacyfs/online/59309_2014-05-21 15_05_16-QlikView x64 - [C__Users_tko_Documents_Enablement Sessions_Partner Enablement - .jpg" /&gt;&lt;/P&gt;&lt;P&gt;The same Class() based interval classification can be done in the load script, and thereby a pre-calculated interval has been generated. As any other field by selecting in the interval field in the front-end application, it is now possible to make an interval based selection.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="59311" alt="19 - Copy.jpg" class="jive-image" src="/legacyfs/online/59311_19 - Copy.jpg" /&gt; &lt;IMG __jive_id="59312" alt="2014-05-21 15_14_16-QlikView x64 - [C__Users_tko_Documents_Enablement Sessions_Partner Enablement - .jpg" class="jive-image" src="/legacyfs/online/59312_2014-05-21 15_14_16-QlikView x64 - [C__Users_tko_Documents_Enablement Sessions_Partner Enablement - .jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 13:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Class-function/m-p/641879#M235142</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2014-05-21T13:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Class() function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Class-function/m-p/641880#M235143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor411"&gt;&lt;/A&gt;&lt;A name="class"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;class(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;expression, interval [ , label [ , offset ]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Creates a classification of &lt;SPAN class="Italic"&gt;expressions&lt;/SPAN&gt;. The bin width is determined by the number set as &lt;SPAN class="Italic"&gt;interval&lt;/SPAN&gt;. The result is shown as a&amp;lt;=x&amp;lt;b, where a and b are the upper and lower limits of the bin. The x can be replaced by an arbitrary string stated in &lt;SPAN class="Italic"&gt;label&lt;/SPAN&gt;. 0 is normally the default starting point of the classification. This can be changed by adding an &lt;SPAN class="Italic"&gt;offset&lt;/SPAN&gt;. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;class( var,10 )&lt;/SPAN&gt; with &lt;SPAN class="Italic"&gt;var&lt;/SPAN&gt; = 23 returns &lt;SPAN class="Italic"&gt;'20&amp;lt;=x&amp;lt;30'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;class( var,5,'value' )&lt;/SPAN&gt; with &lt;SPAN class="Italic"&gt;var&lt;/SPAN&gt; = 23 returns &lt;SPAN class="Italic"&gt;'20&amp;lt;= value &amp;lt;25'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;class( var,10,'x',5 )&lt;/SPAN&gt; with &lt;SPAN class="Italic"&gt;var&lt;/SPAN&gt; = 23 returns &lt;SPAN class="Italic"&gt;'15&amp;lt;=x&amp;lt;25'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 13:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Class-function/m-p/641880#M235143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-21T13:21:19Z</dc:date>
    </item>
  </channel>
</rss>

