<?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: Button doing a NOT value selection in field? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471037#M175960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well it's not only 'B' that I want to be able to exclude this way and I'm not to happy about having a lot of fields CategoryWithoutB, CategoryWithoutC and so on.&lt;/P&gt;&lt;P&gt;And for end user clarity I want the selection to say 'Category = NOT B'.&lt;/P&gt;&lt;P&gt;Another reason is when Category is in a linked dimension table aside of the central facts table.&lt;/P&gt;&lt;P&gt;Having a field CategoryWithoutB in the dimension table would then select rows in the dimension table, rows in the facts table without any corresponding dimension rows would then be excluded also.&lt;/P&gt;&lt;P&gt;That is the same problem as in my little example when there is no category value.&lt;/P&gt;&lt;P&gt;The CategoryWithoutB field would then need to be added to the facts table which is not what I want.&lt;/P&gt;&lt;P&gt;Add to that the posibility of more than one facts table and it is a no go solution.&lt;/P&gt;&lt;P&gt;I DO want to make the selection 'Category = NOT B' in a trigger!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Mar 2013 09:31:06 GMT</pubDate>
    <dc:creator>Anders_Eriksson</dc:creator>
    <dc:date>2013-03-25T09:31:06Z</dc:date>
    <item>
      <title>Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471029#M175952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Say I have a field 'Category' with possible values 'A', 'B', 'C'.&lt;/P&gt;&lt;P&gt;Now I want a button to make a selection in field 'Category' and i want the selection to be 'NOT B'.&lt;/P&gt;&lt;P&gt;'NOT B' is not the same thing as selecting 'A' &amp;amp; 'C' as there can also be rows in the datamodel without any value in field 'Category'.&lt;/P&gt;&lt;P&gt;Those rows are included with the selection 'NOT B' but excluded if you do selection 'A' &amp;amp; 'C'.&lt;/P&gt;&lt;P&gt;The only way of accomplishing 'NOT B' in a button trigger that I know of is by first doing a field selection 'B' and then select excluded values.&lt;/P&gt;&lt;P&gt;Problem is this will not do when user has made other selections.&lt;/P&gt;&lt;P&gt;Say I also have a field 'Year' and user made the selection '2013' in this field.&lt;/P&gt;&lt;P&gt;If there are no 'B's during 2013 what will happen with the button trigger?&lt;/P&gt;&lt;P&gt;First we select 'B' but since there are no 'B's during 2013 QlikView will loose the selection in field 'Year'!&lt;/P&gt;&lt;P&gt;Next we exclude the selection in field 'Category', fine we now have 'Category' = 'NOT B' but we no longer have the selection 'Year' = '2013'!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example data that illustrates the problem could be;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="169" style="border: 1px solid #000000; width: 264px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;Year&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;Category&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;Value&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2012&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2012&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2012&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2013&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2013&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;If user did not make any selection prior to pressing the button we should get values 1, 3, 4 &amp;amp; 6.&lt;/P&gt;&lt;P&gt;If user select 2012 and press button we should get 1 &amp;amp; 3 (will work with button first selecting 'B' and then exclude selected value).&lt;/P&gt;&lt;P&gt;User selected 2013 and press the button I want values 4 &amp;amp; 6 (exclude those with 'B').&lt;/P&gt;&lt;P&gt;With button first selecting 'B' and then excluded values I will get 1, 3, 4 &amp;amp; 6 (since selection of Year is lost).&lt;/P&gt;&lt;P&gt;With button selecting all values but 'B' I will only get value 4 (since 6 does not have a Category).&lt;/P&gt;&lt;P&gt;In a listbox you can type 'NOT B' to do exactly this but what search pattern should I use in a trigger to accomplish this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 16:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471029#M175952</guid>
      <dc:creator>Anders_Eriksson</dc:creator>
      <dc:date>2013-03-22T16:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471030#M175953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anders,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;BR /&gt;1. Lock All&lt;BR /&gt;2. Unlock field Category&lt;BR /&gt;3. Select in field Category, value B (nothing happens if it is not available)&lt;BR /&gt;4. Select excluded&lt;BR /&gt;5. Unlock all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 17:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471030#M175953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-22T17:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471031#M175954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I thought of that but while it gets the correct results it won't say 'Category = NOT B' which is important to me.&lt;/P&gt;&lt;P&gt;There are that much data that end users need this selection to be sure all the B's are excluded.&lt;/P&gt;&lt;P&gt;It's a question of clarity to the end user, explaining to them that there are no B's at all if the above selection is absent is not sufficient.&lt;/P&gt;&lt;P&gt;Since it is possible doing this selection manually it should also be possible doing it in a trigger during the same circumstances.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 07:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471031#M175954</guid>
      <dc:creator>Anders_Eriksson</dc:creator>
      <dc:date>2013-03-25T07:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471032#M175955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use this as Select in field expression for the field value&lt;/P&gt;&lt;P&gt;='('&amp;amp;Concat({&amp;lt;Category-={'B'}&amp;gt;}Value,'|')&amp;amp;')'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 08:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471032#M175955</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-03-25T08:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471033#M175956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No I can't, that would select all other Category values but 'B'.&lt;/P&gt;&lt;P&gt;Then value number 6 would also be excluded since that does not have any Category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 08:46:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471033#M175956</guid>
      <dc:creator>Anders_Eriksson</dc:creator>
      <dc:date>2013-03-25T08:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471034#M175957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maby I am wrong, but would this work?&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 09:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471034#M175957</guid>
      <dc:creator />
      <dc:date>2013-03-25T09:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471035#M175958</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Why dont you create a seperate Category field from Script, which will not have the 'B' as value, then you can use this field in your front end for selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 09:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471035#M175958</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-25T09:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471036#M175959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, does not work.&lt;/P&gt;&lt;P&gt;Select excluded only works if the value is first selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 09:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471036#M175959</guid>
      <dc:creator>Anders_Eriksson</dc:creator>
      <dc:date>2013-03-25T09:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471037#M175960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well it's not only 'B' that I want to be able to exclude this way and I'm not to happy about having a lot of fields CategoryWithoutB, CategoryWithoutC and so on.&lt;/P&gt;&lt;P&gt;And for end user clarity I want the selection to say 'Category = NOT B'.&lt;/P&gt;&lt;P&gt;Another reason is when Category is in a linked dimension table aside of the central facts table.&lt;/P&gt;&lt;P&gt;Having a field CategoryWithoutB in the dimension table would then select rows in the dimension table, rows in the facts table without any corresponding dimension rows would then be excluded also.&lt;/P&gt;&lt;P&gt;That is the same problem as in my little example when there is no category value.&lt;/P&gt;&lt;P&gt;The CategoryWithoutB field would then need to be added to the facts table which is not what I want.&lt;/P&gt;&lt;P&gt;Add to that the posibility of more than one facts table and it is a no go solution.&lt;/P&gt;&lt;P&gt;I DO want to make the selection 'Category = NOT B' in a trigger!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 09:31:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471037#M175960</guid>
      <dc:creator>Anders_Eriksson</dc:creator>
      <dc:date>2013-03-25T09:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471038#M175961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm currently having the same issue, did you ever find a solution to your problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 10:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471038#M175961</guid>
      <dc:creator />
      <dc:date>2013-06-20T10:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471039#M175962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry but no, only resolution to this problem was by making my selections manually and then save them as a bookmark.&lt;/P&gt;&lt;P&gt;The bookmark could then be activated from the button.&lt;/P&gt;&lt;P&gt;Not a perfect solution but what I could achieve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 14:35:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471039#M175962</guid>
      <dc:creator>Anders_Eriksson</dc:creator>
      <dc:date>2013-06-20T14:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471040#M175963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To make it say 'NOT B' there need to be a couple of values more than 3 or change the setting MaxCurSelEntries to a lower value.&lt;/P&gt;&lt;P&gt;Otherwise it will only say "A, C, D, E ..." instead of 'NOT B'. To change the MaxCurSelEntries, goto Help/About QlikView and then&lt;/P&gt;&lt;P&gt;rightklick on the Qlikview symbol in the lower left corner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a solution with trigger (ON RELOAD) and on a button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 07:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471040#M175963</guid>
      <dc:creator />
      <dc:date>2013-06-24T07:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471041#M175964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting, never knew of those settings available by rightclicking the QlikView logo.&lt;/P&gt;&lt;P&gt;But I suspect this is not a solution either?&lt;/P&gt;&lt;P&gt;First, my real world problem (not the example above) had more than 3 values to start with and&lt;BR /&gt;second, changing of those settings I suspect affect the client not the application, &lt;BR /&gt;if that is correct one would have to change the setting for every user including when new users are introduced.&lt;/P&gt;&lt;P&gt;I suspect the problem is solveable by using a maceo triggered by the button but I don't want to go that way even though I have the knowledge how to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 07:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471041#M175964</guid>
      <dc:creator>Anders_Eriksson</dc:creator>
      <dc:date>2013-06-26T07:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471042#M175965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Those settings are available for everyone if you set the value in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: &lt;/P&gt;&lt;P&gt;SET maxCurSelEntries = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macro can be triggered when someone opens/reloads/whatever the document by using triggers. (Settings/Docment properties/Triggers)&lt;/P&gt;&lt;P&gt;My last post showed both a trigger and a button. But solving it without a macro is not possible i think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a request with QlikView for a NOT-selection. Go vote if you like it:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/ideas/http://community.qlik.com/ideas/2756"&gt;http://community.qlik.com/ideas/2756&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 08:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471042#M175965</guid>
      <dc:creator />
      <dc:date>2013-06-26T08:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471043#M175966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , Anders Eriksson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was having the same query related to selecting " NOT IN " field using a button ,&lt;/P&gt;&lt;P&gt;so i figured it out and this may be a solution to your query as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps .&lt;/P&gt;&lt;P&gt;Cheers!! !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 06:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471043#M175966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-10T06:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471044#M175967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply but you did not read my original posting through.&lt;/P&gt;&lt;P&gt;I have already walked you through this solution and explained why it does not work!&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;&amp;gt; If user did not make any selection prior to pressing the button we should get values 1, 3, 4 &amp;amp; 6.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt; If user select 2012 and press button we should get 1 &amp;amp; 3 (will work with button first selecting 'B' and then exclude selected value).&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt; &lt;STRONG&gt;User selected 2013 and press the button I want values 4 &amp;amp; 6 (exclude those with 'B').&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt; &lt;STRONG&gt;With button first selecting 'B' and then excluded values I will get 1, 3, 4 &amp;amp; 6 (since selection of Year is lost).&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt; With button selecting all values but 'B' I will only get value 4 (since 6 does not have a Category).&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt; In a listbox you can type 'NOT B' to do exactly this but what search pattern should I use in a trigger to accomplish this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 07:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471044#M175967</guid>
      <dc:creator>Anders_Eriksson</dc:creator>
      <dc:date>2015-06-11T07:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471045#M175968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thought this is not a perfect solution, but I think this do get the result.&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 11:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471045#M175968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-27T11:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471046#M175969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anders,&lt;/P&gt;&lt;P&gt;From your initial question it sounds like you know up front that "B" is the only category that you want to be able to exclude at the click of a button.&lt;/P&gt;&lt;P&gt;If that is the case we can prepare a new field in the script that will help us.&lt;/P&gt;&lt;DIV style="padding: 12px; background-color: #fde9d9; line-height: 1.4;"&gt;&lt;P&gt;example_stg:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year, Category, Value&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, A, 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, B, 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, C, 3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, A, 4&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, , 6&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;LOAD *&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,if(Category&amp;lt;&amp;gt;'B','Category is Not B') as excludeB&lt;BR /&gt;Resident example_stg;&lt;/P&gt;&lt;P&gt;DROP Table example_stg;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;Then you can simply use a Listbox on the excludeB field (my preference) or you can create an action to put in a button or on a trigger.&lt;/P&gt;&lt;P&gt;The action would simply be Select Possible against excludeB.&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 14:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471046#M175969</guid>
      <dc:creator />
      <dc:date>2016-09-02T14:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471047#M175970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Already suggested by &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/kaushik.solanki"&gt;kaushik.solanki&lt;/A&gt;&lt;/STRONG&gt; and rejected as solution.&lt;/P&gt;&lt;P&gt;Would need one extra field for each value that should be excluded and depends on those values being known at load time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 15:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471047#M175970</guid>
      <dc:creator>Anders_Eriksson</dc:creator>
      <dc:date>2016-09-02T15:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Button doing a NOT value selection in field?</title>
      <link>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471048#M175971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, sorry I missed that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do something quirky with calculated dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you create a separate table just to hold a copy of the Category values you could then create a list box on it whose selections would become immune from mutual exclusivity issues with other selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This could then be used in a calculated dimension to determine whether or not to include the row. I've called it [Category NOT IN] in the example to get you the clarity you were after to make it obvious in the current selections box that things are being excluded. I also coloured the list box reddish to try and give a visual clue that it is treated differently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculated dimension checks the selections and returns either 1 or Null() and is set to suppress nulls. It is also hidden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This certainly works for this simple example but the logic would need to be propogated in other charts and so on in the report where the exclusion is to be applied. You also need to make sure you choose a big enough max values number in the GetFieldSelections function to cover all the possible selections else you would end up with weirdness when the selection switched to the 'NOT B,C' or 'X of Y' type of response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is probably more trouble than it is worth for more complicated or larger production reports so I'm just presenting it as a curiosity. Hopefully thought provoking though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, if you use the GetFieldSelections function you can specify a max values without needing to tinker with any global client settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 09:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-doing-a-NOT-value-selection-in-field/m-p/471048#M175971</guid>
      <dc:creator />
      <dc:date>2016-09-05T09:42:45Z</dc:date>
    </item>
  </channel>
</rss>

