<?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, or not Class Function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Class-Function-or-not-Class-Function/m-p/163791#M36736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I once read in this forum, that everything below xx intervals can be easily achieved by an nested IF-statement during load time without performance issues. if (val&amp;lt;0, '&amp;lt;0', if( val&amp;lt;10, '0-10', if(val&amp;lt;20,'10-20','&amp;gt;20')))&lt;/P&gt;&lt;P&gt;xx was an actually big number, personally I would go max. until 10.&lt;/P&gt;&lt;P&gt;hth,&lt;BR /&gt;Thilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 12:59:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-17T12:59:12Z</dc:date>
    <item>
      <title>Class Function, or not Class Function?</title>
      <link>https://community.qlik.com/t5/QlikView/Class-Function-or-not-Class-Function/m-p/163789#M36734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;I think I need your advice/assistance, I would like to be able to achieve the following:&lt;/P&gt;&lt;P&gt;I have an expression that shows me how many items are due, this is done by today()-Due Date, which wrapped in num() gives me the amount of days its due. Anything that isn't currently due is 0.&lt;/P&gt;&lt;P&gt;What I would like, is selectors that I can use in a list box and as a pivot table with the following:&lt;/P&gt;&lt;P&gt;0, 0 -30, 30-60, 60-90, 90-year, year+.&lt;/P&gt;&lt;P&gt;I was originally of thinking the Class function, but I'm struggling as unsure how to achieve '0' and the 90-year and year+...&lt;/P&gt;&lt;P&gt;Do you have any ideas? As always, help is most appreciated!!!&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 11:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-Function-or-not-Class-Function/m-p/163789#M36734</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2010-08-17T11:29:09Z</dc:date>
    </item>
    <item>
      <title>Class Function, or not Class Function?</title>
      <link>https://community.qlik.com/t5/QlikView/Class-Function-or-not-Class-Function/m-p/163790#M36735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dayna&lt;/P&gt;&lt;P&gt;I have used an inline table and INTERVAL match for the same effect. See the example script below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;First define the bands. I use duals, but this is not strictly necessary for the interval match:&lt;BR /&gt;//----------------------------------------------------------------------------&lt;BR /&gt;// Bands for interval matching to the last distance measure&lt;BR /&gt;//----------------------------------------------------------------------------&lt;BR /&gt;DISTANCEBANDS:&lt;BR /&gt;LOAD Dual(BandName, DistMin) AS DistanceBand,&lt;BR /&gt; DistMin,&lt;BR /&gt; DistMax&lt;BR /&gt;INLINE&lt;BR /&gt;[&lt;BR /&gt; BandName, DistMin, DistMax&lt;BR /&gt; 'No move', 0, 0&lt;BR /&gt; '&amp;lt;1000km', 1, 1000&lt;BR /&gt; '1001-5000km', 1000, 5000&lt;BR /&gt; '5001-10000km', 5000, 10000&lt;BR /&gt; '10000-20000km', 10000, 20000&lt;BR /&gt; '&amp;gt;20000km', 20000,&lt;BR /&gt;];&lt;BR /&gt;Then interval match to the LastDistance field in the main data set:&lt;BR /&gt;LEFT JOIN(LASTREAD)&lt;BR /&gt;INTERVALMATCH (LastDistance) LOAD DistMin, DistMax RESIDENT DISTANCEBANDS;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 11:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-Function-or-not-Class-Function/m-p/163790#M36735</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-08-17T11:53:54Z</dc:date>
    </item>
    <item>
      <title>Class Function, or not Class Function?</title>
      <link>https://community.qlik.com/t5/QlikView/Class-Function-or-not-Class-Function/m-p/163791#M36736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I once read in this forum, that everything below xx intervals can be easily achieved by an nested IF-statement during load time without performance issues. if (val&amp;lt;0, '&amp;lt;0', if( val&amp;lt;10, '0-10', if(val&amp;lt;20,'10-20','&amp;gt;20')))&lt;/P&gt;&lt;P&gt;xx was an actually big number, personally I would go max. until 10.&lt;/P&gt;&lt;P&gt;hth,&lt;BR /&gt;Thilo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 12:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-Function-or-not-Class-Function/m-p/163791#M36736</guid>
      <dc:creator />
      <dc:date>2010-08-17T12:59:12Z</dc:date>
    </item>
  </channel>
</rss>

