<?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: How to load only where (field) is number or numeric in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-only-where-field-is-number-or-numeric/m-p/455726#M170113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;You almost guessed it, it is IsNum().&lt;/P&gt;&lt;P&gt;Edit: I think it removes blanks as well, but not 0s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Apr 2013 16:43:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-04-15T16:43:30Z</dc:date>
    <item>
      <title>How to load only where (field) is number or numeric</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-where-field-is-number-or-numeric/m-p/455725#M170112</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 had an issue where 0 and blank values were pulling down calculated averages that included records with no data.&amp;nbsp; (I.e. someone stuck a 0 in height when they didn't have the information, or left it blank, and QV pulled in the record and factored the 0 height into the average.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I solved the 0 and blank/null issue with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;Book1.xlsx&lt;BR /&gt;&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; Sheet1) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;TestValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;TestValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;&amp;gt;'' ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; (The '' is actually two apostrophes with nothing between to hopefully exclude blank field data.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now if someone wrote the word n/a, or blank, or some other non-numeric value in the testvalue field, I'd want to exclude that record/row from the load as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can someone show me what I'd add to my WHERE statement above to accomplish that?&amp;nbsp; I took a guess at AND IsNumber() and some other stuff, but haven't hit on it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks QlikCommunity! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;-Steve&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;PS&amp;gt; My WHERE statement did kick out 0s and let results of my weighted average formulas go up to where they should be.&amp;nbsp; (There can be no 0s in these testvalues as they are related to biometrics and someone would have to be a ghost or a robot to have a 0 value for any particular thing.)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 16:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-where-field-is-number-or-numeric/m-p/455725#M170112</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2013-04-15T16:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to load only where (field) is number or numeric</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-where-field-is-number-or-numeric/m-p/455726#M170113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;You almost guessed it, it is IsNum().&lt;/P&gt;&lt;P&gt;Edit: I think it removes blanks as well, but not 0s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 16:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-where-field-is-number-or-numeric/m-p/455726#M170113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-15T16:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to load only where (field) is number or numeric</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-where-field-is-number-or-numeric/m-p/455727#M170114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try &lt;SPAN style="background-color: #ffffff; font-size: 10pt; font-family: Arial; color: #0000ff;"&gt;...WHERE&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 10pt; color: #737373; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 10pt; font-family: Arial; color: #800000;"&gt;TestValue&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 10pt; color: #737373; font-family: Arial;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 10pt; color: #737373; font-family: Arial;"&gt;If TestValue is a number other than 0 it will evaluate as True and otherwise False. So only records with a TestValue that's a number other than 0 should be loaded.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 16:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-where-field-is-number-or-numeric/m-p/455727#M170114</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-15T16:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to load only where (field) is number or numeric</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-only-where-field-is-number-or-numeric/m-p/455728#M170115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, the  WHERE TestValue; did the trick!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested with dummy data using 0, blank, and the word ‘blah’.  Without the statement, the values were low and weighted with the unwanted 0s.  With the where statement, the unwanted 0/blank/blah were not loaded and not weighed in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 17:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-only-where-field-is-number-or-numeric/m-p/455728#M170115</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2013-04-15T17:04:13Z</dc:date>
    </item>
  </channel>
</rss>

