<?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: Using columns from different tables and filtering based on a condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-columns-from-different-tables-and-filtering-based-on-a/m-p/1117831#M633611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a flag dimension, BacklogGreaterInventory = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; If(Sum(Backlog) - Sum(Inventory) - Sum(WIP)) &amp;gt;0,1,0), then filter on that.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2016 15:59:04 GMT</pubDate>
    <dc:creator>dwforest</dc:creator>
    <dc:date>2016-07-20T15:59:04Z</dc:date>
    <item>
      <title>Using columns from different tables and filtering based on a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Using-columns-from-different-tables-and-filtering-based-on-a/m-p/1117830#M633609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Backlog (can have multiple records for the same customer and product)&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Backlog&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inventory (single record for each product)&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Inventory&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WIP (multiple records for the same product)&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Lot Number&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;WIP&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1111&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;222&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;333&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to find those products at risk where Backlog &amp;gt; (Inventory + WIP). In this example, for each product the calculation is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product X: Backlog of 90 &amp;gt; (Inventory of 30 + WIP of 30)&amp;nbsp; --&amp;gt; meets the above condition, the product is at risk&lt;/P&gt;&lt;P&gt;Product Y: Backlog of 100 &amp;lt; (Inventory of 80 + WIP of 40) --&amp;gt; does not meet the above condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, I would like to show in chart/table only product X that matches the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today I have a table with dimension Product and a Difference measure where:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Difference = Sum(Backlog) - Sum(Inventory) - Sum(WIP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I take this to Excel and eliminate records where Difference is lower than or equal to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way in Qlik Sense to show in the table only the products that match the condition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 19:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-columns-from-different-tables-and-filtering-based-on-a/m-p/1117830#M633609</guid>
      <dc:creator>tshimadajr</dc:creator>
      <dc:date>2016-06-02T19:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using columns from different tables and filtering based on a condition</title>
      <link>https://community.qlik.com/t5/QlikView/Using-columns-from-different-tables-and-filtering-based-on-a/m-p/1117831#M633611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a flag dimension, BacklogGreaterInventory = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; If(Sum(Backlog) - Sum(Inventory) - Sum(WIP)) &amp;gt;0,1,0), then filter on that.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 15:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-columns-from-different-tables-and-filtering-based-on-a/m-p/1117831#M633611</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2016-07-20T15:59:04Z</dc:date>
    </item>
  </channel>
</rss>

