<?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 ISNUM in script returns FALSE while on the GUI, it's TRUE? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887252#M309273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a line like this in my script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; LET v_Trace = IF(ISNUM([field]) = -1, 'yes', 'no') &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strangely, this returns "no" in the script while on the GUI the same function, applied at the same stage of execution, returns 'yes'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody explain this difference to me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2015 09:36:00 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2015-07-16T09:36:00Z</dc:date>
    <item>
      <title>ISNUM in script returns FALSE while on the GUI, it's TRUE?</title>
      <link>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887252#M309273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a line like this in my script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; LET v_Trace = IF(ISNUM([field]) = -1, 'yes', 'no') &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strangely, this returns "no" in the script while on the GUI the same function, applied at the same stage of execution, returns 'yes'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody explain this difference to me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 09:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887252#M309273</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-07-16T09:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: ISNUM in script returns FALSE while on the GUI, it's TRUE?</title>
      <link>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887253#M309274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider below example... This will return as no because not all the values of field is Numeric. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; field&lt;/P&gt;&lt;P&gt;&amp;nbsp; 123&lt;/P&gt;&lt;P&gt;&amp;nbsp; ABC&lt;/P&gt;&lt;P&gt;&amp;nbsp; DEF&lt;/P&gt;&lt;P&gt;&amp;nbsp; 456&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET v_Trace = IF(ISNUM([field]) = -1, 'yes', 'no');&lt;/P&gt;&lt;P&gt;TRACE $(v_Trace);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 09:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887253#M309274</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-07-16T09:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: ISNUM in script returns FALSE while on the GUI, it's TRUE?</title>
      <link>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887254#M309275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this seems logical, the variable considers the entire table, about 250.000 records and if one of them is not numeric, it will turn to 'no'.&lt;/P&gt;&lt;P&gt;But in my instance, ALL the values are numeric - if I try it with a new listbox_object on the GUI, I have the two values -1 and 0, but I cannot select 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 09:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887254#M309275</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-07-16T09:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: ISNUM in script returns FALSE while on the GUI, it's TRUE?</title>
      <link>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887255#M309276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share sample file only having this field? also provide how your are using in UI !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 09:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887255#M309276</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-07-16T09:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: ISNUM in script returns FALSE while on the GUI, it's TRUE?</title>
      <link>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887256#M309277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script, [field] has no value, so IsNum correctly returns False return. In the front end, [field] may contain a single value, and could return True.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 09:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887256#M309277</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-07-16T09:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: ISNUM in script returns FALSE while on the GUI, it's TRUE?</title>
      <link>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887257#M309278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Manish Kachhia&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Consider below example... This will return as no &lt;STRONG&gt;because not all the values of field is Numeric&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;Load * Inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;&amp;nbsp; field&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 123&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ABC&lt;/P&gt;
&lt;P&gt;&amp;nbsp; DEF&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 456&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET v_Trace = IF(ISNUM([field]) = -1, 'yes', 'no');&lt;/P&gt;
&lt;P&gt;TRACE $(v_Trace);&lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;because, &lt;/STRONG&gt;if you pass field name in isnum() outside load and without any field value position&amp;nbsp; - it actually returns a NULL. And null is not numeric. hope that makes sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 09:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887257#M309278</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-07-16T09:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: ISNUM in script returns FALSE while on the GUI, it's TRUE?</title>
      <link>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887258#M309279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that would be somewhat difficult as there is a lot of sensitive data that I'm processing here - and there are a lot of fields - and that field which I want to check has actually already been processed because I get it from Excel and the settings rgd. the decimal_separator are wrong, so I switch it around. I think I remember there was also this "it works for everyone else, so i cannot show how it does not work" effect when I first asked about this here ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression in the script is (copied)&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;LET &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;v_Trace&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'Gesamtzeit ist numerisch: ' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ISNUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Gesamtzeit_gerundet_syncreon&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)= (-1), 'ja', 'nein');&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;TRACE&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(v_Trace)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;v_Trace&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'Umsatz ist numerisch: ' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ISNUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Kosten_gerechnet_nach_gerundeten_Zeiten&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)= (-1), 'ja', 'nein');&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;TRACE&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(v_Trace)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;v_Trace&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NULL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The expression I use on the GUI is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ISNUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Gesamtzeit_gerundet_syncreon&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ISNUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Kosten_gerechnet_nach_gerundeten_Zeiten&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;DataNibbler&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 10:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887258#M309279</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-07-16T10:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: ISNUM in script returns FALSE while on the GUI, it's TRUE?</title>
      <link>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887259#M309280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sure that makes sense. So I will delete that code as it potentially leads to some confusion.&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>Thu, 16 Jul 2015 10:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ISNUM-in-script-returns-FALSE-while-on-the-GUI-it-s-TRUE/m-p/887259#M309280</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-07-16T10:37:59Z</dc:date>
    </item>
  </channel>
</rss>

