<?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: Set Analysis: How to exclude sets from excluded sets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289199#M1185541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your formula works where I select TARGET = y, and then select on an ITEMCODE, or a number of ITEMCODES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it ONLY seems to work with the combination of TARGET = y, and an ITEMCODE selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever I use other filters, with or instead of ITEMCODE filter, it does not work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have taken the liberty of attaching my table structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select Target = "y", my Pivot will show sales of all target ITEMCODE per month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I then select, say, ACCCODE or SUPPNAME, or a combination of both, this will filter my Pivot report accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want my straight table to show what ITEMCODES with Target ="y" for that SUPPNAME have NOT been sold to that ACCCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to be able to show the excluded ITEMCODES in my straight table, but to filter the excluded items by the same filters as apply to my Pivot Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Sep 2011 11:27:34 GMT</pubDate>
    <dc:creator>mazacini</dc:creator>
    <dc:date>2011-09-26T11:27:34Z</dc:date>
    <item>
      <title>Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289196#M1185538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My app contains an ITEM table containing ITEMCODE, TARGET (2 values 'y' and 'n') and CATEGORY, and a TRANS table containing DATE, MONTH, REF, ITEMCODE and QTY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a PIVOT table showing SUM(QTY) per MONTH for each ITEMCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then apply filters, selecting fields from TARGET and CATEGORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a STRAIGHT table showing the ITEMCODES not selected, but only for the selected CATEGORY (if selected), and only for a TARGET value 'y'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Sep 2011 15:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289196#M1185538</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2011-09-25T15:04:28Z</dc:date>
    </item>
    <item>
      <title>Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289197#M1185539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope I got you correctly, I think you could try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;ITEMCODE = e(ITEMCODE), TARGET={y}&amp;gt;} QTY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as expression (summing the QTY is just to get a result, you could also sum just 1. Check that suppress zero values option in presentation tab is enabled).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should return you the ITEMCODES which are currently excluded by your selection and where TARGET = 'y'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Sep 2011 17:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289197#M1185539</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-25T17:12:57Z</dc:date>
    </item>
    <item>
      <title>Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289198#M1185540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see where you are going,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not working for me at the moment. But I see I may havve some anomalies in my load - I will eliminate these and retry your solution later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Sep 2011 20:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289198#M1185540</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2011-09-25T20:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289199#M1185541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your formula works where I select TARGET = y, and then select on an ITEMCODE, or a number of ITEMCODES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it ONLY seems to work with the combination of TARGET = y, and an ITEMCODE selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever I use other filters, with or instead of ITEMCODE filter, it does not work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have taken the liberty of attaching my table structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select Target = "y", my Pivot will show sales of all target ITEMCODE per month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I then select, say, ACCCODE or SUPPNAME, or a combination of both, this will filter my Pivot report accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want my straight table to show what ITEMCODES with Target ="y" for that SUPPNAME have NOT been sold to that ACCCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to be able to show the excluded ITEMCODES in my straight table, but to filter the excluded items by the same filters as apply to my Pivot Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 11:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289199#M1185541</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2011-09-26T11:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289200#M1185542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are filtering your ITEMCODES by selecting on SUPPNAME? I believe you have added some kind of select in field logic to your app, since ITEMCODE is not linked to SUPPNAME, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have some vague ideas of how you might do the filtering, but it would be much easier for me or someone else if you could provide a small sample app representing your real data model. Would this be feasible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 20:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289200#M1185542</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-26T20:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289201#M1185543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it is feasible. Thank you for persisting with this. It will take me a little while to generate a sample version of my model. It is after midnight here, so I will not have it until morning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 23:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289201#M1185543</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2011-09-26T23:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289202#M1185544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of waiting till morning,&amp;nbsp; I have pulled together the sample app as attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to identify the Target ITEMCODES sold (Items Sold Chart) as well as those not sold (Items Not Sold)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the Target will always be selected as 'y' for the purposes of this analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select Owner, it will show Target ITEMCODES sold for that Owner (Owner owns customer ACCCODEs). Items Not Sold should show Target Items Not Sold to that customer ACCCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add a SUPPCODE filter, Items Sold will show Target ITEMCODES from that SUPPCODE sold to customer ACCCODE. Items Not Sold should then show Target ITEMCODES FOR THAT SUPPCODE not sold to that customer ACCCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you understand, as I am starting to confuse myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 23:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289202#M1185544</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2011-09-26T23:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289203#M1185545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;File attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 00:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289203#M1185545</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2011-09-27T00:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289204#M1185546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that you used TARGET as field name in your set expression for not sold ITEMCODES, where I think it should be Target instead (field names are case sensitive).&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I understood your business requirement correctly, but I think with this change, things look much different and are IMHO may correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a table with three expression&lt;/P&gt;&lt;P&gt;1) gimme all distinct ITEMCODES: 3100&lt;/P&gt;&lt;P&gt;2) gimme all distinct ITEMCODES within the current selection (IMHO, that's the ITEMCODES for your sales table)&lt;/P&gt;&lt;P&gt;With all three owners, you have 596 ITEMCODES sold, and 326 to owner COLM only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) gimme all distinct ITEMCODES exluded in my current selection, but with target y (with expression as given above).&lt;/P&gt;&lt;P&gt;I get zero ITEMCODES for all owners, and 270 for owner COLM only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; Regardless of what selection I perform on the left side, the sum of 2) and 3) is always 596. To me, that looks correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I missed a point, if so, please indicate by giving an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 17:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289204#M1185546</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-28T17:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289205#M1185547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunatley, I only have PE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can you post expressions on this discussion, and maybe send image of table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 17:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289205#M1185547</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2011-09-28T17:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289206#M1185548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a straight table chart, no dimensions, then 4 expressions:&lt;/P&gt;&lt;P&gt;=count({1} distinct ITEMCODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct ITEMCODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({1&amp;lt;Target= {y}, ITEMCODE=e(ITEMCODE)&amp;gt;} DISTINCT ITEMCODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=column(2)+column(3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note the Target instead of TARGET in your original app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how it looks like:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ITEMCODES1.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7622_ITEMCODES1.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will notice that on the upper right chart, I get 271 rows instead of 270, that's because one ITEMCODE has two DESC: 05605&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 18:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289206#M1185548</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-28T18:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289207#M1185549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's just brilliant!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I right in thinking that the new table is just to verify the Sold / Not Sold tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also (Last thing!!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select on a SUPPCODE, is there a way that the Items Not Sold will show the Target = y items not sold, BUT ONLY FOR THAT SUPPCODE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your excellent support so far. I'll understand if you have exhaused your patience on this discussion!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 20:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289207#M1185549</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2011-09-28T20:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289208#M1185550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;Target= {y},ITEMCODE= e(ITEMCODE),SUPPCODE=p(SUPPCODE) &amp;gt;} 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as expression in your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is correct, because I wasn't able to set up a verification table like before (it's getting late).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think it should be something like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 21:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289208#M1185550</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-28T21:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289209#M1185551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if you are familiar with the term Hitchhiker Syndrome. It describes a situation were you pick up a hitchhiker who , instead of being grateful, increasingly requests you divert further away from your route, and closer to their destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I think I may be that hitchhiker!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, the last expression works, BUT ONLY WHEN SUPPCODE IS SELECTED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some way I can amend the expression to read SUPPCODE=p(SUPPCODE), if SUPPCODE is selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it might work then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 07:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289209#M1185551</guid>
      <dc:creator>mazacini</dc:creator>
      <dc:date>2011-09-29T07:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289210#M1185552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hitchhiker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may need to think for awhile how to include that in a set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Almost for sure this should work&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount( SUPPCODE ) &amp;gt;0 , &lt;EM&gt;ExpressionWithSUPPCODE=p(SUPPCODE), ExpressionWithout) &lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: You might also try&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;Target= {y},ITEMCODE= e(ITEMCODE),SUPPCODE= SUPPCODE &amp;gt;} 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(not using the if(...), not using p()) this should assign only actively selected SUPPCODEs to SUPPCODE within our set expression).&lt;/P&gt;&lt;P&gt;Haven't tried this myself, but maybe this is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 08:22:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289210#M1185552</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-29T08:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: How to exclude sets from excluded sets</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289211#M1185553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, after some more driving around aorund, I think you should change the expression in your NOT&amp;nbsp; SOLD, but SUPPCODE table at the upper right corner to&lt;/P&gt;&lt;P&gt;=count({1&amp;lt;Target= {y},ITEMCODE= e(ITEMCODE),SUPPCODE=p(SUPPCODE) &amp;gt;} DISTINCT ITEMCODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(it's importan to count the ITEMCODE here, not just sum (1) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This looks better to me. I noticed that there are some ITEMCODE without a SUPPCODE, like 1B173 and 1B277, so &lt;/P&gt;&lt;P&gt;count({1&amp;lt;Target= {y},ITEMCODE= e(ITEMCODE) &amp;gt;} DISTINCT ITEMCODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will give you some more ITEMCODES than first expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 23:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-How-to-exclude-sets-from-excluded-sets/m-p/289211#M1185553</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-29T23:13:54Z</dc:date>
    </item>
  </channel>
</rss>

