<?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 simple scripting question for replicating SQL in() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/simple-scripting-question-for-replicating-SQL-in/m-p/220337#M73263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you may want to switch it around: Index(FIELD1, 1). That should hit on 1-222222, 1-333, 867-5309-1, etc.&lt;/P&gt;&lt;P&gt;If you have more than one, Index(FIELD1, 1)+Index(FIELD1, 2)&amp;gt;0. If 1 or 2 appears in FIELD1, then you return true.&lt;/P&gt;&lt;P&gt;Look into Wildmatch(). Wildmatch(FIELD1, '*1*', 'Hello*'). It returns the parameter number where it found the match or zero for no match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2010 17:50:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-10T17:50:42Z</dc:date>
    <item>
      <title>simple scripting question for replicating SQL in()</title>
      <link>https://community.qlik.com/t5/QlikView/simple-scripting-question-for-replicating-SQL-in/m-p/220334#M73260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, just a quick quesiton, hoping someone can help, is there a way to search in expressions for multiple items as you would in SQL,&lt;/P&gt;&lt;P&gt;i.e when I load data I can say SELECT FIELD1,FIELD2 from SQL.db WHERE FIELD1 IN (1,2,3,4) however once you get into a document I only appear to be able to use if(Field1 =1 or Field1=2 or Field1=3 or Field1=4, Field1) is there not a way to clean this up?? I have tried using If (Field1=(1|2|3|4),FIELD1) but this also doesn't work. Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 15:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-scripting-question-for-replicating-SQL-in/m-p/220334#M73260</guid>
      <dc:creator />
      <dc:date>2010-12-10T15:31:10Z</dc:date>
    </item>
    <item>
      <title>simple scripting question for replicating SQL in()</title>
      <link>https://community.qlik.com/t5/QlikView/simple-scripting-question-for-replicating-SQL-in/m-p/220335#M73261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try Index(). WHERE Index('1,2,3,4', FIELD1)&amp;gt;0.&lt;/P&gt;&lt;P&gt;Index returns the position of the second paramater in the first. So if Index()&amp;gt;0, then the second parameter is In the first.&lt;/P&gt;&lt;P&gt;Findoneof() and Substringcount() are a couple of others that work, but I usually stick with Index().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 15:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-scripting-question-for-replicating-SQL-in/m-p/220335#M73261</guid>
      <dc:creator />
      <dc:date>2010-12-10T15:42:43Z</dc:date>
    </item>
    <item>
      <title>simple scripting question for replicating SQL in()</title>
      <link>https://community.qlik.com/t5/QlikView/simple-scripting-question-for-replicating-SQL-in/m-p/220336#M73262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is good, closer than I have got before, but its not quite what I'm after, you can't use wildcards with index can you?&lt;/P&gt;&lt;P&gt;i.e. FIELD1 In('%1%') would pick up anything 1-22222 1-333 etc really after something with this functionality as well, unless there is a way to use wildcards with index?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 15:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-scripting-question-for-replicating-SQL-in/m-p/220336#M73262</guid>
      <dc:creator />
      <dc:date>2010-12-10T15:56:50Z</dc:date>
    </item>
    <item>
      <title>simple scripting question for replicating SQL in()</title>
      <link>https://community.qlik.com/t5/QlikView/simple-scripting-question-for-replicating-SQL-in/m-p/220337#M73263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you may want to switch it around: Index(FIELD1, 1). That should hit on 1-222222, 1-333, 867-5309-1, etc.&lt;/P&gt;&lt;P&gt;If you have more than one, Index(FIELD1, 1)+Index(FIELD1, 2)&amp;gt;0. If 1 or 2 appears in FIELD1, then you return true.&lt;/P&gt;&lt;P&gt;Look into Wildmatch(). Wildmatch(FIELD1, '*1*', 'Hello*'). It returns the parameter number where it found the match or zero for no match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 17:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-scripting-question-for-replicating-SQL-in/m-p/220337#M73263</guid>
      <dc:creator />
      <dc:date>2010-12-10T17:50:42Z</dc:date>
    </item>
  </channel>
</rss>

