<?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: Class Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Class-Function/m-p/1340318#M844195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your feedback and useful information about issue: Buckets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Apr 2017 08:52:48 GMT</pubDate>
    <dc:creator>beck_bakytbek</dc:creator>
    <dc:date>2017-04-19T08:52:48Z</dc:date>
    <item>
      <title>Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Class-Function/m-p/1340314#M844189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use Class-function to achieve the following result (please see attached screenshot),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my class-function does look like: DUAL(Replace(class(Differenz,30),'&amp;lt;= x &amp;lt;','-'),class(Differenz,30)), but i have got a following output:(see attached screenshot),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i achieve with class-function this expected output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 -30 Days&lt;/P&gt;&lt;P&gt;31 -90 Days&lt;/P&gt;&lt;P&gt;181 - 365 Days&lt;/P&gt;&lt;P&gt;more than 365 Days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;beck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-Function/m-p/1340314#M844189</guid>
      <dc:creator>beck_bakytbek</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Class-Function/m-p/1340315#M844191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Beck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;I dont think that you can achieve using Class function, instead you use nested or embedded if() statements (if you need to use the calculated dimension), or use an INTERVALMATCH&amp;nbsp; with a custom bucket table in the script. To create buckets. you can check here on how to create buckets here &lt;A _jive_internal="true" data-containerid="2588" data-containertype="37" data-objectid="3821" data-objecttype="38" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/07/14/buckets" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #266fc8;"&gt;https://community.qlik.com/blogs/qlikviewdesignblog/2014/07/14/buckets&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;something like below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;if(Differenz &amp;gt;=0 and Differenz &amp;lt;=3,Dual('0-30,0',1),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;if(Differenz &amp;gt;=31 and Differenz &amp;lt;=90,Dual('31-90',2),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;if(Differenz &amp;gt;=91 and Differenz &amp;lt;=180,Dual('91-180',3),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;if(Differenz &amp;gt;20,Dual('Above 20',6))))))) as Days_Bucket&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f5faf0;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;If&lt;/SPAN&gt;( &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;ShippedDate&lt;/SPAN&gt; - &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;RequiredDate&lt;/SPAN&gt; &amp;lt;= -5, 'Too early',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f5faf0;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;If&lt;/SPAN&gt;( &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;ShippedDate&lt;/SPAN&gt; - &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;RequiredDate&lt;/SPAN&gt; &amp;lt;= 0, 'Just in time',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f5faf0;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;If&lt;/SPAN&gt;( &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;ShippedDate&lt;/SPAN&gt; - &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;RequiredDate&lt;/SPAN&gt; &amp;lt;= 5, 'Small delay',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000; background-color: #f5faf0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Large delay' ))) &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Delay&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 08:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-Function/m-p/1340315#M844191</guid>
      <dc:creator>Siva_Sankar</dc:creator>
      <dc:date>2017-04-19T08:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Class-Function/m-p/1340316#M844192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Requiring open and uneven bucket sizes is not a good use case for class() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could create these buckets like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Differenz &amp;lt;=30, Dual('0 - 30 Days',0),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( Differenz &amp;lt;=90, Dual('31 - 90 Days',31),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Differenz &amp;lt;= 180, Dual('91 - 180 Days',91),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Differenz &amp;lt;= 365, Dual('181 - 365 Days', 181),Dual('more than 365 Days',366))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 08:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-Function/m-p/1340316#M844192</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-19T08:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Class-Function/m-p/1340317#M844194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your feedback and help, your advice helps to resolve my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 08:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-Function/m-p/1340317#M844194</guid>
      <dc:creator>beck_bakytbek</dc:creator>
      <dc:date>2017-04-19T08:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Class-Function/m-p/1340318#M844195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your feedback and useful information about issue: Buckets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 08:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-Function/m-p/1340318#M844195</guid>
      <dc:creator>beck_bakytbek</dc:creator>
      <dc:date>2017-04-19T08:52:48Z</dc:date>
    </item>
  </channel>
</rss>

