<?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 Select records without a specific matched record (one-to-many join) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-records-without-a-specific-matched-record-one-to-many/m-p/206266#M62456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello James&lt;/P&gt;&lt;P&gt;First, you should understand that QlikView does not allow reverse selections (i.e. everything except for XXXX), but there are a couple of ways at least to achieve this.&lt;/P&gt;&lt;P&gt;I put an example up here that uses a stand alone variable which holds the equivalent of each of your FLAG values, this can be replaced by adding something to your load script to select flags as different names (I added some commented code to your load script to give you an idea). The SelectFlag variable is then provided as a list box to select from, the variable has a macro called whenever it is changed and the macro simply select everything on FLAG except for the value selected on SelectFlag. Hope I'm making some sense here.&lt;/P&gt;&lt;P&gt;This is one way to achieve it, I'll put another up in a little while.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Apr 2010 16:40:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-07T16:40:57Z</dc:date>
    <item>
      <title>Select records without a specific matched record (one-to-many join)</title>
      <link>https://community.qlik.com/t5/QlikView/Select-records-without-a-specific-matched-record-one-to-many/m-p/206265#M62455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I've got a one-to-many join in my QlikView application as follows (matched by ID):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 240pt; border-collapse: collapse;" width="320"&gt;&lt;COLGROUP&gt;&lt;COL span="5" style="width: 48pt;" width="64" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD colspan="2" height="17" style="width: 96pt; height: 12.75pt; background-color: transparent; mso-ignore: colspan; border: #ece9d8;" width="128"&gt;Master file&lt;/TD&gt;&lt;TD class="xl24" colspan="3" style="width: 144pt; background-color: transparent; border: #ece9d8;" width="192"&gt;Detail file&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height: 12.75pt; background-color: transparent; border: #ece9d8;"&gt;&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl25" height="17" style="height: 12.75pt; background-color: transparent; border: #ece9d8;"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl25" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl25" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;&lt;STRONG&gt;Seq&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl25" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;&lt;STRONG&gt;Flag&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height: 12.75pt; background-color: transparent; border: #ece9d8;"&gt;A&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;A&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;1&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;X&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height: 12.75pt; background-color: transparent; border: #ece9d8;"&gt;B&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;A&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;2&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height: 12.75pt; background-color: transparent; border: #ece9d8;"&gt;C&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;B&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;1&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;X&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height: 12.75pt; background-color: transparent; border: #ece9d8;"&gt;D&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;C&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;1&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;Z&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height: 12.75pt; background-color: transparent; border: #ece9d8;"&gt;&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;C&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;2&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;Z&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height: 12.75pt; background-color: transparent; border: #ece9d8;"&gt;&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;D&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;1&lt;/TD&gt;&lt;TD class="xl24" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; BORDER-BOTTOM: #ece9d8; BACKGROUND-COLOR: transparent"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If I create a listbox based on the Flag field then I can select all ID's that have a particular flag value on any of their matching detail records. For example, if I pick flag X, QV will show me IDs A and B.&lt;/P&gt;&lt;P&gt;However what I want is to select ID's that &lt;STRONG&gt;don't&lt;/STRONG&gt; have particular flag on any of their matching detail records.&lt;/P&gt;&lt;P&gt;For example, if I select flag X I want QV to only show IDs C and D (the only two IDs that don't have flag X on any of their matching detail records). If I select flag Y I want QV to only show IDs B and C (the only two that don't have flag Y on any of their matching detail records).&lt;/P&gt;&lt;P&gt;I've attached an application which hopefully clarifies further. Hope this makes sense! Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 15:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-records-without-a-specific-matched-record-one-to-many/m-p/206265#M62455</guid>
      <dc:creator />
      <dc:date>2010-04-07T15:33:54Z</dc:date>
    </item>
    <item>
      <title>Select records without a specific matched record (one-to-many join)</title>
      <link>https://community.qlik.com/t5/QlikView/Select-records-without-a-specific-matched-record-one-to-many/m-p/206266#M62456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello James&lt;/P&gt;&lt;P&gt;First, you should understand that QlikView does not allow reverse selections (i.e. everything except for XXXX), but there are a couple of ways at least to achieve this.&lt;/P&gt;&lt;P&gt;I put an example up here that uses a stand alone variable which holds the equivalent of each of your FLAG values, this can be replaced by adding something to your load script to select flags as different names (I added some commented code to your load script to give you an idea). The SelectFlag variable is then provided as a list box to select from, the variable has a macro called whenever it is changed and the macro simply select everything on FLAG except for the value selected on SelectFlag. Hope I'm making some sense here.&lt;/P&gt;&lt;P&gt;This is one way to achieve it, I'll put another up in a little while.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 16:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-records-without-a-specific-matched-record-one-to-many/m-p/206266#M62456</guid>
      <dc:creator />
      <dc:date>2010-04-07T16:40:57Z</dc:date>
    </item>
    <item>
      <title>Select records without a specific matched record (one-to-many join)</title>
      <link>https://community.qlik.com/t5/QlikView/Select-records-without-a-specific-matched-record-one-to-many/m-p/206267#M62457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James&lt;/P&gt;&lt;P&gt;My other idea was to use set analysis to achieve it, but I can't make it work at the moment and must get on with a bit of work!!&lt;/P&gt;&lt;P&gt;Hopefully somebody will come up with a Set Analysis solution for you, I think it might be easier to implement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 16:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-records-without-a-specific-matched-record-one-to-many/m-p/206267#M62457</guid>
      <dc:creator />
      <dc:date>2010-04-07T16:57:44Z</dc:date>
    </item>
    <item>
      <title>Select records without a specific matched record (one-to-many join)</title>
      <link>https://community.qlik.com/t5/QlikView/Select-records-without-a-specific-matched-record-one-to-many/m-p/206268#M62458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so far Nigel!&lt;/P&gt;&lt;P&gt;I looked at the example, but the new listbox you created seems to perform a "select excluded". So when I select flag="X" I still get ID "A" appearing, which I don't want because one of its matched detail records contains an "X" flag.&lt;/P&gt;&lt;P&gt;Am I understanding it right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 17:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-records-without-a-specific-matched-record-one-to-many/m-p/206268#M62458</guid>
      <dc:creator />
      <dc:date>2010-04-07T17:33:04Z</dc:date>
    </item>
    <item>
      <title>Select records without a specific matched record (one-to-many join)</title>
      <link>https://community.qlik.com/t5/QlikView/Select-records-without-a-specific-matched-record-one-to-many/m-p/206269#M62459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James&lt;/P&gt;&lt;P&gt;You're absolutely right, I missed that little bit of detail !! Sorry about that, I'll take another look and see what I can come up with, it must be possible to achieve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 17:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-records-without-a-specific-matched-record-one-to-many/m-p/206269#M62459</guid>
      <dc:creator />
      <dc:date>2010-04-07T17:59:24Z</dc:date>
    </item>
    <item>
      <title>Select records without a specific matched record (one-to-many join)</title>
      <link>https://community.qlik.com/t5/QlikView/Select-records-without-a-specific-matched-record-one-to-many/m-p/206270#M62460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this? Trigger it onSelect or onChange of Flag.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sub selectIDs&lt;BR /&gt; ActiveDocument.Fields("ID").Clear&lt;BR /&gt; ActiveDocument.Fields("ID").SelectPossible&lt;BR /&gt; ActiveDocument.Fields("ID").SelectExcluded&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;Not sure if it's exactly what you want overall, but it DOES seem to select the right values for the ID. And the "selected" value of the Flag ends up highlighted in gray, so there's still an indication of some sort that it's what you selected. Could probably do it with actions in version 9.&lt;/P&gt;&lt;P&gt;Edit: Hmmm, it doesn't work if you select every possible value of the flag, because then the select excluded can't select anything, so it selects nothing, which means the macro ends up doing nothing. Not sure if that's a problem in practice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 00:11:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-records-without-a-specific-matched-record-one-to-many/m-p/206270#M62460</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-04-08T00:11:03Z</dc:date>
    </item>
    <item>
      <title>Select records without a specific matched record (one-to-many join)</title>
      <link>https://community.qlik.com/t5/QlikView/Select-records-without-a-specific-matched-record-one-to-many/m-p/206271#M62461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works great, selecting all the values is not really a problem,&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 10:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-records-without-a-specific-matched-record-one-to-many/m-p/206271#M62461</guid>
      <dc:creator />
      <dc:date>2010-04-08T10:16:17Z</dc:date>
    </item>
  </channel>
</rss>

