<?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: Preventing load based on field values? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Preventing-load-based-on-field-values/m-p/695566#M251399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all - ended up solving this in a different way on the back end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2014 20:35:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-15T20:35:09Z</dc:date>
    <item>
      <title>Preventing load based on field values?</title>
      <link>https://community.qlik.com/t5/QlikView/Preventing-load-based-on-field-values/m-p/695562#M251395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to add a measure of error-prevention to our application to prevent improper data from being loaded, and I was wondering if it was possible to prevent data from loading (or conditionally load) based on the values contained within.&amp;nbsp; I.E let's say I have the following data which I would like to load from Data.xls...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Security Check&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Employee&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Salary&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;ACCOUNTING&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Bob Smith&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;70000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ACCOUNTING&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Ashkat Ayer&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;75000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ACCOUNTING&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Cecilia Moralez&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;120000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;MANAGEMENT&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Dave Brown&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;RESEARCH&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Tan Xi&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;65000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ACCOUNTING&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Larry Marks&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;35000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, for whatever reason, I want to make sure that ONLY lines with "ACCOUNTING" in "Security Check" are loaded, or - even better - that the file will not load UNLESS "Security Check" is exclusively filled with "Accounting."&amp;nbsp; Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 17:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preventing-load-based-on-field-values/m-p/695562#M251395</guid>
      <dc:creator />
      <dc:date>2014-10-09T17:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing load based on field values?</title>
      <link>https://community.qlik.com/t5/QlikView/Preventing-load-based-on-field-values/m-p/695563#M251396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add a WHERE clause to your load statement. Such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM &lt;/P&gt;&lt;P&gt;[&amp;lt;your file&amp;gt;]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where [Security Check] = 'ACCOUNTING';&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 18:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preventing-load-based-on-field-values/m-p/695563#M251396</guid>
      <dc:creator />
      <dc:date>2014-10-09T18:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing load based on field values?</title>
      <link>https://community.qlik.com/t5/QlikView/Preventing-load-based-on-field-values/m-p/695564#M251397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can check the records are always ACCOUNTING in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Security Check], Employee, Salary&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="137186" data-objecttype="1" href="http://community.qlik.com/thread/137186"&gt;http://community.qlik.com/thread/137186&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;b:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate load * Resident a where [Security Check] = 'ACCOUNTING';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;if NoOfRows('a') &amp;lt;&amp;gt; NoOfRows('b') then&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; trace there are records not ACCOUNTING;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ENDIF;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table a;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 19:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preventing-load-based-on-field-values/m-p/695564#M251397</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-09T19:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing load based on field values?</title>
      <link>https://community.qlik.com/t5/QlikView/Preventing-load-based-on-field-values/m-p/695565#M251398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If You don't want to load Table UNLESS ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;count(*) as Count1&lt;/P&gt;&lt;P&gt;from Table&lt;/P&gt;&lt;P&gt;where [Security Check] = 'ACCOUNTING';&lt;/P&gt;&lt;P&gt;Let vCount1 = Peek('Count1');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;count(*) as Count2&lt;/P&gt;&lt;P&gt;from Table;&lt;/P&gt;&lt;P&gt;Let vCount2 = Peek('Count2');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If vCount1=vCount2 then&lt;/P&gt;&lt;P&gt;Load * from Table;&lt;/P&gt;&lt;P&gt;ENDIF;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 19:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preventing-load-based-on-field-values/m-p/695565#M251398</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2014-10-09T19:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing load based on field values?</title>
      <link>https://community.qlik.com/t5/QlikView/Preventing-load-based-on-field-values/m-p/695566#M251399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all - ended up solving this in a different way on the back end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 20:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Preventing-load-based-on-field-values/m-p/695566#M251399</guid>
      <dc:creator />
      <dc:date>2014-10-15T20:35:09Z</dc:date>
    </item>
  </channel>
</rss>

