<?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: select data, exclude data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-select-data-exclude-data/m-p/354934#M131728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=concat(distinct &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;{&amp;lt;CustomerID=p({&amp;lt;[Product Type]={Supplies}&amp;gt;})*e({&amp;lt;[Product Type]={Machine}&amp;gt;})&amp;gt;}&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; CustomerID,', ')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;Even the e()-part in the set modifier could be enough for your setting with two product types.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2012 12:46:40 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-06-15T12:46:40Z</dc:date>
    <item>
      <title>Set Analysis: select data, exclude data</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-select-data-exclude-data/m-p/354932#M131726</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 have these data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 346px; border-width: 1px; border-style: solid; height: 202px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="background-color: #6690bc; color: #ffffff; text-align: center; padding: 3px;"&gt;N°Order&lt;/TH&gt;&lt;TH style="background-color: #6690bc; color: #ffffff; text-align: center; padding: 3px;"&gt;Product&lt;/TH&gt;&lt;TH style="background-color: #6690bc; color: #ffffff; text-align: center; padding: 3px;"&gt;ProductPrice&lt;/TH&gt;&lt;TH style="background-color: #6690bc; color: #ffffff; text-align: center; padding: 3px;"&gt;Product Type&lt;BR /&gt;&lt;/TH&gt;&lt;TH style="background-color: #6690bc; color: #ffffff; text-align: center; padding: 3px;"&gt;CustomerID&lt;BR /&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;11111&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;Pen&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1,00&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;Supplies&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;11111&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;Rubber&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;4,00&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;Supplies&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;22222&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;Paper&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;3,00&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;Supplies&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;33333&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;Paper&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;3,00&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;Machine&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;44444&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;Bag&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;15,00&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;Machine&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;55555&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;Pencil&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2,00&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;Supplies&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;55555&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;Pen&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1,00&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;Supplies&lt;/TD&gt;&lt;TD style="color: #333333; text-align: left; padding: 3px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would select only the customers whom have bought only "Product Type: Supplies" and never Machines.&lt;/P&gt;&lt;P&gt;In this case customer 2 and 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is possible with Set Analysis, but I don't know how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 12:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-select-data-exclude-data/m-p/354932#M131726</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2012-06-15T12:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: select data, exclude data</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-select-data-exclude-data/m-p/354933#M131727</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;That should be something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13397640205352275" jivemacro_uid="_13397640205352275"&gt;&lt;P&gt;Count({&amp;lt; [Product Type] = {'Supplies'} &amp;gt; - &amp;lt; [Product Type] = {'Machine'} &amp;gt;} CustomerID)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 12:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-select-data-exclude-data/m-p/354933#M131727</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-06-15T12:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: select data, exclude data</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-select-data-exclude-data/m-p/354934#M131728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=concat(distinct &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;{&amp;lt;CustomerID=p({&amp;lt;[Product Type]={Supplies}&amp;gt;})*e({&amp;lt;[Product Type]={Machine}&amp;gt;})&amp;gt;}&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; CustomerID,', ')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;Even the e()-part in the set modifier could be enough for your setting with two product types.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 12:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-select-data-exclude-data/m-p/354934#M131728</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-15T12:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: select data, exclude data</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-select-data-exclude-data/m-p/354935#M131729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, both of you are right, the small difference is that swuehl's espression includes also the data without relation on the other load charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even more I have also a Year field, how I can exclude this selection? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 13:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-select-data-exclude-data/m-p/354935#M131729</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2012-06-15T13:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: select data, exclude data</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-select-data-exclude-data/m-p/354936#M131730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can disregard a selection in a Year field by listing it in the set modifier field list, but without using a element set expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{$&amp;lt;Year= &amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or in my example above maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;{&amp;lt;CustomerID=p({&amp;lt;[Product Type]={Supplies}, Year= &amp;gt;})*e({&amp;lt;[Product Type]={Machine}, Year= &amp;gt;})&amp;gt;}&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or even&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;{&amp;lt;CustomerID=p({&amp;lt;[Product Type]={Supplies}, Year= &amp;gt;})*e({&amp;lt;[Product Type]={Machine}, Year= &amp;gt;}), Year= &amp;gt;}&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first example only disregards selections in year for the field selection of CustomerID but it should still consider selections in year for the whole (i.e. if you aggregate sales, it should look at the customers that have ever bought Supplies and nver bought Machines, but then calculate the sales only for the selected years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last line should disregard selections in Year completely.&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>Fri, 15 Jun 2012 13:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-select-data-exclude-data/m-p/354936#M131730</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-15T13:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: select data, exclude data</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-select-data-exclude-data/m-p/354937#M131731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Stefan!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 14:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-select-data-exclude-data/m-p/354937#M131731</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2012-06-15T14:35:51Z</dc:date>
    </item>
  </channel>
</rss>

