<?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 Show excluded within selected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206307#M62478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh I forgot about GetPossibleValues. I will give that a shot and come back.&lt;/P&gt;&lt;P&gt;Yes I have two Account Id fields. One in each table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Sep 2010 08:45:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-17T08:45:57Z</dc:date>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206302#M62473</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 have two tables. Both have Account IDs. A user can make selections within either table. What I need to do is display a list of Account IDs in the first table that are selected but not within the selection in the second table.&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;Table A Table B&lt;/P&gt;&lt;P&gt;Account ID Account ID&lt;BR /&gt;1234 1234&lt;BR /&gt;2345 3456&lt;BR /&gt;3456 4567&lt;BR /&gt;4567 5678&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My resulting display table should then only contain 2345.&lt;/P&gt;&lt;P&gt;Of course this is easy within a load but I need this to be dynamic within a selections that a user makes. It seems like a simple thing but I just can't figure out how to get a result, maybe I am just missing the obvious.&lt;/P&gt;&lt;P&gt;The background for this is that users can select one quarter then a second quarter and would like to then have one table displaying Accounts that have been cleared from the previous quarter to this new quarter, and another table displaying new Accounts that just popped up in the new quarter. I cannot do this within a load because I don't know which quarters the user will choose.&lt;/P&gt;&lt;P&gt;Any help with this would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 03:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206302#M62473</guid>
      <dc:creator />
      <dc:date>2010-09-17T03:10:18Z</dc:date>
    </item>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206303#M62474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Is this what you need:&lt;/P&gt;&lt;P&gt;If I select 1234 in table A , table B should display 3456,4567,5678&lt;/P&gt;&lt;P&gt;This can be achived using macro. Chect the sample code below:&lt;/P&gt;&lt;P&gt;Sub Test:&lt;/P&gt;&lt;P&gt;set val = ActiveDocument.Fields("TableA").GetSelectedValues&lt;/P&gt;&lt;P&gt;for i=0 to val.count -1&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("TableB").SelectAll&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("TableA").toggleSelect val.Item(i).Text&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;EndSub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 07:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206303#M62474</guid>
      <dc:creator />
      <dc:date>2010-09-17T07:04:01Z</dc:date>
    </item>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206304#M62475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Account ID is not itself selected. Other fields within the two tables are selected eg. Quarter, Year, Customer Group etc.&lt;/P&gt;&lt;P&gt;So then we have two filtered tables with two sets of rows. Both have an Account Id field and I want to compare those two fields and get the Account Ids from the first filtered table that are not in the second filtered table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 07:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206304#M62475</guid>
      <dc:creator />
      <dc:date>2010-09-17T07:26:19Z</dc:date>
    </item>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206305#M62476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The GetSelectedValues function does not return any Account Ids because the field is not actively selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 07:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206305#M62476</guid>
      <dc:creator />
      <dc:date>2010-09-17T07:27:40Z</dc:date>
    </item>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206306#M62477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm confused. Do you have 2 fields or 1? You reference Account Id twice, but logic like this is only even possible if you have 2 separate fields. Assuming you have 2 fields, GetPossibleValues in a macro should then accomplish what you need...&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 07:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206306#M62477</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-17T07:55:34Z</dc:date>
    </item>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206307#M62478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh I forgot about GetPossibleValues. I will give that a shot and come back.&lt;/P&gt;&lt;P&gt;Yes I have two Account Id fields. One in each table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 08:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206307#M62478</guid>
      <dc:creator />
      <dc:date>2010-09-17T08:45:57Z</dc:date>
    </item>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206308#M62479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried the GetPossibleValues method, but the nested FOR loop that you have to do to check the two fields against each other is not efficient enough, it takes hours with the amount of data I have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 11:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206308#M62479</guid>
      <dc:creator />
      <dc:date>2010-09-21T11:19:29Z</dc:date>
    </item>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206309#M62480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached solution.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 17:34:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206309#M62480</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-21T17:34:04Z</dc:date>
    </item>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206310#M62481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that solution. It works with our smaller data sets but unfortunately not for the medium-large sets. This is potentially a few hundred thousand Ids so Qlikview cannot handle the processing with that expression (on my test server it ate up 50GB of memory in 5mins then just stopped).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 08:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206310#M62481</guid>
      <dc:creator />
      <dc:date>2010-09-22T08:08:32Z</dc:date>
    </item>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206311#M62482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah that is an extremely heavy expression because of the disjoined fields and the nested aggrs. Since the 2 IDs are not linked in any way in my data model it creates a Cartesian join situation where every possible combination is created in a temporary table. If you have 200,000 of one ID and 300,000 of another, then it tries to create a temporary table of 60B rows. I'm not surprised that it's failing if you have that much data! If your data model is 2 completely disjoined IDs then there is not much else we can do. However, if the 2 IDs are somehow linked then maybe another solution is possible--please post a small sample of the app.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 14:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206311#M62482</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-22T14:19:14Z</dc:date>
    </item>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206312#M62483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was actually hoping for a solution with the two tables joined by a copy of the Account Id itself, but I didn't think it was possible to do this kind of thing when they are joined due to the selections cancelling out the differences anyway. If there is a solution where they are joined it is much better because my other table that I have created runs a lot faster when the tables are joined.&lt;/P&gt;&lt;P&gt;I will have to post a sample app later when I have a bit more spare time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 03:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206312#M62483</guid>
      <dc:creator />
      <dc:date>2010-09-24T03:09:08Z</dc:date>
    </item>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206313#M62484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached a sample app which covers part of what I am doing.&lt;/P&gt;&lt;P&gt;There are ~30,000 rows of test data there (mostly random generated).&lt;/P&gt;&lt;P&gt;The fields that are required for comparison are copied to another table. The fields that are just for filtering are just left in the first table.&lt;/P&gt;&lt;P&gt;The user tables compare movement of customers from one band to another between the two selected periods. One lists the total value of the second selected band and which band that value has moved from. This isn't really useful information in my opinion so I convinced the users to make the second table. The second table contains the difference after moving from one band to the next.&lt;/P&gt;&lt;P&gt;So these tables are for Accounts that are in both periods, but the users then want a list of Accounts that have been cleared (so are in the first selected period but not the second) and a list of new Accounts (in the second period but not the first).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 05:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206313#M62484</guid>
      <dc:creator />
      <dc:date>2010-09-27T05:48:50Z</dc:date>
    </item>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206314#M62485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached, hope it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 19:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206314#M62485</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-27T19:20:08Z</dc:date>
    </item>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206315#M62486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vlad, that is great. I am still trying to understand the expression, but do you know why the Customer Group filter makes the second list box (for the To Month) list all Account Ids when selected? I assume it has something to do with the filter being applied to the first table and causing the expression for the second table to break.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 03:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206315#M62486</guid>
      <dc:creator />
      <dc:date>2010-09-28T03:03:33Z</dc:date>
    </item>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206316#M62487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is happening because the 2nd expression uses the COPY_ACCOUNT_ID field which is located in a different table than CUST_GROUP. I've updated the application so selecting the group doesn't break it anymore. Pay particular attention to the expression in the Customer Group listbox, because that's important.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 06:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206316#M62487</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-28T06:33:26Z</dc:date>
    </item>
    <item>
      <title>Show excluded within selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206317#M62488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that works great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 10:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-excluded-within-selected/m-p/206317#M62488</guid>
      <dc:creator />
      <dc:date>2010-09-28T10:31:11Z</dc:date>
    </item>
  </channel>
</rss>

