<?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: Excluding 2 values in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59365#M9846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;locale = -{bot}&amp;gt;+&amp;lt;signup_source = -{bot}&amp;gt;} DISTINCT email)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2018 16:06:54 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-05-18T16:06:54Z</dc:date>
    <item>
      <title>Excluding 2 values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59360#M9841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have looked in multiple questions and none of the answers for excluding has worked for me.&lt;/P&gt;&lt;P&gt;Below is the expression I am testing.&lt;/P&gt;&lt;P&gt;I want to count all the unique emails and not include the two fields with values as bot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;locale=- {bot}, signup_source =-{bot} &amp;gt;} DISTINCT email)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this makes sense.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 15:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59360#M9841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-18T15:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding 2 values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59361#M9842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try&amp;nbsp;&amp;nbsp; -=&amp;nbsp;&amp;nbsp;&amp;nbsp; instead of =-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 15:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59361#M9842</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-05-18T15:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding 2 values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59362#M9843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and instead of bot, use {'bot'}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 15:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59362#M9843</guid>
      <dc:creator>olivierrobin</dc:creator>
      <dc:date>2018-05-18T15:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding 2 values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59363#M9844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you want to exclude only if&amp;nbsp; locale = bot AND signup_source = bot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 15:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59363#M9844</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-18T15:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding 2 values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59364#M9845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some emails don't have either value and some have either one or both values.&lt;/P&gt;&lt;P&gt;I just want to not show it in the total at all.&amp;nbsp; I was going to exclude it in the load but I run a separate report on how many bots we have too.&lt;/P&gt;&lt;P&gt;I changed my set expression to the one Olivier recommended but it doesn't give me the correct answer.&amp;nbsp; It is way to low of a number&lt;/P&gt;&lt;P&gt;count({&amp;lt;locale-= {'bot'}, signup_source -={'bot'} &amp;gt;} DISTINCT email)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 16:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59364#M9845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-18T16:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding 2 values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59365#M9846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;locale = -{bot}&amp;gt;+&amp;lt;signup_source = -{bot}&amp;gt;} DISTINCT email)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 16:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59365#M9846</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-18T16:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding 2 values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59366#M9847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still couldn't get it correct.&lt;/P&gt;&lt;P&gt;Here is a test qvw&lt;/P&gt;&lt;P&gt;My data is from Redshift but I used excel to simulate this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 16:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59366#M9847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-18T16:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding 2 values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59367#M9848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({&amp;lt;email = {"=locale &amp;lt;&amp;gt; 'bot' or signup_source &amp;lt;&amp;gt; 'bot'"}&amp;gt;} DISTINCT email)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 16:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59367#M9848</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-18T16:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding 2 values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59368#M9849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this info.&amp;nbsp; It works great in the example qvw but not in mine.&lt;/P&gt;&lt;P&gt;I will keep this question open for now and see what is so different in the orginal qvw.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 18:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59368#M9849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-18T18:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding 2 values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59369#M9850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure... in the mean time you can test out another method of creating a flag in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD email, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locale, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; signup_source,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(locale &amp;lt;&amp;gt; 'bot' or signup_source &amp;lt;&amp;gt; 'bot', 1, 0) as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;bottest.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can either do this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Flag)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;Flag = {1}&amp;gt;} email)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 18:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59369#M9850</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-18T18:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding 2 values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59370#M9851</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;Everything works great now.&lt;/P&gt;&lt;P&gt;I forgot to change the field name to matchup to my field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I made one slight change to your expression.&amp;nbsp; I changed the or to an and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;email = {"=locale &amp;lt;&amp;gt; 'bot' &lt;STRONG&gt;and&lt;/STRONG&gt; signup_source &amp;lt;&amp;gt; 'bot'"}&amp;gt;} DISTINCT email)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That gives me a more accurate answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As always I appreciate your assistance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 17:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-2-values-in-set-analysis/m-p/59370#M9851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-22T17:46:48Z</dc:date>
    </item>
  </channel>
</rss>

