<?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 Set Analysis problem with -= operator in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-problem-with-operator/m-p/322677#M118852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IsChild = {'*'} - {'Y'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return you all the values excluding where IsChild is 'Y'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Sep 2011 06:55:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-05T06:55:36Z</dc:date>
    <item>
      <title>Set Analysis problem with -= operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-problem-with-operator/m-p/322675#M118850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to count the number of open tickets that &lt;STRONG&gt;don't&lt;/STRONG&gt; have a parent ticket.&lt;/P&gt;&lt;P&gt;A ticket has a ticket number and a field is used to indicate if that ticket number has a parent ticket. If so, then I would like to ignore it in my count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/P&gt;&lt;P&gt;Note that the Intellisense is complaining of the -= &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns 0 records, when it should return 2885, so I have also tried &lt;STRONG&gt;IsChild={"&amp;lt;&amp;gt;Y"} &lt;/STRONG&gt;which also gives me 0 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use &lt;STRONG&gt;﻿IsChild={Y}&lt;/STRONG&gt; then I get the correct count of 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No matter what I do, I just can't seem to get this to work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 06:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-problem-with-operator/m-p/322675#M118850</guid>
      <dc:creator>johnpaul</dc:creator>
      <dc:date>2011-09-05T06:21:08Z</dc:date>
    </item>
    <item>
      <title>Set Analysis problem with -= operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-problem-with-operator/m-p/322676#M118851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;STRONG&gt;IsChild-={"Y"} &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;or &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;u can try this also&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;IsChild-={'Y')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;or else &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;share the sample&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hope this help u&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 06:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-problem-with-operator/m-p/322676#M118851</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-09-05T06:50:34Z</dc:date>
    </item>
    <item>
      <title>Set Analysis problem with -= operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-problem-with-operator/m-p/322677#M118852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IsChild = {'*'} - {'Y'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return you all the values excluding where IsChild is 'Y'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 06:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-problem-with-operator/m-p/322677#M118852</guid>
      <dc:creator />
      <dc:date>2011-09-05T06:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis problem with -= operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-problem-with-operator/m-p/322678#M118853</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;The IsChild-={'Y'} is correct (in spite of the intellisense complaint). It will return values that have a value other than 'Y' in IsChild, but it will NOT include records with IsChild = null. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot see your original expression, as the image is blocked where I am at the moment, but using count as an example, this is what you need to do to include null values in IsChild:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(SomeField) - Count({&amp;lt;IsChild={'Y'}&amp;gt;} SomeField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 09:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-problem-with-operator/m-p/322678#M118853</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-09-05T09:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis problem with -= operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-problem-with-operator/m-p/322679#M118854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two suggestions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Try using forced exclusion using tilda ("~")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. {$ &amp;lt;~IsChild={"Y"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Try using element function E()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. {$ &amp;lt;TicketID = E( {1 &amp;lt;IsChild={"Y"}&amp;gt;}) &amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 12:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-problem-with-operator/m-p/322679#M118854</guid>
      <dc:creator />
      <dc:date>2011-09-05T12:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis problem with -= operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-problem-with-operator/m-p/322680#M118855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the help.&lt;/P&gt;&lt;P&gt;I had/have tried all options and it seems that Jonathan's comment is where my issue is. &lt;/P&gt;&lt;P&gt;I had already tried doing a count all records then subtracting the ones which I didn't want, but I thought that was the long way around. &lt;/P&gt;&lt;P&gt;It makes sense if the NULL values are not counted as not 'Y' - seems obvious now! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh, and the original code was:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count({&amp;lt;IsChild-={Y}&amp;gt;} DISTINCT Ticket_Number) &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 13:38:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-problem-with-operator/m-p/322680#M118855</guid>
      <dc:creator>johnpaul</dc:creator>
      <dc:date>2011-09-05T13:38:27Z</dc:date>
    </item>
  </channel>
</rss>

