<?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: Exclude Results from Other Field in Select Excluded in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665441#M474066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok - I think I get it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try to explain what I meant by including asset class. Not a deal breaker as majority of use will be via product search but would be great functionality. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the positive side of the search, if I just select 'Equities' as an asset class, I can see for each region how much equity they hold and what proportion of the total book this is, for bankers, how many of their clients hold equities. In a similar approach to using a product, I might just want to see all bankers who have not sold Equities to any of their clients. I could modify the function above and switch Product for Asset Class and this should work the same way, but then I would have to define a separate piece of code for each field I wanted to be able to show in this way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is making something this generic a realistic possibility? If this is opening up a can of worms I will leave for 'phase 2', im just curious to see how far it is possible to push this approach. Even just including Product plus asset class would show me how I can build up to include other possible fields in the future. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2014 18:09:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-10-07T18:09:24Z</dc:date>
    <item>
      <title>Exclude Results from Other Field in Select Excluded</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665433#M474058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/136200"&gt;Set Analysis: Show Excluded and Refine Results&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a follow on from the above post. I have been trying to present a list of bankers who have not sold a certain product, which is defined by the user searching for the name of the product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution I have reached with the help of the community is to create a pivot table with an if formula that says 'if market value of current selection &amp;gt;0 then 0 else 1. I have then used 'Show all values' as the dimension and suppressed zero values in the expression from the presentation tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I have now is that when I apply an additional filter (in this case 'Region') my results still include bankers from all regions. In a similar previous question I used a syntax like this: {1&amp;lt;Region=$::Region&amp;gt;} which solved for that particular case but I cannot work out how to incorporate into my solution here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax I am using for the if statement is: IF( SUM ( {$} MKT_VAL ) &amp;gt; 0 , 0 ,1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a feeling this might need an IF AND type statement when AND is current selection of region (or multiple regions)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers in right direction very much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 14:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665433#M474058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-06T14:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Results from Other Field in Select Excluded</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665434#M474059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using 'alternate states' ?&amp;nbsp; Which state is the 'Region' list box using and which one is the chart using ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 15:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665434#M474059</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-06T15:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Results from Other Field in Select Excluded</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665435#M474060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan, thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not setup any alternate states - just default so inherited. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apologies but I do not totally get the use of alternate states!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 17:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665435#M474060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-06T17:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Results from Other Field in Select Excluded</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665436#M474061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using Data islands ?&amp;nbsp; Is the Region field in a table that it linked to the table where&amp;nbsp; MKT_VAL resides ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The QVW&amp;nbsp; would help.&amp;nbsp; 2nd to that, posting your table viewer diagram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 19:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665436#M474061</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-06T19:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Results from Other Field in Select Excluded</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665437#M474062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached a simplified example of what I am doing to the original post above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To explain the file and what is happening: When you open the file, I have 'searched' for holders of 'Product 2' across all bankers and all regions. The result show that 20% of clients in EMEA have the product and 25% in NAM (Regional Impact). At the banker level, 100% of NAM and 50% of EMEA bankers have sold the product to their client (Banker Impact). Banker A from EMEA has sold the most, then Banker C from NAM (Top Bankers by MV). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table I am struggling with is the last one - product not sold. With no filter on region, only a filter on product it is clear that only Banker B and Banker D have not sold product 2. However, when I select region = NAM, not sold becomes Banker A, B and D. We already know Banker A has sold the product in EMEA. Because I am refining the results to NAM, this banker now appears not to have sold the product. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the logic in the If statement needs some sort of element that says if the banker region is not equal to current region selection, then '0' so that all bankers will be excluded regardless of whether they have sold the product or not but I cannot work out the correct script for this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 09:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665437#M474062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-07T09:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Exclude Results from Other Field in Select Excluded</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665438#M474063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben - I switched to SET ANALYSIS for this need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is as follows.&amp;nbsp; It basically reads as ....&lt;/P&gt;&lt;P&gt;a) Exclude all the bankers who have sold the selected product(s) regardless of where they are&lt;/P&gt;&lt;P&gt;b)&amp;nbsp; Out of what is left , show me only the bankers who have sold in the selected region (and other selections)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&amp;nbsp; {$&amp;lt;Product=, Banker=e( {1&amp;lt;Product={'$(=concat( distinct Product, chr(39)&amp;amp;','&amp;amp;chr(39)) )'} &amp;gt;}) &amp;gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp; [Market Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="68415" alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/68415_Capture.PNG.png" style="width: 620px; height: 376px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 14:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665438#M474063</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-07T14:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Results from Other Field in Select Excluded</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665439#M474064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan - I bow down to you! It works! I am not entirely clear why - what is the impact of the Prod =..Concat.. Prod section? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also - I have setup the other parts of my analysis to allow user to also select for example an asset class and the results will show for that asset class rather than specifically for a product. Presumably this would further complicate things based on the script above! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, &lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 17:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665439#M474064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-07T17:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Results from Other Field in Select Excluded</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665440#M474065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben - the concat() section looks a little wordy.&amp;nbsp; concat() will take every value of&amp;nbsp; field (in this case product) in the current seletions and delimit them with a delimitter .&amp;nbsp;&amp;nbsp; In my case i want the delimitter to be ',' .&amp;nbsp; So if you selected product1 and product2, the result would be a syntactically acceptable list of products for SET ANALYIS as follows.&amp;nbsp; chr(39) is a single quote character so to avoid syntax issues with ',' i wrote the delimitter as chr(39)&amp;amp;','&amp;amp;chr(39).&amp;nbsp; The result is something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product1','Product2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the rest of that area has {'&amp;nbsp; '} so it becomes the following which is completely valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{'Product1','Product2'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get there i tried hard coding the products first &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want the Asset Class to work like Region ?&amp;nbsp; Is it for the same chart ?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 17:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665440#M474065</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-07T17:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Results from Other Field in Select Excluded</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665441#M474066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok - I think I get it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try to explain what I meant by including asset class. Not a deal breaker as majority of use will be via product search but would be great functionality. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the positive side of the search, if I just select 'Equities' as an asset class, I can see for each region how much equity they hold and what proportion of the total book this is, for bankers, how many of their clients hold equities. In a similar approach to using a product, I might just want to see all bankers who have not sold Equities to any of their clients. I could modify the function above and switch Product for Asset Class and this should work the same way, but then I would have to define a separate piece of code for each field I wanted to be able to show in this way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is making something this generic a realistic possibility? If this is opening up a can of worms I will leave for 'phase 2', im just curious to see how far it is possible to push this approach. Even just including Product plus asset class would show me how I can build up to include other possible fields in the future. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 18:09:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665441#M474066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-07T18:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Results from Other Field in Select Excluded</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665442#M474067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would it be for the same chart ?&amp;nbsp; So that :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;a) E xclude all the bankers who have sold the selected product(s) &lt;STRONG style="text-decoration: underline;"&gt;and/or asset classes&lt;/STRONG&gt; regardless of where they are&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;b)&amp;nbsp; Out of what is left , show me only the bankers who have sold in the selected region (and other selections)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Or a different chart that only looks at asset classes (instead of products) ? &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;i don't mind making another example based on your answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 18:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665442#M474067</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-07T18:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Results from Other Field in Select Excluded</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665443#M474068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Out of the below, more a than anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking of cases like this: look at equity exposure first, so which bankers do and do not have any market value in equities. Next refine results by product, selecting only company A. May then want to focus on particular region (where banker is physically located).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment if I go iin with asset class first, the result is that there are no bankers who have not sold the asset class (presumably due to lack of selection of prodiuct). Perhaps this calls for some sort of OR statement that allows for combination of product and asset class?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 19:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Results-from-Other-Field-in-Select-Excluded/m-p/665443#M474068</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-07T19:22:01Z</dc:date>
    </item>
  </channel>
</rss>

