<?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 - include some field values and exclude others in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-include-some-field-values-and-exclude-others/m-p/1400519#M424638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;&lt;P&gt;But I have a lot of calculations (just sent in a very simple example), so it would be complicated to duplicate everything.&lt;/P&gt;&lt;P&gt;I decided to go with a data island for the subtypes and then create a variable that concatenates them to use in set analysis. &lt;/P&gt;&lt;P&gt;Like: Sum({&amp;lt; Subtype = {$(vSubtypesList)} &amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;vSubtypesList = concat({&amp;lt;Type={'$1'}&amp;gt;}distinct chr(39)&amp;amp;%PickSubtypeField&amp;amp;chr(39))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your helpful answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Oct 2017 14:28:07 GMT</pubDate>
    <dc:creator>marinasbc</dc:creator>
    <dc:date>2017-10-05T14:28:07Z</dc:date>
    <item>
      <title>Set Analysis - include some field values and exclude others</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-include-some-field-values-and-exclude-others/m-p/1400517#M424636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to have a set analysis expression that excludes some field values like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="191" style="border: 1px solid #000000; width: 233px; height: 193px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Type&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Subtype&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have a table with Type A values (and a listbox only with subtypes A1 and A2) - let's call it &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;TableA&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have another table only showing Type B values - &lt;STRONG&gt;Table B&lt;/STRONG&gt;. For this table, I have a listbox with Sybtype (built with aggr) that only shows B subtypes (B1, B2, B3, B4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select subtypes A1 or A2, I don't want values on table B to change at all.&lt;/P&gt;&lt;P&gt;When I select subtypes B1, B2, B3 or B4 I want values on Table B to change accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Focusing on Table B:&lt;/P&gt;&lt;P&gt;I have tried expressions like Sum({&amp;lt; Type={B}, Subtype-={A1,A2} &amp;gt;} Amount) but that always selects &lt;STRONG&gt;all&lt;/STRONG&gt; values from Subtype B. I have tried using P() and &lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt; Type={B}, Subtype*={"*"}-{A1,A2} &amp;gt;} Amount) but no success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I need to ignore Type A selections but &lt;STRONG&gt;add to selection&lt;/STRONG&gt; any Type B values.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Anyone know how can I do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 10:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-include-some-field-values-and-exclude-others/m-p/1400517#M424636</guid>
      <dc:creator>marinasbc</dc:creator>
      <dc:date>2017-10-05T10:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - include some field values and exclude others</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-include-some-field-values-and-exclude-others/m-p/1400518#M424637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(WildMatch(Concat(TOTAL DISTINCT '|' &amp;amp; Subtype &amp;amp; '|'), '|B*'), Avg(1), Avg({&amp;lt;Subtype += {"B*"}&amp;gt;} 1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When A1 is selected&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/178699_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When B2 is selected&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/178703_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 11:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-include-some-field-values-and-exclude-others/m-p/1400518#M424637</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-05T11:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - include some field values and exclude others</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-include-some-field-values-and-exclude-others/m-p/1400519#M424638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;&lt;P&gt;But I have a lot of calculations (just sent in a very simple example), so it would be complicated to duplicate everything.&lt;/P&gt;&lt;P&gt;I decided to go with a data island for the subtypes and then create a variable that concatenates them to use in set analysis. &lt;/P&gt;&lt;P&gt;Like: Sum({&amp;lt; Subtype = {$(vSubtypesList)} &amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;vSubtypesList = concat({&amp;lt;Type={'$1'}&amp;gt;}distinct chr(39)&amp;amp;%PickSubtypeField&amp;amp;chr(39))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your helpful answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 14:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-include-some-field-values-and-exclude-others/m-p/1400519#M424638</guid>
      <dc:creator>marinasbc</dc:creator>
      <dc:date>2017-10-05T14:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - include some field values and exclude others</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-include-some-field-values-and-exclude-others/m-p/1400520#M424639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand the new approach, but have you tried this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Subtype = p(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;%PickSubtypeField)&lt;/SPAN&gt;&amp;gt;} Amount)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 14:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-include-some-field-values-and-exclude-others/m-p/1400520#M424639</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-05T14:31:55Z</dc:date>
    </item>
  </channel>
</rss>

