<?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: SQLs WHERE IN functionality but for an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQLs-WHERE-IN-functionality-but-for-an-expression/m-p/624702#M229795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That makes sense, so could you let me know how to use a variable with Wildmatch()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2014 12:13:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-26T12:13:42Z</dc:date>
    <item>
      <title>SQLs WHERE IN functionality but for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/SQLs-WHERE-IN-functionality-but-for-an-expression/m-p/624697#M229790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In an expression I am carrying out something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(AGENT='James' OR AGENT='Adrian' OR AGENT='Neil', 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can check AGENT against all of those values at once? I tried something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(AGENT IN ('James','Adrian','Neil'), 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it didn't work. Ideally I'd like to store the array of names in a variable, so I could have something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(AGENT = $vAgentsAllowed, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If $vAgentsAllowed was, say something like ('James','Adrian','Neil')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be done? Thanks, George.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 11:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQLs-WHERE-IN-functionality-but-for-an-expression/m-p/624697#M229790</guid>
      <dc:creator />
      <dc:date>2014-03-26T11:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQLs WHERE IN functionality but for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/SQLs-WHERE-IN-functionality-but-for-an-expression/m-p/624698#M229791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use like&amp;nbsp; &lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;IF(Match(AGENT,'James','Adrian','Neil') 1, 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 12:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQLs-WHERE-IN-functionality-but-for-an-expression/m-p/624698#M229791</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-03-26T12:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: SQLs WHERE IN functionality but for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/SQLs-WHERE-IN-functionality-but-for-an-expression/m-p/624699#M229792</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;&lt;/P&gt;&lt;P&gt;You can use Wildmatch()&lt;/P&gt;&lt;P&gt;Try This,&lt;/P&gt;&lt;P&gt;If(Wildmatch(AGENT,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;James&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Adrian&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Neil&lt;/SPAN&gt;'),1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 12:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQLs-WHERE-IN-functionality-but-for-an-expression/m-p/624699#M229792</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-26T12:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: SQLs WHERE IN functionality but for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/SQLs-WHERE-IN-functionality-but-for-an-expression/m-p/624700#M229793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that works perfectly. But how would I put the array of names into a variable and use that variable in the Match() function? Also, How does the Wildmatch() function differ from the Match() function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 12:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQLs-WHERE-IN-functionality-but-for-an-expression/m-p/624700#M229793</guid>
      <dc:creator />
      <dc:date>2014-03-26T12:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: SQLs WHERE IN functionality but for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/SQLs-WHERE-IN-functionality-but-for-an-expression/m-p/624701#M229794</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;There is only one difference between Match() and Wildmatch()&lt;/P&gt;&lt;P&gt;Wildmatch():&lt;/P&gt;&lt;P&gt;You can Use Special Character like * and ?&lt;/P&gt;&lt;P&gt;as well Wildmatch () contain case Insensative data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not do same with match()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 12:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQLs-WHERE-IN-functionality-but-for-an-expression/m-p/624701#M229794</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-26T12:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQLs WHERE IN functionality but for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/SQLs-WHERE-IN-functionality-but-for-an-expression/m-p/624702#M229795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That makes sense, so could you let me know how to use a variable with Wildmatch()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 12:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQLs-WHERE-IN-functionality-but-for-an-expression/m-p/624702#M229795</guid>
      <dc:creator />
      <dc:date>2014-03-26T12:13:42Z</dc:date>
    </item>
  </channel>
</rss>

