<?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 Cleaner WHERE Clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cleaner-WHERE-Clause/m-p/388787#M1162163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is hopefully a basic one regarding having less script to get to the same thing.&amp;nbsp; Currently I am doing the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;From TableA&lt;/P&gt;&lt;P&gt;WHERE OrderType = "A" AND OrderClass = 71&lt;/P&gt;&lt;P&gt;OR OrderType = "A" AND OrderClass = 85&lt;/P&gt;&lt;P&gt;OR OrderType = "A" AND OrderClass = 91;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a simplier way to write this i.e. in SQL it would be something like &lt;/P&gt;&lt;P&gt;WHERE OrderType = 'A' AND OrderClass IN (71, 85, 91)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2012 14:12:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-31T14:12:38Z</dc:date>
    <item>
      <title>Cleaner WHERE Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Cleaner-WHERE-Clause/m-p/388787#M1162163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is hopefully a basic one regarding having less script to get to the same thing.&amp;nbsp; Currently I am doing the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;From TableA&lt;/P&gt;&lt;P&gt;WHERE OrderType = "A" AND OrderClass = 71&lt;/P&gt;&lt;P&gt;OR OrderType = "A" AND OrderClass = 85&lt;/P&gt;&lt;P&gt;OR OrderType = "A" AND OrderClass = 91;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a simplier way to write this i.e. in SQL it would be something like &lt;/P&gt;&lt;P&gt;WHERE OrderType = 'A' AND OrderClass IN (71, 85, 91)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 14:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cleaner-WHERE-Clause/m-p/388787#M1162163</guid>
      <dc:creator />
      <dc:date>2012-10-31T14:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaner WHERE Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Cleaner-WHERE-Clause/m-p/388788#M1162164</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;From TableA&lt;/P&gt;&lt;P&gt;WHERE OrderType = "A" and match(OrderClass,71,85,91)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 14:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cleaner-WHERE-Clause/m-p/388788#M1162164</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-10-31T14:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaner WHERE Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Cleaner-WHERE-Clause/m-p/388789#M1162165</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;Try like this &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 TableA&lt;/P&gt;&lt;P&gt;WHERE OrderType = "A" AND Match(OrderClass, 71, 85, 91);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The match() in Qlikview will act similarly like In in SQL.&amp;nbsp; Also you have different variants of Match() like Mixmatch() and WildMatch().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 14:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cleaner-WHERE-Clause/m-p/388789#M1162165</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-10-31T14:31:55Z</dc:date>
    </item>
  </channel>
</rss>

