<?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 How to Pass colum in for loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Pass-colum-in-for-loop/m-p/1560067#M743489</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have list of shipment id in a qvd. How I will use these id in for loop to run another sql query sql Script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example;&lt;/P&gt;&lt;P&gt;Shipment id&lt;/P&gt;&lt;P&gt;91064&lt;BR /&gt;94353&lt;BR /&gt;98477&lt;BR /&gt;98478&lt;BR /&gt;98479&lt;BR /&gt;98480&lt;BR /&gt;98481&lt;BR /&gt;98482&lt;BR /&gt;98483&lt;BR /&gt;98528&lt;BR /&gt;98564&lt;BR /&gt;98565&lt;BR /&gt;&lt;BR /&gt;SQL select col1,col2 from table1 where Shipemetid = ? (Output should based on all shipment id in qvd)&lt;/P&gt;&lt;P&gt;Here I can't use IN operator .&amp;nbsp; Please help on above requirements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deb&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>debabrata_sahoo</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How to Pass colum in for loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Pass-colum-in-for-loop/m-p/1560067#M743489</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have list of shipment id in a qvd. How I will use these id in for loop to run another sql query sql Script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example;&lt;/P&gt;&lt;P&gt;Shipment id&lt;/P&gt;&lt;P&gt;91064&lt;BR /&gt;94353&lt;BR /&gt;98477&lt;BR /&gt;98478&lt;BR /&gt;98479&lt;BR /&gt;98480&lt;BR /&gt;98481&lt;BR /&gt;98482&lt;BR /&gt;98483&lt;BR /&gt;98528&lt;BR /&gt;98564&lt;BR /&gt;98565&lt;BR /&gt;&lt;BR /&gt;SQL select col1,col2 from table1 where Shipemetid = ? (Output should based on all shipment id in qvd)&lt;/P&gt;&lt;P&gt;Here I can't use IN operator .&amp;nbsp; Please help on above requirements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deb&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Pass-colum-in-for-loop/m-p/1560067#M743489</guid>
      <dc:creator>debabrata_sahoo</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pass colum in for loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Pass-colum-in-for-loop/m-p/1560197#M743490</link>
      <description>&lt;P&gt;If there are not too many ID's you could use IN(), for example with:&lt;/P&gt;&lt;P&gt;ShipmentID: load concat(ID, ',') as ID from ShipmentID;&lt;BR /&gt;let vShipmentID = peek('ShipmentID', 0, 'ShipmentID');&lt;/P&gt;&lt;P&gt;SQL select * from Source where ShipmentID IN($(vShipmentID));&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 15:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Pass-colum-in-for-loop/m-p/1560197#M743490</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-03-22T15:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pass colum in for loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Pass-colum-in-for-loop/m-p/1560501#M743491</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Marcus&lt;/SPAN&gt;&lt;SPAN class="login-bold"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;But In my scenario I can't use IN() as per client requirement.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 04:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Pass-colum-in-for-loop/m-p/1560501#M743491</guid>
      <dc:creator>debabrata_sahoo</dc:creator>
      <dc:date>2019-03-25T04:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pass colum in for loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Pass-colum-in-for-loop/m-p/1560521#M743492</link>
      <description>The script below will query the database multiple times, but it will do the trick without using IN().&lt;BR /&gt;&lt;BR /&gt;For each vShipmentID in FieldList('shipmentListField')&lt;BR /&gt;//autoconcatenate&lt;BR /&gt;Shipments:&lt;BR /&gt;LOAD*;&lt;BR /&gt;SQL select * from Source where ShipmentID = $(vShipmentID);&lt;BR /&gt;NEXT vShipmentID</description>
      <pubDate>Mon, 25 Mar 2019 06:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Pass-colum-in-for-loop/m-p/1560521#M743492</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-25T06:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Pass colum in for loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Pass-colum-in-for-loop/m-p/1560549#M743493</link>
      <description>&lt;P&gt;What speaks against an in() where-clause? If it's not a problem to pull the whole table you could do that and filter then the data within Qlik per exists(). Otherwise it would be helpful you give a bit more background to your question.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 07:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Pass-colum-in-for-loop/m-p/1560549#M743493</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-03-25T07:40:56Z</dc:date>
    </item>
  </channel>
</rss>

