<?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 If condition in where clause during data load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-condition-in-where-clause-during-data-load/m-p/801938#M1043844</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 have a data set with the following sttucture&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;Type&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Value&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1/1/2001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2/2/2001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Data is such that Type B will always have null in Date Column. While loading the data, I need to filter all values where Date is null for Type A. In this case, I should not load the last row. How can I achieve this while loading the script? Any help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the below and it doesn't seem to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; where ( if([Type]='A', [Date]&amp;gt;0));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Nov 2014 18:18:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-23T18:18:52Z</dc:date>
    <item>
      <title>If condition in where clause during data load</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-where-clause-during-data-load/m-p/801938#M1043844</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 have a data set with the following sttucture&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;Type&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Value&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1/1/2001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2/2/2001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Data is such that Type B will always have null in Date Column. While loading the data, I need to filter all values where Date is null for Type A. In this case, I should not load the last row. How can I achieve this while loading the script? Any help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the below and it doesn't seem to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; where ( if([Type]='A', [Date]&amp;gt;0));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Nov 2014 18:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-where-clause-during-data-load/m-p/801938#M1043844</guid>
      <dc:creator />
      <dc:date>2014-11-23T18:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in where clause during data load</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-where-clause-during-data-load/m-p/801939#M1043845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to get records with Type = 'A' and Date not null you can use len(trim(.....))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type = 'A' and len(trim(Date))&amp;gt;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Nov 2014 18:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-where-clause-during-data-load/m-p/801939#M1043845</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-11-23T18:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in where clause during data load</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-where-clause-during-data-load/m-p/801940#M1043846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I would also like to keep records where Type='B' and date will be null for them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Nov 2014 18:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-where-clause-during-data-load/m-p/801940#M1043846</guid>
      <dc:creator />
      <dc:date>2014-11-23T18:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in where clause during data load</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-where-clause-during-data-load/m-p/801941#M1043847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(Type = 'A' and len(trim(Date))&amp;gt;0) or Type='B'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Nov 2014 18:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-where-clause-during-data-load/m-p/801941#M1043847</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-11-23T18:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in where clause during data load</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-where-clause-during-data-load/m-p/801942#M1043848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you use &amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Type &amp;lt;&amp;gt; ('A' and len(trim(Date))&amp;gt;0))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Nov 2014 18:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-where-clause-during-data-load/m-p/801942#M1043848</guid>
      <dc:creator>robert99</dc:creator>
      <dc:date>2014-11-23T18:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in where clause during data load</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-where-clause-during-data-load/m-p/801943#M1043849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where not (Type='A' and IsNull(Date))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Nov 2014 20:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-where-clause-during-data-load/m-p/801943#M1043849</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-11-23T20:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in where clause during data load</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-where-clause-during-data-load/m-p/801944#M1043850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;Where Type&amp;lt;&amp;gt;'A' or not IsNull(Date)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Nov 2014 20:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-where-clause-during-data-load/m-p/801944#M1043850</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-11-23T20:25:13Z</dc:date>
    </item>
  </channel>
</rss>

