<?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 Remove Records in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209731#M64609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Anthony It seems that the way you proupose is simpler. Could you explain it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Apr 2010 17:25:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-09T17:25:45Z</dc:date>
    <item>
      <title>Remove Records in script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209728#M64606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two table, one with detail records (TableDetail) and the other (Table Status) hold the records status (which can be more then one). The link between the two tables is an Order Number. If in TableStatus one of the status's for say Order Number 123 is 1 then I do not want to bring in the record from TableDetail at all in the script.&lt;/P&gt;&lt;P&gt;How do I do this in the script?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 16:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209728#M64606</guid>
      <dc:creator />
      <dc:date>2010-04-09T16:34:05Z</dc:date>
    </item>
    <item>
      <title>Remove Records in script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209729#M64607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't know a way to delete records, but you can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;tmpRecordsToDelete:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; OrderNumber &lt;STRONG&gt;AS&lt;/STRONG&gt; OrderNumberToDelete&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESIDENT&lt;/STRONG&gt; TableStatus&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE&lt;/STRONG&gt; status = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;tmpTableDetail:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOCONCATENATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESIDENT&lt;/STRONG&gt; TableDetail&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE&lt;/STRONG&gt; &lt;STRONG&gt;NOT&lt;/STRONG&gt; Exists(OrderNumberToDelete, OrderNumber);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP&lt;/STRONG&gt; &lt;STRONG&gt;TABLE&lt;/STRONG&gt; &lt;I&gt;tmpRecordsToDelete;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP&lt;/STRONG&gt; &lt;STRONG&gt;TABLE&lt;/STRONG&gt; &lt;I&gt;TableDetail;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RENAME&lt;/STRONG&gt; &lt;STRONG&gt;TABLE&lt;/STRONG&gt; &lt;I&gt;tmpTableDetail&lt;/I&gt; &lt;STRONG&gt;TO&lt;/STRONG&gt; &lt;I&gt;TableDetail;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 17:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209729#M64607</guid>
      <dc:creator />
      <dc:date>2010-04-09T17:02:23Z</dc:date>
    </item>
    <item>
      <title>Remove Records in script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209730#M64608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a where not exists(1) statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 17:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209730#M64608</guid>
      <dc:creator />
      <dc:date>2010-04-09T17:16:49Z</dc:date>
    </item>
    <item>
      <title>Remove Records in script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209731#M64609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Anthony It seems that the way you proupose is simpler. Could you explain it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 17:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209731#M64609</guid>
      <dc:creator />
      <dc:date>2010-04-09T17:25:45Z</dc:date>
    </item>
    <item>
      <title>Remove Records in script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209732#M64610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually this is the way that I would do it after reading it all again. What the script does is loads all the table from two tables intwo one. Then loads it all into the resident table where orderstatus is not 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Table1:&lt;BR /&gt;load&lt;BR /&gt;order number&lt;BR /&gt;other fields&lt;BR /&gt;from source.qvd&lt;BR /&gt;join&lt;BR /&gt;load&lt;BR /&gt;order number&lt;BR /&gt;order status&lt;BR /&gt;from source2.qvd&lt;BR /&gt;&lt;BR /&gt;load&lt;BR /&gt;Order number&lt;BR /&gt;order status&lt;BR /&gt;resident Table1 where order status &amp;lt;&amp;gt; 1;&lt;BR /&gt;Drop table Table1;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 17:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209732#M64610</guid>
      <dc:creator />
      <dc:date>2010-04-09T17:36:02Z</dc:date>
    </item>
    <item>
      <title>Remove Records in script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209733#M64611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haven't tried the examples, but remember an order can have more the one status. So in the examples above are you only removing status 1. Meaning say an order has status's of 1, 2 and 3. Because the order has a 1 I do not want to see the order at all. So are the examples above going to continue to show the order because it also has status's of 2 and 3 (which I do not what)?&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 17:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209733#M64611</guid>
      <dc:creator />
      <dc:date>2010-04-09T17:42:41Z</dc:date>
    </item>
    <item>
      <title>Remove Records in script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209734#M64612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the order have an entry for each status?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 17:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209734#M64612</guid>
      <dc:creator />
      <dc:date>2010-04-09T17:51:36Z</dc:date>
    </item>
    <item>
      <title>Remove Records in script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209735#M64613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For an order in TableDetail (only one record for each order) there can be many records in TableStatus. For example, Order 123 in TableDetail can have in TableStatus: Status 1 (Order On Hold) and Status 2 (Order Not Shipped). Because the order is on hold (status 1) I do not want to see the record at all.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 18:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209735#M64613</guid>
      <dc:creator />
      <dc:date>2010-04-09T18:06:27Z</dc:date>
    </item>
    <item>
      <title>Remove Records in script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209736#M64614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;A&gt;Damián D'Onia&lt;/A&gt; example then. IF it doesn't work let me know and I can write one up.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 18:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209736#M64614</guid>
      <dc:creator />
      <dc:date>2010-04-09T18:09:20Z</dc:date>
    </item>
    <item>
      <title>Remove Records in script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209737#M64615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anthony, tried your suggestion and it removes status 1 for an order, but any other status's and the order number still remains in the resulting table. I want the order to not show at all (because one of the orders status's is 1).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 18:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209737#M64615</guid>
      <dc:creator />
      <dc:date>2010-04-09T18:10:19Z</dc:date>
    </item>
    <item>
      <title>Remove Records in script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209738#M64616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can find an example here: [View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.01.15.11.Posted/DeleteRows.qvw]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 18:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209738#M64616</guid>
      <dc:creator />
      <dc:date>2010-04-09T18:27:14Z</dc:date>
    </item>
    <item>
      <title>Remove Records in script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209739#M64617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, my example would do that. Didn't realize you had multiple order statues. IF the example posted doesn't work let me know and I can write one for you. I think his will work good though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 18:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209739#M64617</guid>
      <dc:creator />
      <dc:date>2010-04-09T18:32:10Z</dc:date>
    </item>
    <item>
      <title>Remove Records in script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209740#M64618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Damián, thanks got it working.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Stephen&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 19:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209740#M64618</guid>
      <dc:creator />
      <dc:date>2010-04-09T19:00:09Z</dc:date>
    </item>
    <item>
      <title>Remove Records in script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209741#M64619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess, I'm a bit late with this suggestion, but... the easiest way to accomplish what you need is through mapping. Consider the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Table1:&lt;BR /&gt;load&lt;BR /&gt; OrderID,&lt;BR /&gt; ...&lt;BR /&gt; Status&lt;BR /&gt; ...&lt;BR /&gt;;&lt;BR /&gt;StatusMap:&lt;BR /&gt;mapping load&lt;BR /&gt; IrderID, Status&lt;BR /&gt;Resident Table1&lt;BR /&gt;;&lt;BR /&gt;Table2:&lt;BR /&gt;load&lt;BR /&gt; OrderID,&lt;BR /&gt; ...&lt;BR /&gt;from ...&lt;BR /&gt;where&lt;BR /&gt; ApplyMap('StatusMap', OrderID) &amp;lt;&amp;gt; 1&lt;BR /&gt;;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;This way, the unwanted rows never make it to the database in the first place. I have a Wiki page about Mapping where I explain it in more detail...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Apr 2010 16:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209741#M64619</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-04-10T16:24:08Z</dc:date>
    </item>
    <item>
      <title>Remove Records in script</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209742#M64620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg,&lt;/P&gt;&lt;P&gt;Won't this approach leave the order if it also has a status of 2? I need the entire order removed, not just the status 1 part.&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 15:18:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Records-in-script/m-p/209742#M64620</guid>
      <dc:creator />
      <dc:date>2010-04-12T15:18:08Z</dc:date>
    </item>
  </channel>
</rss>

