<?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 Loop through records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-through-records/m-p/525515#M196415</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 need to loop through records in a table to find a matching record, and&lt;BR /&gt;then compare them with some criteria.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Attached are 2 files - if you check the excel file, I need to pick one &lt;STRONG&gt;Parent&lt;BR /&gt;ID&lt;/STRONG&gt;, and then loop through the column &lt;STRONG&gt;ID&lt;/STRONG&gt;, if a&lt;BR /&gt;matching record is found then I need to compare these two rows with the&lt;BR /&gt;criteria given towards the right side of the excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;New ID&lt;/STRONG&gt; field in the file is the required outcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated. Please let me know if more clarification&lt;BR /&gt;is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Oct 2013 09:23:20 GMT</pubDate>
    <dc:creator>bhaskarsharma03</dc:creator>
    <dc:date>2013-10-08T09:23:20Z</dc:date>
    <item>
      <title>Loop through records</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-through-records/m-p/525515#M196415</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 need to loop through records in a table to find a matching record, and&lt;BR /&gt;then compare them with some criteria.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Attached are 2 files - if you check the excel file, I need to pick one &lt;STRONG&gt;Parent&lt;BR /&gt;ID&lt;/STRONG&gt;, and then loop through the column &lt;STRONG&gt;ID&lt;/STRONG&gt;, if a&lt;BR /&gt;matching record is found then I need to compare these two rows with the&lt;BR /&gt;criteria given towards the right side of the excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;New ID&lt;/STRONG&gt; field in the file is the required outcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated. Please let me know if more clarification&lt;BR /&gt;is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 09:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-through-records/m-p/525515#M196415</guid>
      <dc:creator>bhaskarsharma03</dc:creator>
      <dc:date>2013-10-08T09:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through records</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-through-records/m-p/525516#M196416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try maybe something along these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ParentMap:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MAPPING LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthStart(Date) &amp;amp; ' - ' &amp;amp; [ID],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ID]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[New ID-1.xlsx]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, table is Sheet1) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE Stage = 'Sold';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ID, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Stage, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Parent ID], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [New ID] as ReqID,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Stage = 'Sold' and Amount &amp;lt;0, applymap('ParentMap',Monthstart(Date) &amp;amp;' - ' &amp;amp; [Parent ID], ID), ID) as [New ID]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[New ID-1.xlsx]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, table is Sheet1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: You will need to adapt the filename of the excel&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 09:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-through-records/m-p/525516#M196416</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-08T09:38:42Z</dc:date>
    </item>
  </channel>
</rss>

