<?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: comparing a value between a range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/comparing-a-value-between-a-range/m-p/1141282#M373904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script, you can generate the "between" values in increments of .01 as a new field "Index". And then choose a Score from the table using a rounding of the variable like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({&amp;lt;Index={$(=round($(vInput),.01))}&amp;gt;}Score)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Aug 2016 15:31:33 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2016-08-19T15:31:33Z</dc:date>
    <item>
      <title>comparing a value between a range</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-a-value-between-a-range/m-p/1141278#M373900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck with a problem. Tried to find the solution on community but couldnt get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable wherein i have a value for eg 94.5.&lt;/P&gt;&lt;P&gt;Now i have two fields MinRange and MaxRange as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/135021_Untitled.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have another fields Score and X_VAL&lt;/P&gt;&lt;P&gt;I need to check the range wherein the value 94.5 lies and accordingly display its score.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 13:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-a-value-between-a-range/m-p/1141278#M373900</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2016-08-19T13:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: comparing a value between a range</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-a-value-between-a-range/m-p/1141279#M373901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at intervalmatch.&amp;nbsp; &lt;A href="https://community.qlik.com/qlik-blogpost/3037"&gt;IntervalMatch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 13:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-a-value-between-a-range/m-p/1141279#M373901</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-08-19T13:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: comparing a value between a range</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-a-value-between-a-range/m-p/1141280#M373902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But the value i want to compare is stored in a variable. and that variable is calculated in frontend.&lt;/P&gt;&lt;P&gt;So how will i compare a variables value with 2 fields??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 14:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-a-value-between-a-range/m-p/1141280#M373902</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2016-08-19T14:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: comparing a value between a range</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-a-value-between-a-range/m-p/1141281#M373903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you need to express it with functions. One way is to use a nested If()-function - one If() per range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you can use the class()-function. Or you can combine the two:&lt;/P&gt;&lt;P&gt;If(Variable&amp;lt;85,'Below',&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If(Variable&amp;gt;=100,'Above',&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Class(Variable,3, 'var', 1)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 14:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-a-value-between-a-range/m-p/1141281#M373903</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-08-19T14:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: comparing a value between a range</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-a-value-between-a-range/m-p/1141282#M373904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script, you can generate the "between" values in increments of .01 as a new field "Index". And then choose a Score from the table using a rounding of the variable like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({&amp;lt;Index={$(=round($(vInput),.01))}&amp;gt;}Score)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 15:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-a-value-between-a-range/m-p/1141282#M373904</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-08-19T15:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: comparing a value between a range</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-a-value-between-a-range/m-p/1141283#M373905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple correction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"While (MinRange + (Iterno()*.01))-.01 &lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt; MaxRange" -&amp;gt; This should be &lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;=&lt;SPAN style="font-size: 13.3333330154419px;"&gt;MaxRange in order to consider the border case for Max Ranges&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 16:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-a-value-between-a-range/m-p/1141283#M373905</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-19T16:01:01Z</dc:date>
    </item>
  </channel>
</rss>

