<?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 Exclude Rows from Load based on other Table Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-Rows-from-Load-based-on-other-Table-Values/m-p/319127#M1199195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have any ideas on this one? Please let me know.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rachel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Apr 2011 14:53:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-13T14:53:34Z</dc:date>
    <item>
      <title>Exclude Rows from Load based on other Table Values</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Rows-from-Load-based-on-other-Table-Values/m-p/319126#M1199194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I hope that someone can help me with this.&lt;/P&gt;&lt;P&gt;I have an extensive load script which centres on TicketId. Amongst other tables, the 'TicketId' is linked to all 'InvolvedPartyId' and accompanying 'InvolvedPartyTypeId' associated with that ticket. So 1 'TicketId' could have between 1 and 5 'InvolvedPartyId's associated with it and then these involved parties' nature are also determined. The long and the short of it results in us being able to analyse how many individual cases are captured and how many parties, and their relationship, are involved.&lt;/P&gt;&lt;P&gt;The issue that I have encounted is that there are some instances where I need to exclude data based on the InvolvedPartyTypeId. A 'TicketId' could have 2 'InvolvedPartyId's associated with it but if these 2 'InvolvedPartyId's have the 'InvolvedPartyTypeId' of '14' and '7' respectively then I only want to include the data of the 'InvolvedPartyId' where the 'InvolvedPartyTypeId' is '14'. The desired result would be that the 1 'TicketId' would return information for 1 'InvolvedPartyId' with an 'InvolvedPartyTypeId' of '14'.&lt;/P&gt;&lt;P&gt;I believe that this needs to be excluded in the load script as 'InvolvedPartyTypeId's '14' and '7' are still very much relevent, and are used in my application's Set Analysis, it is only when they occur in relationship to the one 'TicketId' that the data relating to '7' needs to be excluded, including the 'InvolvedPartyId' all other data.&lt;/P&gt;&lt;P&gt;Apologies for putting such a specific rather than conceptual illustration of my issue but I wanted to be sure I was conveying my proper meaning. If anyone can help me with the scripting needed I would be really grateful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rachel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 09:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Rows-from-Load-based-on-other-Table-Values/m-p/319126#M1199194</guid>
      <dc:creator />
      <dc:date>2011-04-08T09:42:56Z</dc:date>
    </item>
    <item>
      <title>Exclude Rows from Load based on other Table Values</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Rows-from-Load-based-on-other-Table-Values/m-p/319127#M1199195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have any ideas on this one? Please let me know.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rachel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 14:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Rows-from-Load-based-on-other-Table-Values/m-p/319127#M1199195</guid>
      <dc:creator />
      <dc:date>2011-04-13T14:53:34Z</dc:date>
    </item>
    <item>
      <title>Exclude Rows from Load based on other Table Values</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Rows-from-Load-based-on-other-Table-Values/m-p/319128#M1199196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rachel,&lt;/P&gt;&lt;P&gt;There may be other ways to do this, but my first thought is this:&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;data_temp:&lt;BR /&gt;LOAD&lt;BR /&gt; TicketId,&lt;BR /&gt; InvolvedPartyId,&lt;BR /&gt; InvolvedPartyTypeId,&lt;BR /&gt; TicketId &amp;amp; '|' &amp;amp; InvolvedPartyTypeId as temp_key,&lt;BR /&gt; if(InvolvedPartyTypeId=7 or InvolvedPartyTypeId=14,1,0) as 4_17_flag&lt;BR /&gt;FROM ...;&lt;BR /&gt;LEFT JOIN (data_temp) LOAD&lt;BR /&gt; temp_key,&lt;BR /&gt; if(TicketId=previous(TicketId),&lt;BR /&gt; if(InvolvedPartyTypeId=7,&lt;BR /&gt; 1,&lt;BR /&gt; 0&lt;BR /&gt; ),&lt;BR /&gt; 0&lt;BR /&gt; ) as drop_flag&lt;BR /&gt;RESIDENT data_temp&lt;BR /&gt;WHERE 4_17_flag=1&lt;BR /&gt;ORDER BY TicketId,InvolvedPartyTypeId;&lt;BR /&gt;data_final:&lt;BR /&gt;LOAD&lt;BR /&gt; TicketId,&lt;BR /&gt; InvolvedPartyId,&lt;BR /&gt; InvolvedPartyTypeId&lt;BR /&gt;RESIDENT data_temp&lt;BR /&gt;WHERE drop_flag=0;&lt;BR /&gt;DROP TABLE data_temp;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 17:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Rows-from-Load-based-on-other-Table-Values/m-p/319128#M1199196</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2011-04-13T17:29:49Z</dc:date>
    </item>
    <item>
      <title>Exclude Rows from Load based on other Table Values</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Rows-from-Load-based-on-other-Table-Values/m-p/319129#M1199197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much I have spent a while adapting this as the InvolvedPartyTypeIds were not next to each other in sequence but with a bit of a change around this was just what I needed - thanks very much!&lt;/P&gt;&lt;P&gt;Rachel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 15:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Rows-from-Load-based-on-other-Table-Values/m-p/319129#M1199197</guid>
      <dc:creator />
      <dc:date>2011-04-15T15:35:19Z</dc:date>
    </item>
  </channel>
</rss>

