<?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: Help working with batch, quantity and date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Help-working-with-batch-quantity-and-date/m-p/1598378#M44239</link>
    <description>&lt;P&gt;Is the batch a number ? Can you load by batch&amp;nbsp; ascending ?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2019 03:32:30 GMT</pubDate>
    <dc:creator>Lisa_P</dc:creator>
    <dc:date>2019-07-03T03:32:30Z</dc:date>
    <item>
      <title>Help working with batch, quantity and date</title>
      <link>https://community.qlik.com/t5/App-Development/Help-working-with-batch-quantity-and-date/m-p/1598375#M44238</link>
      <description>&lt;P&gt;Hey guys, I need help.&lt;/P&gt;&lt;P&gt;I am working with a table that has the following structure:&lt;/P&gt;&lt;P&gt;Type|Batch|Date|Quantity&lt;/P&gt;&lt;P&gt;0001|XXXXX|2019-01-01|1000&lt;/P&gt;&lt;P&gt;0002|XXXXX|2019-01-02|100&lt;/P&gt;&lt;P&gt;0002|XXXXX|2019-01-03|100&lt;/P&gt;&lt;P&gt;0001|XXXXX|2019-01-04|50&lt;/P&gt;&lt;P&gt;0002|XXXXX|2019-01-06|100&lt;/P&gt;&lt;P&gt;What I need is to use all quantity in the first row (1000), type 0001, before using the quantity produced in 2019-01-04.&lt;/P&gt;&lt;P&gt;My Result should be:&lt;/P&gt;&lt;P&gt;Type|Batch|Date|Quantity&lt;/P&gt;&lt;P&gt;0001|XXXXX|2019-01-01|1000&lt;/P&gt;&lt;P&gt;0002|XXXXX|2019-01-02|100&lt;/P&gt;&lt;P&gt;0002|XXXXX|2019-01-03|100&lt;/P&gt;&lt;P&gt;0002|XXXXX|2019-01-06|100&lt;/P&gt;&lt;P&gt;0001|XXXXX|2019-01-04|50&lt;/P&gt;&lt;P&gt;It's basically a Sorting problem, the information type 0001 and type 0002 are in the same table and have the exactly same structure, but one is Items produced (0001) and the other are Items Sold (0002).&lt;/P&gt;&lt;P&gt;I need to sort them in a way that I only consume from a Batch that is previous to the Selling date and that I always get my quantity from the oldest remaining Batch produced (type 0001).&lt;/P&gt;&lt;P&gt;I hope you guys understand, if not, please ask me.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-working-with-batch-quantity-and-date/m-p/1598375#M44238</guid>
      <dc:creator>fnfrbr95</dc:creator>
      <dc:date>2024-11-16T20:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help working with batch, quantity and date</title>
      <link>https://community.qlik.com/t5/App-Development/Help-working-with-batch-quantity-and-date/m-p/1598378#M44239</link>
      <description>&lt;P&gt;Is the batch a number ? Can you load by batch&amp;nbsp; ascending ?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 03:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-working-with-batch-quantity-and-date/m-p/1598378#M44239</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2019-07-03T03:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help working with batch, quantity and date</title>
      <link>https://community.qlik.com/t5/App-Development/Help-working-with-batch-quantity-and-date/m-p/1598379#M44240</link>
      <description>&lt;P&gt;The batch isn't always just numbers, it can be number and letters, it's already ascending considering batch and date, but as I showed new batches come out with same number/code before the older batch ends.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 03:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-working-with-batch-quantity-and-date/m-p/1598379#M44240</guid>
      <dc:creator>fnfrbr95</dc:creator>
      <dc:date>2019-07-03T03:36:01Z</dc:date>
    </item>
  </channel>
</rss>

