<?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: How to write parameterized filter condition in query while fetching data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-parameterized-filter-condition-in-query-while/m-p/427799#M696334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. It worked for me....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 May 2013 11:35:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-06T11:35:29Z</dc:date>
    <item>
      <title>How to write parameterized filter condition in query while fetching data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-parameterized-filter-condition-in-query-while/m-p/427797#M696332</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;I have a requirement where I need to pull data from a database and my filter condition should be parameterized and should come from a text/excel file. So that business user can open that text/excel file and can change the condition accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My query is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;from dbo.Customer&lt;/P&gt;&lt;P&gt;where customerID in (22, 12)&lt;/P&gt;&lt;P&gt;and StateID in (100, 102, 125)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in above query how can I store these customerID values &amp;amp; StateID values in text/excel and this query calls those parameters from that file and then execute. In a way it will be dynamic so tomorrow user can go to this file and change the parameter value and without chaning any code the script will still work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 09:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-parameterized-filter-condition-in-query-while/m-p/427797#M696332</guid>
      <dc:creator />
      <dc:date>2013-05-06T09:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to write parameterized filter condition in query while fetching data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-parameterized-filter-condition-in-query-while/m-p/427798#M696333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your xls file has 2 rows and one column in wich you have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values&lt;/P&gt;&lt;P&gt;(22, 12)&lt;/P&gt;&lt;P&gt;(100, 102, 125)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Values&lt;/P&gt;&lt;P&gt;From myFileXls;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let row1=Peek('Values',1,'MyTable');&lt;/P&gt;&lt;P&gt;Let row2=Peek('Values',2,'MyTable');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then your select will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;from dbo.Customer&lt;/P&gt;&lt;P&gt;where customerID in $(row1)&lt;/P&gt;&lt;P&gt;and StateID in&amp;nbsp; $(row2)&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>Mon, 06 May 2013 09:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-parameterized-filter-condition-in-query-while/m-p/427798#M696333</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-05-06T09:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to write parameterized filter condition in query while fetching data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-parameterized-filter-condition-in-query-while/m-p/427799#M696334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. It worked for me....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 11:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-parameterized-filter-condition-in-query-while/m-p/427799#M696334</guid>
      <dc:creator />
      <dc:date>2013-05-06T11:35:29Z</dc:date>
    </item>
  </channel>
</rss>

