<?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 Looping over table and doing lookup in script editor in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Looping-over-table-and-doing-lookup-in-script-editor/m-p/1797117#M8748</link>
    <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;I am preparing a data set which resides in two database tables associated by a common attribute ("CPN").&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Table A (warehouse qty on hand):&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;[ProdID]&lt;BR /&gt;[QOH]&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Table B (products needed):&lt;/STRONG&gt;&lt;BR /&gt;[ProdID]&lt;BR /&gt;[Deadline]&lt;BR /&gt;[QTY] &lt;EM&gt;(always = 1)&lt;/EM&gt;&lt;BR /&gt;Order By [Deadline] asc&lt;/P&gt;&lt;P&gt;I need to conduct a lookup for each row between Table A and Table B and for each row to subtract [QTY] from [QOH].&lt;BR /&gt;Table B is ordered by [Deadline] as I need the products with the closest deadline to be treated first.&lt;BR /&gt;&lt;BR /&gt;Imagined outcome:&lt;BR /&gt;Option 1) A flag in Table B which indicates if QOH for a ProdID has reached zero. I will then be able to create a list of products we're able to produce with the current warehouse QOH stats.&lt;/P&gt;&lt;P&gt;Option 2) A column in Table B stating what the adjusted QOH is for the record's ProdID (okay if it's a negative number).&lt;/P&gt;&lt;P&gt;Hope someone is able to crack the case.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2021 07:08:50 GMT</pubDate>
    <dc:creator>qlikcook</dc:creator>
    <dc:date>2021-04-14T07:08:50Z</dc:date>
    <item>
      <title>Looping over table and doing lookup in script editor</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Looping-over-table-and-doing-lookup-in-script-editor/m-p/1797117#M8748</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;I am preparing a data set which resides in two database tables associated by a common attribute ("CPN").&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Table A (warehouse qty on hand):&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;[ProdID]&lt;BR /&gt;[QOH]&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Table B (products needed):&lt;/STRONG&gt;&lt;BR /&gt;[ProdID]&lt;BR /&gt;[Deadline]&lt;BR /&gt;[QTY] &lt;EM&gt;(always = 1)&lt;/EM&gt;&lt;BR /&gt;Order By [Deadline] asc&lt;/P&gt;&lt;P&gt;I need to conduct a lookup for each row between Table A and Table B and for each row to subtract [QTY] from [QOH].&lt;BR /&gt;Table B is ordered by [Deadline] as I need the products with the closest deadline to be treated first.&lt;BR /&gt;&lt;BR /&gt;Imagined outcome:&lt;BR /&gt;Option 1) A flag in Table B which indicates if QOH for a ProdID has reached zero. I will then be able to create a list of products we're able to produce with the current warehouse QOH stats.&lt;/P&gt;&lt;P&gt;Option 2) A column in Table B stating what the adjusted QOH is for the record's ProdID (okay if it's a negative number).&lt;/P&gt;&lt;P&gt;Hope someone is able to crack the case.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 07:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Looping-over-table-and-doing-lookup-in-script-editor/m-p/1797117#M8748</guid>
      <dc:creator>qlikcook</dc:creator>
      <dc:date>2021-04-14T07:08:50Z</dc:date>
    </item>
  </channel>
</rss>

