<?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: Qlikview Class function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-Class-function/m-p/897563#M312276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So that the last interval ends on the maximum ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think so, but you would have to dynamically calculate what the starting/min would be in order to achieve that because the only parameter in the class function (4th parameter) that controls this takes the starting point. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Here is the function structure from the help:&amp;nbsp; 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;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;So try changing:&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #edf8ca;"&gt;=class( Age, $(vRange), 'x', min( total Age) )&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;To: &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=class( Age, $(vRange), 'x',&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;max(total Age)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;ceil( (max(total Age) &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;- &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;min(total Age) )&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;/&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;$(vRange)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;*5000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;---&amp;gt; this will take the max age and subract as many vRange segments as is necessary to cover the full span of data, providing a starting point that is also an even vRange increment.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 May 2015 13:35:47 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2015-05-25T13:35:47Z</dc:date>
    <item>
      <title>Qlikview Class function</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Class-function/m-p/897560#M312273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have age wise sales and age is between 18 , 19 , 20, 21, 22, 23,- - - - - 57. and I need to create dynamic bucket based on the interval input by user in input box. but whatever input user select my bucket always start with minimum age (18) and end with maximum age(57) in our case. &lt;/P&gt;&lt;P&gt;I have tried Class function like&amp;nbsp; &lt;SPAN class="Code"&gt;class( var,10,'x',Input Variable ) but some how the movement I select different input variable it change the first bucket and it start from different no not from 18(Min) value. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;So I want to set the min and max limit of my bucket. Is there any way&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Ist case: If my input value is =2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;SPAN class="Code"&gt;&lt;SPAN class="Code"&gt;Output should be &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;18-20 = 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;21-23 = 6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;24-26 = 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;28-30 = 10&amp;nbsp; and so on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;2nd case : if my input value is 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;SPAN class="Code"&gt;Output should be &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;18-21 = 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;22-24 = 7&amp;nbsp; whatever sales @data is entered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;2nd case : if my input value is 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;SPAN class="Code"&gt;Output should be &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;18-22 = 9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;23-27 = 12&amp;nbsp; whatever sales data is entered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;You can simple create sample data with 2 columns age and sales in excel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;That would be really helpful. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 12:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Class-function/m-p/897560#M312273</guid>
      <dc:creator />
      <dc:date>2015-05-20T12:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Class function</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Class-function/m-p/897561#M312274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lets say your class function is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=class( Age, $(vRange),'x')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add a 4th argument which defines the offset or starting position. Use the min value of the selected Age range as the offset, or even the global (disregards selection) min value of the age as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=class( Age, $(vRange), 'x', min( total Age) )&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;=class( Age, $(vRange), 'x', min( {1} total Age) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 20:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Class-function/m-p/897561#M312274</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-05-20T20:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Class function</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Class-function/m-p/897562#M312275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A _jive_internal="true" data-avatarid="1086" data-externalid="" data-online="false" data-presence="null" data-userid="57513" data-username="jpe" href="https://community.qlik.com/people/jpe"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;Jonathan Poole&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested it and It is working fine for Starting Age.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we also set this for Maximum age ?. not sure if that is also possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 11:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Class-function/m-p/897562#M312275</guid>
      <dc:creator />
      <dc:date>2015-05-25T11:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Class function</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Class-function/m-p/897563#M312276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So that the last interval ends on the maximum ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think so, but you would have to dynamically calculate what the starting/min would be in order to achieve that because the only parameter in the class function (4th parameter) that controls this takes the starting point. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Here is the function structure from the help:&amp;nbsp; 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;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;So try changing:&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #edf8ca;"&gt;=class( Age, $(vRange), 'x', min( total Age) )&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;To: &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=class( Age, $(vRange), 'x',&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;max(total Age)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;ceil( (max(total Age) &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;- &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;min(total Age) )&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;/&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;$(vRange)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;*5000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;---&amp;gt; this will take the max age and subract as many vRange segments as is necessary to cover the full span of data, providing a starting point that is also an even vRange increment.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 13:35:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Class-function/m-p/897563#M312276</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-05-25T13:35:47Z</dc:date>
    </item>
  </channel>
</rss>

