<?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: conditional where clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308190#M113796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am using match &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but instead of doing match (Customer,a,b,c)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i do something like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set @abc="a,b'c"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where match(Customer,@abc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pramod Kumar&lt;/P&gt;&lt;P&gt;Asst. Manager (IT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kent RO Systems Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2012 10:59:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-22T10:59:13Z</dc:date>
    <item>
      <title>conditional where clause</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308188#M113794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to implement a where clause which depends on other many variable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET&amp;nbsp; var1='''&lt;/P&gt;&lt;P&gt;SET var2=''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also var1 and var2 can contain multiple values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for using in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;A href="mailto:vara=@var1"&gt;vara=@var1&lt;/A&gt; &lt;/P&gt;&lt;P&gt;and &lt;A href="mailto:varb=@var2"&gt;varb=@var2&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like we use in procedures&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please giuve suggestion , if any&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 10:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308188#M113794</guid>
      <dc:creator />
      <dc:date>2012-02-22T10:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: conditional where clause</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308189#M113795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Have you considered using the Match() in QlikView Scripting? This is an example of exists that is a part of Rob Wunderlich's cookbook available at his website robwunderlich.com.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;The match function is a way to avoid writing &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Load ...&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;From ...&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Where Customer = 'A' or Customer ='B' or Customer='C'&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;and write it as &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Load ...&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;From ...&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Where match(Customer, 'A','B','C')&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;and it comes in a variety of flavors.&amp;nbsp; WildMatch() is usually my favorite.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;I hope this helps!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 10:54:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308189#M113795</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-02-22T10:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: conditional where clause</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308190#M113796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am using match &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but instead of doing match (Customer,a,b,c)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i do something like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set @abc="a,b'c"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where match(Customer,@abc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pramod Kumar&lt;/P&gt;&lt;P&gt;Asst. Manager (IT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kent RO Systems Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 10:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308190#M113796</guid>
      <dc:creator />
      <dc:date>2012-02-22T10:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: conditional where clause</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308191#M113797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET var1 = 'A', 'B', 'C';&lt;/P&gt;&lt;P&gt;SET var2 = 'A', 'B', 'C';&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; vara,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; varb,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;/P&gt;&lt;P&gt;FROM DATASOURCE&lt;/P&gt;&lt;P&gt;WHERE vara = Match(vara, $(var1))&lt;/P&gt;&lt;P&gt;AND varb = Match(varb, $(var2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this 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, 22 Feb 2012 10:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308191#M113797</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-22T10:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: conditional where clause</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308192#M113798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not working dear &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pramod Kumar&lt;/P&gt;&lt;P&gt;Asst. Manager (IT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kent RO Systems Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 11:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308192#M113798</guid>
      <dc:creator />
      <dc:date>2012-02-22T11:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: conditional where clause</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308193#M113799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;That's good! You can use the dollar sign expansion as mentioned by Jagan.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Dollar-sign expansions are definitions of text replacements used in the script or in expressions. The replacement of original text is made just before the script statement or the expression is evaluated.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Hope this helps!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 11:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308193#M113799</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-02-22T11:05:28Z</dc:date>
    </item>
    <item>
      <title>conditional where clause</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308194#M113800</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;Check the below script, it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET var1 = 'a','b','c';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET var2 = 'a','b','c';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vara, varb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a, b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d,d];&lt;/P&gt;&lt;P&gt;TEst:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD * ,&lt;/P&gt;&lt;P&gt;1 AS Temp&lt;/P&gt;&lt;P&gt;RESIDENT Temp&lt;/P&gt;&lt;P&gt;WHERE Match(vara, $(var1)) AND&lt;/P&gt;&lt;P&gt;Match(varb, $(var2));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP table Temp;&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, 22 Feb 2012 11:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308194#M113800</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-22T11:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: conditional where clause</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308195#M113801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankx DV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your suggestion working fine after hit &amp;amp; trial&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pramod Kumar&lt;/P&gt;&lt;P&gt;Asst. Manager (IT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kent RO Systems Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 11:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308195#M113801</guid>
      <dc:creator />
      <dc:date>2012-02-22T11:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: conditional where clause</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308196#M113802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jagan  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;approach is working fine &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pramod Kumar&lt;/P&gt;&lt;P&gt;Asst. Manager (IT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kent RO Systems Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 11:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308196#M113802</guid>
      <dc:creator />
      <dc:date>2012-02-22T11:52:05Z</dc:date>
    </item>
    <item>
      <title>conditional where clause</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308197#M113803</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;If your problems solves, close this discussion by selecting correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I helps others to find solution for this kind of problem.&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, 22 Feb 2012 11:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-where-clause/m-p/308197#M113803</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-22T11:58:57Z</dc:date>
    </item>
  </channel>
</rss>

