<?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: Help: If / Set / inline/ or something else? need to add type to numbers ranges in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-If-Set-inline-or-something-else-need-to-add-type-to-numbers/m-p/562426#M209915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this in script will work well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(BMI&amp;gt;=18.6 AND BMI&amp;lt;=24.9, Dual('Normal Weight (18.6-24.9)',1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(BMI&amp;gt;0 AND BMI&amp;lt;18.6, Dual('At Risk, Underweight (&amp;lt;18.6)',3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(BMI&amp;gt;24.9 AND BMI&amp;lt;1000, Dual('At Risk, Overweight/Obese (&amp;gt;24.9)',2)))) as rbBMI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just put your field names where I have BMI and rbBMI and your own # value ranges in there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: also any # outside the above values will just be left as a null in the the new field created.&amp;nbsp; And the selection boxes for fields created by Dual If statements work better than ones for fields created by if statements.&amp;nbsp; I quit using regular if statements in my script for things I needed listboxes for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jul 2013 18:39:21 GMT</pubDate>
    <dc:creator>stevelord</dc:creator>
    <dc:date>2013-07-10T18:39:21Z</dc:date>
    <item>
      <title>Help: If / Set / inline/ or something else? need to add type to numbers ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Help-If-Set-inline-or-something-else-need-to-add-type-to-numbers/m-p/562424#M209913</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 am struggling with this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got lets say (column A): around of 100.000&amp;nbsp; of ten digit numbers starting from 0000000000 and ending at 9999999999&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I need to do is to add type/clasification. lets say that all the numbers below 5000000000 should get a tag Region A and the numbers above 5000000000 should get the classification/type tag as Region B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and on top of that there are some bad quality numbers: all that are not ten digit numbers - thouse should get a tag n/a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyone is genious enoough and can solve this puzzle?&amp;nbsp; Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cant send the orignal but it more or less the same structure like that one atttached. I hope it helps and thanks! Message was edited by: romandahl &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 18:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-If-Set-inline-or-something-else-need-to-add-type-to-numbers/m-p/562424#M209913</guid>
      <dc:creator />
      <dc:date>2013-07-10T18:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help: If / Set / inline/ or something else? need to add type to numbers ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Help-If-Set-inline-or-something-else-need-to-add-type-to-numbers/m-p/562425#M209914</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;You can try this in the script&lt;/P&gt;&lt;P&gt;If(columnA&amp;gt;999999999 and columnA &amp;lt;=5000000000,'Region A', IF(columnA &amp;gt;5000000000,'REGION B','NA')) as Region,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Nirav Bhimani&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 18:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-If-Set-inline-or-something-else-need-to-add-type-to-numbers/m-p/562425#M209914</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-07-10T18:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help: If / Set / inline/ or something else? need to add type to numbers ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Help-If-Set-inline-or-something-else-need-to-add-type-to-numbers/m-p/562426#M209915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this in script will work well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(BMI&amp;gt;=18.6 AND BMI&amp;lt;=24.9, Dual('Normal Weight (18.6-24.9)',1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(BMI&amp;gt;0 AND BMI&amp;lt;18.6, Dual('At Risk, Underweight (&amp;lt;18.6)',3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(BMI&amp;gt;24.9 AND BMI&amp;lt;1000, Dual('At Risk, Overweight/Obese (&amp;gt;24.9)',2)))) as rbBMI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just put your field names where I have BMI and rbBMI and your own # value ranges in there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: also any # outside the above values will just be left as a null in the the new field created.&amp;nbsp; And the selection boxes for fields created by Dual If statements work better than ones for fields created by if statements.&amp;nbsp; I quit using regular if statements in my script for things I needed listboxes for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 18:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-If-Set-inline-or-something-else-need-to-add-type-to-numbers/m-p/562426#M209915</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2013-07-10T18:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help: If / Set / inline/ or something else? need to add type to numbers ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Help-If-Set-inline-or-something-else-need-to-add-type-to-numbers/m-p/562427#M209916</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;Please find the attached File.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 18:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-If-Set-inline-or-something-else-need-to-add-type-to-numbers/m-p/562427#M209916</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-07-10T18:43:54Z</dc:date>
    </item>
  </channel>
</rss>

