<?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 exlcude selection in count set statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/exlcude-selection-in-count-set-statement/m-p/190970#M53254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karen,&lt;/P&gt;&lt;P&gt;I don't really understand your problem. Maybe you are able to further explain the problem from a less technical point of view. Besides that I would like to see the table structure you are using. And maybe you are able to post a qvw?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tjeerd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Sep 2009 04:00:38 GMT</pubDate>
    <dc:creator>tabletuner</dc:creator>
    <dc:date>2009-09-18T04:00:38Z</dc:date>
    <item>
      <title>exlcude selection in count set statement</title>
      <link>https://community.qlik.com/t5/QlikView/exlcude-selection-in-count-set-statement/m-p/190969#M53253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently using this statement to count distinct distributors, but exclude users selection of distributor from the count.&lt;/P&gt;&lt;P&gt;count(distinct {&amp;lt; {*}-{&lt;B&gt;&lt;I&gt;$(=chr(39) &amp;amp; Distributor &amp;amp; chr(39))&lt;/I&gt;&lt;/B&gt;}&amp;gt;}Distributor)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User selects distributor name from listbox, and then chart sum values for the one distributor. And then I have other fields to sum all other distributors that are not selected.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;I have several qty fields. POS Qty, POA Qty, Bklg Qty.&lt;/P&gt;&lt;P&gt;I sum the above 3 catergories like this (one example):&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({&amp;lt; Distributor = {*}-{&lt;B&gt;&lt;I&gt;$(=chr(39) &amp;amp; Distributor &amp;amp; chr(39))&lt;/I&gt;&lt;/B&gt;} , FYYear=,FYMonthName=,MonthSequenceNum={&lt;B&gt;&lt;I&gt;$(=only(MonthSequenceNum)-1)&lt;/I&gt;&lt;/B&gt;}&amp;gt;} POS_Qty) +&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({&amp;lt; Distributor = {*}-{&lt;B&gt;&lt;I&gt;$(=chr(39) &amp;amp; Distributor &amp;amp; chr(39))&lt;/I&gt;&lt;/B&gt;} , FYYear=,FYMonthName=,MonthSequenceNum={&lt;B&gt;&lt;I&gt;$(=only(MonthSequenceNum)-2)&lt;/I&gt;&lt;/B&gt;}&amp;gt;} POS_Qty)+&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({&amp;lt; Distributor = {*}-{&lt;B&gt;&lt;I&gt;$(=chr(39) &amp;amp; Distributor &amp;amp; chr(39))&lt;/I&gt;&lt;/B&gt;} , FYYear=,FYMonthName=,MonthSequenceNum={&lt;B&gt;&lt;I&gt;$(=only(MonthSequenceNum)-3)&lt;/I&gt;&lt;/B&gt;}&amp;gt;} POS_Qty)&lt;/P&gt;&lt;P&gt;I would like the count to refelct the other distributors that actually have values in the above catergories, but &lt;EM&gt;I'm getting strange results. Some times my count = 0 when there are values for the other distributors, and the count is also including the selected distirbutor.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried count(distinct{1} Distributor), but this gives me the count of all distributors and ignores any other selection. I know why this is happening because {1}.&lt;/P&gt;&lt;P&gt;Does anyone know how to do a count of distributors that are not selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 02:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exlcude-selection-in-count-set-statement/m-p/190969#M53253</guid>
      <dc:creator>karensmith</dc:creator>
      <dc:date>2009-09-18T02:47:21Z</dc:date>
    </item>
    <item>
      <title>exlcude selection in count set statement</title>
      <link>https://community.qlik.com/t5/QlikView/exlcude-selection-in-count-set-statement/m-p/190970#M53254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karen,&lt;/P&gt;&lt;P&gt;I don't really understand your problem. Maybe you are able to further explain the problem from a less technical point of view. Besides that I would like to see the table structure you are using. And maybe you are able to post a qvw?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tjeerd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 04:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exlcude-selection-in-count-set-statement/m-p/190970#M53254</guid>
      <dc:creator>tabletuner</dc:creator>
      <dc:date>2009-09-18T04:00:38Z</dc:date>
    </item>
    <item>
      <title>exlcude selection in count set statement</title>
      <link>https://community.qlik.com/t5/QlikView/exlcude-selection-in-count-set-statement/m-p/190971#M53255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karen,&lt;/P&gt;&lt;P&gt;You should be able to use {1-$} to get the full count minus the selected count, i.e. the excluded count.&lt;/P&gt;&lt;P&gt;From the F1-help under the "Set Analysis" sheet in QV:&lt;/P&gt;&lt;P&gt;sum( {1-$} Sales )&lt;BR /&gt;returns sales for everything excluded by the current selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 09:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exlcude-selection-in-count-set-statement/m-p/190971#M53255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-18T09:25:32Z</dc:date>
    </item>
    <item>
      <title>exlcude selection in count set statement</title>
      <link>https://community.qlik.com/t5/QlikView/exlcude-selection-in-count-set-statement/m-p/190972#M53256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;As johannes suggested {1-$} will do the trick for you. &lt;P&gt;And regarding {1}. It excludes all selections, and you will be analysing against a full set of data always.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 12:46:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exlcude-selection-in-count-set-statement/m-p/190972#M53256</guid>
      <dc:creator />
      <dc:date>2009-09-18T12:46:19Z</dc:date>
    </item>
    <item>
      <title>exlcude selection in count set statement</title>
      <link>https://community.qlik.com/t5/QlikView/exlcude-selection-in-count-set-statement/m-p/190973#M53257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Guys. Let me see if I can better explain with the following examples. User makes year, month, distributor selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6811.SELECTION.bmp"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6811.SELECTION.bmp" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first 8 columns represent the selected Distributors Inventory and Sales values. Field 'XX'= the count of all other distributors that are not selected, but have values for the same catergories. If the fields others are = 0 then xx = 0. In some cases this true, but in others the count = 1, which truly represents the selected distributor. The count should never include the selected distributor, but only the other distributors that actually have sales or inventory in the same time period.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7701.TABLE2.bmp"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/7701.TABLE2.bmp" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 19:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exlcude-selection-in-count-set-statement/m-p/190973#M53257</guid>
      <dc:creator>karensmith</dc:creator>
      <dc:date>2009-09-18T19:13:29Z</dc:date>
    </item>
    <item>
      <title>exlcude selection in count set statement</title>
      <link>https://community.qlik.com/t5/QlikView/exlcude-selection-in-count-set-statement/m-p/190974#M53258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Johannes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your suggested and got the results that I posted in my previous response. Please see that response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 19:14:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exlcude-selection-in-count-set-statement/m-p/190974#M53258</guid>
      <dc:creator>karensmith</dc:creator>
      <dc:date>2009-09-18T19:14:36Z</dc:date>
    </item>
  </channel>
</rss>

