<?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: How to restrict product from one table. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-restrict-product-from-one-table/m-p/920825#M982377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your script you have other load statements between &lt;SPAN style="font-size: 13.3333330154419px;"&gt;SupplierOrders and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;factDistributor. Since these load statements don't immediately follow each other you need to specify which table should be used as reference table for the keep operation.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left keep ("SupplierOrders")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"factDistributor":&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;product_key&lt;/P&gt;&lt;P&gt;,qty_available as StockAvailable&lt;/P&gt;&lt;P&gt;,qty_blocked_qc as StockBlocked&lt;/P&gt;&lt;P&gt;,reason_code&lt;/P&gt;&lt;P&gt;,reason_code_desc&lt;/P&gt;&lt;P&gt;from JNBVDW02A.edw.dbo.qlk_fact_distributor_stock&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;reason_code in (80,81,85);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 07:35:15 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-08-14T07:35:15Z</dc:date>
    <item>
      <title>How to restrict product from one table.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-restrict-product-from-one-table/m-p/920822#M982374</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 want to&amp;nbsp; the product in the "FactDistributor " &lt;/P&gt;&lt;P&gt;which are already in "Supplier Order".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want extract product to be loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find my sample model attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 11:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-restrict-product-from-one-table/m-p/920822#M982374</guid>
      <dc:creator>suvechha_b</dc:creator>
      <dc:date>2015-08-12T11:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict product from one table.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-restrict-product-from-one-table/m-p/920823#M982375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to remove the records related to the products that do not exist in the table factDistributor then add a right keep before the load statement for factDistributor:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14393790930286667" jivemacro_uid="_14393790930286667"&gt;
&lt;P&gt;&lt;STRONG&gt;right keep&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;"factDistributor":&lt;/P&gt;
&lt;P&gt;select&lt;/P&gt;
&lt;P&gt;product_key&lt;/P&gt;
&lt;P&gt;,qty_available as StockAvailable&lt;/P&gt;
&lt;P&gt;,qty_blocked_qc as StockBlocked&lt;/P&gt;
&lt;P&gt;,reason_code&lt;/P&gt;
&lt;P&gt;,reason_code_desc&lt;/P&gt;
&lt;P&gt;from JNBVDW02A.edw.dbo.qlk_fact_distributor_stock&lt;/P&gt;
&lt;P&gt;where&lt;/P&gt;
&lt;P&gt;reason_code in (80,81,85);&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 11:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-restrict-product-from-one-table/m-p/920823#M982375</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-12T11:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict product from one table.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-restrict-product-from-one-table/m-p/920824#M982376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see my full script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;"SupplierOrders":&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;SELECT&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt; division_key, &lt;BR /&gt; product_key, &lt;BR /&gt; customer_key,&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; order_period_key, &lt;BR /&gt; order_date_key, &lt;BR /&gt; planned_delivery_period_key, &lt;BR /&gt; planned_delivery_date_key, &lt;BR /&gt; order_status_key, &lt;BR /&gt; order_type_key, &lt;BR /&gt; [Order Number], &lt;BR /&gt; [Customer Reference], &lt;BR /&gt; [Invoice Number], &lt;BR /&gt; invoice_date_key, &lt;BR /&gt; [Order Qty], &lt;BR /&gt; [Delivered Qty], &lt;BR /&gt; [Picked Qty], &lt;BR /&gt; [OutStanding Qty], &lt;BR /&gt; nsn, &lt;BR /&gt; contract_no,&lt;BR /&gt; tender_no,&lt;BR /&gt; doh_description, &lt;BR /&gt; doh_brand_name,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; supplier_name,&lt;BR /&gt; contract_start_date,&lt;BR /&gt; contract_end_date,&lt;BR /&gt; "Supplier Order Receipt date",&lt;BR /&gt; "Date Order Expected By Depot",&lt;BR /&gt; "Depot Order Date",&lt;BR /&gt; "comment",&lt;BR /&gt; "order_fulfilled", &lt;BR /&gt; FROM edw.dbo."qlk_fact_sales_orders";&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; "qlkinvoicedate":&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;Load&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"invoice_date_key"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"Date order Dispatched_Supplier"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"Date Order Delivered_Supplier"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; SELECT * from jnbvdw02a.edw.dbo.[qlk_fact_invoice_date];&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;"SupplyFeedback":&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;SELECT&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;FROM edw.dbo.&lt;BR /&gt; qlk_fact_sales_orders_supply_feedback;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;left&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;keep&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; "Forecast":&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;select&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt; product_key,&lt;BR /&gt; period_key,&lt;BR /&gt; forecast_sales_value,&lt;BR /&gt; forecast_quantity &lt;BR /&gt; from jnbvdw02a.edw.dbo.vw_fact_jes_inventory;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;keep&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;"factDistributor":&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;select&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt; product_key&lt;BR /&gt; ,qty_available as StockAvailable&lt;BR /&gt; ,qty_blocked_qc as StockBlocked&lt;BR /&gt; ,reason_code&lt;BR /&gt; ,reason_code_desc&lt;BR /&gt; from JNBVDW02A.edw.dbo.qlk_fact_distributor_stock&lt;BR /&gt; where &lt;BR /&gt; reason_code in (80,81,85);&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;keep&lt;/SPAN&gt;&lt;BR /&gt; "InvoicedOrders":&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;select&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt; product_key,&lt;BR /&gt; snap_shot_period_key,&lt;BR /&gt; [Order_Qty] as [Invoice Order Qty]&lt;BR /&gt; FROM JNBVDW02A.edw.dbo.vw_fact_sales_invoiced_order;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Is this correct as I am not getting my result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; Eg,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;I have product (A,B,C)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;in &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px;"&gt;SupplyFeedback table.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;But I have product (A,B,C,D) in table &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px;"&gt;Forecast&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12px; font-family: 'Courier New';"&gt;and product(B,C,D,E) in &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px;"&gt;factDistributor.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;I require :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;The qlikview should only load product (A,B,C)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;as output.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 13:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-restrict-product-from-one-table/m-p/920824#M982376</guid>
      <dc:creator>suvechha_b</dc:creator>
      <dc:date>2015-08-12T13:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict product from one table.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-restrict-product-from-one-table/m-p/920825#M982377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your script you have other load statements between &lt;SPAN style="font-size: 13.3333330154419px;"&gt;SupplierOrders and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;factDistributor. Since these load statements don't immediately follow each other you need to specify which table should be used as reference table for the keep operation.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left keep ("SupplierOrders")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"factDistributor":&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;product_key&lt;/P&gt;&lt;P&gt;,qty_available as StockAvailable&lt;/P&gt;&lt;P&gt;,qty_blocked_qc as StockBlocked&lt;/P&gt;&lt;P&gt;,reason_code&lt;/P&gt;&lt;P&gt;,reason_code_desc&lt;/P&gt;&lt;P&gt;from JNBVDW02A.edw.dbo.qlk_fact_distributor_stock&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;reason_code in (80,81,85);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 07:35:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-restrict-product-from-one-table/m-p/920825#M982377</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-14T07:35:15Z</dc:date>
    </item>
  </channel>
</rss>

