<?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: Non Natural Set in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Non-Natural-Set-in-Set-Analysis/m-p/1172232#M380911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying. I analysed a further more and here is what i found. Please correct me if I am wrong:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since we have 3 dimension values:&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;&amp;lt;Null&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For A, it takes the dimension value and subtracts from the dimension value which is A (which matches the modifier '*') and returns 0. Similar with B&lt;/P&gt;&lt;P&gt;Whereas for Null, &lt;SPAN style="font-size: 13.3333px;"&gt;it takes the dimension value which is 3 and tries to subtracts the&amp;nbsp; dimension value (but the modifier does not match because '*' omits null). So&amp;nbsp; 0 is the result. Finally 3-0=0. I think it works in this way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, this is my guess only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Jul 2016 02:59:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-16T02:59:17Z</dc:date>
    <item>
      <title>Non Natural Set in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Non-Natural-Set-in-Set-Analysis/m-p/1172230#M380909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From HIC's blog on Natural Sets:&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;To sum numbers that are &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; text-decoration: underline;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;not&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; assigned to a customer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 128px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Customer&lt;/TD&gt;&lt;TD width="64"&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;he used this expression &lt;STRONG&gt;Sum({1-1&amp;lt;Customer={'*'}&amp;gt;}Amount)&lt;/STRONG&gt; to get the following result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Customer&amp;nbsp;&amp;nbsp; Sum(Sales) &lt;STRONG style="font-size: 13.3333px;"&gt;Sum({1-1&amp;lt;Customer={'*'}&amp;gt;}Amount)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" height="79" style="font-size: 9pt; width: 226px; height: 81px;" width="224"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand Customer={'*'} excludes the Null Customer. but interested to know how the expression calculates the value '3' only for Null Customer and '0' for valid Customers. Wouldn't (1-1) apply to Null Customer? Why it is not applied? Can some one please explain the logic here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do not copy paste from HIC blog.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2016 01:04:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Non-Natural-Set-in-Set-Analysis/m-p/1172230#M380909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-16T01:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Non Natural Set in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Non-Natural-Set-in-Set-Analysis/m-p/1172231#M380910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I understand, the second 1 is just to ignore any selections.&lt;STRONG&gt;{1-$&amp;lt;Customer = {'*'}&amp;gt;} &lt;/STRONG&gt;should work the same way without any selection, but will filter out based on another field selection (such as selection in Year or another field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 is the set which include null, but &lt;STRONG style="font-size: 13.3333px;"&gt;&amp;lt;Customer = {'*'}&amp;gt; &lt;/STRONG&gt;only include non-nulls Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2016 02:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Non-Natural-Set-in-Set-Analysis/m-p/1172231#M380910</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-16T02:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Non Natural Set in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Non-Natural-Set-in-Set-Analysis/m-p/1172232#M380911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying. I analysed a further more and here is what i found. Please correct me if I am wrong:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since we have 3 dimension values:&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;&amp;lt;Null&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For A, it takes the dimension value and subtracts from the dimension value which is A (which matches the modifier '*') and returns 0. Similar with B&lt;/P&gt;&lt;P&gt;Whereas for Null, &lt;SPAN style="font-size: 13.3333px;"&gt;it takes the dimension value which is 3 and tries to subtracts the&amp;nbsp; dimension value (but the modifier does not match because '*' omits null). So&amp;nbsp; 0 is the result. Finally 3-0=0. I think it works in this way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, this is my guess only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2016 02:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Non-Natural-Set-in-Set-Analysis/m-p/1172232#M380911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-16T02:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Non Natural Set in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Non-Natural-Set-in-Set-Analysis/m-p/1172233#M380912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karthick -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AFAIK... Set analysis is not carrying out the true calculation. It is used to determine if a certain row should be included in the expression or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets look at the two set and determine if it should be included in the set or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set1&lt;/STRONG&gt; - 1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set2&lt;/STRONG&gt; - 1{&amp;lt;Customer = {'*'}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Row where Customer is A&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set1&lt;/STRONG&gt; includes it&lt;/P&gt;&lt;P style="padding-left: 0px;"&gt;&lt;STRONG&gt;Set2&lt;/STRONG&gt; includes it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set1&lt;/STRONG&gt;- &lt;STRONG&gt;Set2&lt;/STRONG&gt; would not include (remember the venn diagram)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Row where Customer is B&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set1&lt;/STRONG&gt; includes it&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set2&lt;/STRONG&gt; includes it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Set1&lt;/STRONG&gt;- &lt;STRONG&gt;Set2&lt;/STRONG&gt; would not include&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;Row where Customer is Null&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Set1&lt;/STRONG&gt; includes it&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Set2&lt;/STRONG&gt; doesn't include it because it only include those customers which have a value&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;&lt;STRONG&gt;Set1&lt;/STRONG&gt; - &lt;STRONG&gt;Set2&lt;/STRONG&gt; will thus include it&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2016 03:12:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Non-Natural-Set-in-Set-Analysis/m-p/1172233#M380912</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-16T03:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Non Natural Set in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Non-Natural-Set-in-Set-Analysis/m-p/1172234#M380913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Sunny I am not understanding your statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Row where Customer is B&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Set1&lt;/STRONG&gt; includes it&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Set2&lt;/STRONG&gt; includes it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Set1&lt;/STRONG&gt;- &lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Set2&lt;/STRONG&gt; would not include&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Row where Customer is Null&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Set1&lt;/STRONG&gt; includes it&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Set2&lt;/STRONG&gt; doesn't include it because it only include those customers which have a value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Set1&lt;/STRONG&gt; - &lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Set2&lt;/STRONG&gt; will thus include it&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;If possible, could you please explain a bit more&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="jive-thread-reply-btn" style="margin: 15px 0 -10px; font-size: 0.9em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;DIV class="jive-thread-reply-btn-correct" style="font-weight: inherit; font-style: inherit; font-size: 11.7px; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/1084717" style="margin: 0 20px 0 0; padding: 2px 14px 4px 28px; font-weight: bold; font-style: inherit; font-size: 11.7px; font-family: inherit; color: #3778c7; background-color: #f3f3f3;"&gt;Non Natural Set in Set Analysis&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2016 04:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Non-Natural-Set-in-Set-Analysis/m-p/1172234#M380913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-16T04:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Non Natural Set in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Non-Natural-Set-in-Set-Analysis/m-p/1172235#M380914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nevermind Sunny. I understand the concept now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2016 04:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Non-Natural-Set-in-Set-Analysis/m-p/1172235#M380914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-16T04:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Non Natural Set in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Non-Natural-Set-in-Set-Analysis/m-p/1172236#M380915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karthick - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad you finally understand it. I am not sure if something I offered helped you understand, or if you read something somewhere else that helped you understand. If it is the latter case, then please provide information or a link for that location so that others can benefit from it as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please consider closing this thread by marking correct and helpful responses.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2016 11:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Non-Natural-Set-in-Set-Analysis/m-p/1172236#M380915</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-16T11:29:21Z</dc:date>
    </item>
  </channel>
</rss>

