<?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 compare and update a stock value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/compare-and-update-a-stock-value/m-p/2281155#M55780</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt; 
&lt;P&gt;I have this table view (see also attached file, sheet "table_view").&lt;/P&gt; 
&lt;P&gt;The problem now: I have to compare for each product and customer the current stock value and if the requested quantity or less could be delivered.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;E.g.: Product = Monitors; the whole product has only a stock value of 150.&lt;BR /&gt;The first customer requested 100, so we are able to deliver 100&lt;BR /&gt;after that -&amp;gt; 150-100=50. The 2nd customer wants 75 but now we can only deliver 50 and the 3rd won't get anything because stock is empty now.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The output column should look like this (qty_available).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="03-04-_2020_10-11-20.png" style="width: 553px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Ol.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141184i1D212432F4DB0A95/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Ol.png" alt="0683p000009M9Ol.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How to compare stock values?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for any information.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:48:09 GMT</pubDate>
    <dc:creator>pawe84</dc:creator>
    <dc:date>2024-11-16T02:48:09Z</dc:date>
    <item>
      <title>compare and update a stock value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compare-and-update-a-stock-value/m-p/2281155#M55780</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt; 
&lt;P&gt;I have this table view (see also attached file, sheet "table_view").&lt;/P&gt; 
&lt;P&gt;The problem now: I have to compare for each product and customer the current stock value and if the requested quantity or less could be delivered.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;E.g.: Product = Monitors; the whole product has only a stock value of 150.&lt;BR /&gt;The first customer requested 100, so we are able to deliver 100&lt;BR /&gt;after that -&amp;gt; 150-100=50. The 2nd customer wants 75 but now we can only deliver 50 and the 3rd won't get anything because stock is empty now.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The output column should look like this (qty_available).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="03-04-_2020_10-11-20.png" style="width: 553px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Ol.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141184i1D212432F4DB0A95/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Ol.png" alt="0683p000009M9Ol.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How to compare stock values?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for any information.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compare-and-update-a-stock-value/m-p/2281155#M55780</guid>
      <dc:creator>pawe84</dc:creator>
      <dc:date>2024-11-16T02:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: compare and update a stock value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compare-and-update-a-stock-value/m-p/2281156#M55781</link>
      <description>You can do this with tmap by using variables.</description>
      <pubDate>Fri, 03 Apr 2020 09:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compare-and-update-a-stock-value/m-p/2281156#M55781</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-04-03T09:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: compare and update a stock value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compare-and-update-a-stock-value/m-p/2281157#M55782</link>
      <description>&lt;P&gt;But how to create dynamic variable if you have thousands of products?&lt;/P&gt; 
&lt;P&gt;Do I have to count my products at first and then I would get the number for my variables?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="06-04-_2020_16-25-38.png" style="width: 352px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9fP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137276i0A70C2785174A3F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9fP.png" alt="0683p000009M9fP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;If this is the data view for each product at first we have to find the current stock value because it's a 1:n join&lt;/P&gt; 
&lt;P&gt;like this example below.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="06-04-_2020_16-23-36.png" style="width: 704px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9fU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152134iADD26E6888F91BDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9fU.png" alt="0683p000009M9fU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 15:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compare-and-update-a-stock-value/m-p/2281157#M55782</guid>
      <dc:creator>pawe84</dc:creator>
      <dc:date>2020-04-06T15:30:43Z</dc:date>
    </item>
  </channel>
</rss>

