<?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 - Exclude reason code in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277941#M867886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Exclusion symbol here is '-' . Try:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;=Count(DISTINCT{$&amp;lt;[CloseReason] &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/SPAN&gt;={CNX}&amp;gt;} %OrderNo)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2016 10:03:50 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2016-12-05T10:03:50Z</dc:date>
    <item>
      <title>Set Analysis - Exclude reason code</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277940#M867885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi all,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm new to QV and need help with an expression. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I need to count all the unique order numbers based on the current selection and exclude all cancelled orders. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The order number is stored in the field&amp;nbsp; [%OrderNo].&amp;nbsp; [CloseReason] holds the cancelled order flag 'CNX'.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am currently counting unique orders using:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=Count(DISTINCT %OrderNo)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I was trying something like:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=Count(DISTINCT{$&amp;lt;[CloseReason]&amp;lt;&amp;gt;{CNX}&amp;gt;} %OrderNo) but there is an error. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I could use:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Count(DISTINCT %OrderNo) - Count(DISTINCT{$&amp;lt;[CloseReason]={CNX}&amp;gt;} %OrderNo)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This works but i'm sure there is a "cleaner" way to do this. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any advice would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277940#M867885</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Exclude reason code</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277941#M867886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Exclusion symbol here is '-' . Try:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;=Count(DISTINCT{$&amp;lt;[CloseReason] &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/SPAN&gt;={CNX}&amp;gt;} %OrderNo)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 10:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277941#M867886</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-12-05T10:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Exclude reason code</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277942#M867887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just tried that.&amp;nbsp; I know i have a total of 2680 unique order numbers, of which 15 are with CNX.&amp;nbsp; This should leave me with 2665 with the excludion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression you have suggested leaves me with a count of 15 and not 2665 (2680-15).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 13:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277942#M867887</guid>
      <dc:creator />
      <dc:date>2016-12-05T13:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Exclude reason code</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277943#M867888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you noticed and placed the minus symbol ('-' in red) properly in the set expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 04:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277943#M867888</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-12-06T04:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Exclude reason code</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277944#M867889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And don't leave a space between the - and = sign. The exclude operator is -=.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 04:58:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277944#M867889</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-12-06T04:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Exclude reason code</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277945#M867890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may try this too&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: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 10pt;"&gt;=Count(DISTINCT{$&amp;lt;[CloseReason] = &lt;SPAN style="color: #ff0000; font-style: inherit; font-size: 12pt; font-family: Arial;"&gt;{"*"} - &lt;/SPAN&gt;{"CNX"}&amp;gt;} %OrderNo)&lt;/STRONG&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: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/STRONG&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: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 10pt;"&gt;OR&lt;/STRONG&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: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/STRONG&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: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #000000; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Count({$&amp;lt;[CloseReason] = &lt;SPAN style="font-style: inherit; font-family: Arial;"&gt;{"*"}-&lt;/SPAN&gt;{CNX}&amp;gt;} &lt;STRONG style=": ; color: #ff0000; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DISTINCT&lt;/STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;%OrderNo)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;A _jive_internal="true" class="jive-acclaim-likelink" data-command="like" data-object-id="1171520" data-object-type="2" href="https://community.qlik.com/thread/242203" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Set Analysis - Exclude reason code&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 05:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277945#M867890</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-12-06T05:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Exclude reason code</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277946#M867891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've copied and pasted what i have below:&lt;/P&gt;&lt;P&gt;=Count(DISTINCT{$&amp;lt;[CloseReason] -={CNX}&amp;gt;} %OrderNo)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still only gives me 12 records, not 2665.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 11:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277946#M867891</guid>
      <dc:creator />
      <dc:date>2016-12-06T11:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Exclude reason code</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277947#M867892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that there are 2665 &lt;EM&gt;DISTINCT&lt;/EM&gt; records?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 08:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Exclude-reason-code/m-p/1277947#M867892</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-12-07T08:44:59Z</dc:date>
    </item>
  </channel>
</rss>

