<?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 using class interval in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-class-interval/m-p/473750#M176968</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;I have to calculate the values in betwwen&amp;nbsp; where i have a age and amount,&lt;/P&gt;&lt;P&gt;i want to do it in the script,&amp;nbsp; in the script i am using IF conditions , is there any way that it can be replaces with something else&amp;nbsp; like inline and applymap&lt;/P&gt;&lt;P&gt;Age and AMOUNT are 2 fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; IF( Age &amp;gt;3&amp;nbsp;&amp;nbsp; and&amp;nbsp; Age &amp;lt;=7&amp;nbsp; and AMOUNT&amp;lt;0,'&amp;nbsp; DR &amp;gt;3 Days (P&amp;amp;S)',&lt;BR /&gt; IF( Age &amp;gt;3&amp;nbsp;&amp;nbsp; and&amp;nbsp; Age &amp;lt;=7&amp;nbsp; and AMOUNT&amp;gt;0,'&amp;nbsp; CR &amp;gt;3 Days (P&amp;amp;S)',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;7&amp;nbsp;&amp;nbsp; and&amp;nbsp; Age &amp;lt;=30 and AMOUNT&amp;lt;0,'&amp;nbsp; DR &amp;gt;7 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;7&amp;nbsp;&amp;nbsp; and&amp;nbsp; Age &amp;lt;=30 and AMOUNT&amp;gt;0,'&amp;nbsp; CR &amp;gt;7 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;=15 and&amp;nbsp; Age &amp;lt;=30 and AMOUNT&amp;lt;0,'&amp;nbsp; DR&amp;nbsp; 15-30 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;=15 and&amp;nbsp; Age &amp;lt;=30 and AMOUNT&amp;gt;0,'&amp;nbsp; CR 15-30 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;30&amp;nbsp; and&amp;nbsp; Age &amp;lt;=60 and AMOUNT&amp;lt;0,'&amp;nbsp; DR &amp;gt;30 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;30&amp;nbsp; and&amp;nbsp; Age &amp;lt;=60 and AMOUNT&amp;gt;0,'&amp;nbsp; CR &amp;gt;30 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;=30 and&amp;nbsp; Age &amp;lt;=60 and AMOUNT&amp;lt;0,'&amp;nbsp; DR&amp;nbsp; 30-60 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;=30 and&amp;nbsp; Age &amp;lt;=60 and AMOUNT&amp;gt;0,'&amp;nbsp; CR 30-60 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;60&amp;nbsp; and&amp;nbsp; AMOUNT&amp;lt;0,'&amp;nbsp; DR 60+ Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;60&amp;nbsp; and&amp;nbsp; AMOUNT&amp;gt;0,'&amp;nbsp; CR 60+ Days')))))))))))) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jun 2013 18:26:18 GMT</pubDate>
    <dc:creator>shree909</dc:creator>
    <dc:date>2013-06-14T18:26:18Z</dc:date>
    <item>
      <title>using class interval</title>
      <link>https://community.qlik.com/t5/QlikView/using-class-interval/m-p/473750#M176968</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;I have to calculate the values in betwwen&amp;nbsp; where i have a age and amount,&lt;/P&gt;&lt;P&gt;i want to do it in the script,&amp;nbsp; in the script i am using IF conditions , is there any way that it can be replaces with something else&amp;nbsp; like inline and applymap&lt;/P&gt;&lt;P&gt;Age and AMOUNT are 2 fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; IF( Age &amp;gt;3&amp;nbsp;&amp;nbsp; and&amp;nbsp; Age &amp;lt;=7&amp;nbsp; and AMOUNT&amp;lt;0,'&amp;nbsp; DR &amp;gt;3 Days (P&amp;amp;S)',&lt;BR /&gt; IF( Age &amp;gt;3&amp;nbsp;&amp;nbsp; and&amp;nbsp; Age &amp;lt;=7&amp;nbsp; and AMOUNT&amp;gt;0,'&amp;nbsp; CR &amp;gt;3 Days (P&amp;amp;S)',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;7&amp;nbsp;&amp;nbsp; and&amp;nbsp; Age &amp;lt;=30 and AMOUNT&amp;lt;0,'&amp;nbsp; DR &amp;gt;7 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;7&amp;nbsp;&amp;nbsp; and&amp;nbsp; Age &amp;lt;=30 and AMOUNT&amp;gt;0,'&amp;nbsp; CR &amp;gt;7 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;=15 and&amp;nbsp; Age &amp;lt;=30 and AMOUNT&amp;lt;0,'&amp;nbsp; DR&amp;nbsp; 15-30 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;=15 and&amp;nbsp; Age &amp;lt;=30 and AMOUNT&amp;gt;0,'&amp;nbsp; CR 15-30 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;30&amp;nbsp; and&amp;nbsp; Age &amp;lt;=60 and AMOUNT&amp;lt;0,'&amp;nbsp; DR &amp;gt;30 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;30&amp;nbsp; and&amp;nbsp; Age &amp;lt;=60 and AMOUNT&amp;gt;0,'&amp;nbsp; CR &amp;gt;30 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;=30 and&amp;nbsp; Age &amp;lt;=60 and AMOUNT&amp;lt;0,'&amp;nbsp; DR&amp;nbsp; 30-60 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;=30 and&amp;nbsp; Age &amp;lt;=60 and AMOUNT&amp;gt;0,'&amp;nbsp; CR 30-60 Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;60&amp;nbsp; and&amp;nbsp; AMOUNT&amp;lt;0,'&amp;nbsp; DR 60+ Days',&lt;BR /&gt;&lt;BR /&gt; IF( Age &amp;gt;60&amp;nbsp; and&amp;nbsp; AMOUNT&amp;gt;0,'&amp;nbsp; CR 60+ Days')))))))))))) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 18:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-class-interval/m-p/473750#M176968</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2013-06-14T18:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: using class interval</title>
      <link>https://community.qlik.com/t5/QlikView/using-class-interval/m-p/473751#M176969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use the class function since you have unequal class sizes. Applymap also doesn't have anything to offer afaict. What you can do is move the amount check out of the nested if so you only check the ages in the nested ifs construction. That should simplify things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF AMOUNT&amp;lt;0, 'DR ', 'CR ') &amp;amp; IF(&lt;EM&gt; ...nested age checks here... &lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, this part doesn't make sense:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;IF( Age &amp;gt;30&amp;nbsp; and&amp;nbsp; Age &amp;lt;=60 and AMOUNT&amp;lt;0,'&amp;nbsp; DR &amp;gt;30 Days',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;IF( Age &amp;gt;30&amp;nbsp; and&amp;nbsp; Age &amp;lt;=60 and AMOUNT&amp;gt;0,'&amp;nbsp; CR &amp;gt;30 Days',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;IF( Age &amp;gt;=30 and&amp;nbsp; Age &amp;lt;=60 and AMOUNT&amp;lt;0,'&amp;nbsp; DR&amp;nbsp; 30-60 Days',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;IF( Age &amp;gt;=30 and&amp;nbsp; Age &amp;lt;=60 and AMOUNT&amp;gt;0,'&amp;nbsp; CR 30-60 Days',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two last ifs will only match if the age is exactly 30. Any other ages between 30 and 60 will be shown as &amp;gt;30 Days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2013 08:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-class-interval/m-p/473751#M176969</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-15T08:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: using class interval</title>
      <link>https://community.qlik.com/t5/QlikView/using-class-interval/m-p/473752#M176970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000000; font-size: 12pt;"&gt;Hey Shree&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000000; font-size: 12pt;"&gt;Check the reply by Gysbert in the following link where he mentioned the use of Intervalmatch.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000000; font-size: 12pt;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/66283"&gt;http://community.qlik.com/thread/66283&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000000; font-size: 12pt;"&gt;I have attached the qvw file for your reference.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000000; font-size: 12pt;"&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; color: #000000; font-size: 12pt;"&gt;ragha&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2013 11:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-class-interval/m-p/473752#M176970</guid>
      <dc:creator />
      <dc:date>2013-06-16T11:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: using class interval</title>
      <link>https://community.qlik.com/t5/QlikView/using-class-interval/m-p/473753#M176971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Besides the question, please also notice that you have multiple logical errors in your IF statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will never get to the 15-30 range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will never get to the 30-60 range except when exactly 60&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jun 2013 12:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-class-interval/m-p/473753#M176971</guid>
      <dc:creator>calvindk</dc:creator>
      <dc:date>2013-06-16T12:24:24Z</dc:date>
    </item>
  </channel>
</rss>

