<?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 to search and exclude 1 value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Button-to-search-and-exclude-1-value/m-p/355289#M1172800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked perfectly. Thank you! Although I'm having a hard time figuring out how it did it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New to qlikview and sql in general &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2012 14:19:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-15T14:19:54Z</dc:date>
    <item>
      <title>Button to search and exclude 1 value</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-search-and-exclude-1-value/m-p/355287#M1172798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a button set up that currently does this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(5*|6*|2*|*118429308*) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It takes all data in my field that starts with 5, 6, 2, and is 118429308.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another button that does this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1*|0*|8*|7*) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It takes all data in my field that starts with 1, 0, 8, and 7. However, I want it to exclude the number 118429308 even though it starts with a 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 13:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-search-and-exclude-1-value/m-p/355287#M1172798</guid>
      <dc:creator />
      <dc:date>2012-06-15T13:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Button to search and exclude 1 value</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-search-and-exclude-1-value/m-p/355288#M1172799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I am missing some simpler method (I tend to stick to my habits in this IMHO poorly documented search features), but you should be able to do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace your search string with (including the equal sign and the single quotes!):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='=sum({&amp;lt;FIELD={"(1*|0*|8*|7*)"}-{118429308} &amp;gt;} 1)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where you need to replace FIELD by your field name you want to search in (the same name you already used in your button dialog).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 14:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-search-and-exclude-1-value/m-p/355288#M1172799</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-15T14:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Button to search and exclude 1 value</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-search-and-exclude-1-value/m-p/355289#M1172800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked perfectly. Thank you! Although I'm having a hard time figuring out how it did it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New to qlikview and sql in general &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 14:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-search-and-exclude-1-value/m-p/355289#M1172800</guid>
      <dc:creator />
      <dc:date>2012-06-15T14:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Button to search and exclude 1 value</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-search-and-exclude-1-value/m-p/355290#M1172801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, must be pretty hard to read for a starter, I think..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression essentially uses a &lt;EM&gt;set expression &lt;/EM&gt;to create a kind of temporary selection in FIELD (only in the context of the sum() function), and using the sum function's result&amp;nbsp; 0 or 1 as logic to filter the FIELD values in the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To understand set analysis / set expressions will probably take some time, but it will pay off. It allows quite easily to manipulate selections / sets and can be widely used in QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some advanced search terms that might be easier to understand, if you manage to read them correctly, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='=wildmatch(Value,'&amp;amp;chr(39)&amp;amp;'1*'&amp;amp;chr(39)&amp;amp;','&amp;amp;chr(39)&amp;amp;'2*'&amp;amp;chr(39)&amp;amp;') and not Value=1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should list all FIELD values that start with one or two except one itself. The chr(39) is needed to get the single quotes around the wildcard search terms '1*' and '2*' in the search string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps a little bit,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 14:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-search-and-exclude-1-value/m-p/355290#M1172801</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-15T14:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Button to search and exclude 1 value</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-search-and-exclude-1-value/m-p/355291#M1172802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it also helped me :&lt;/P&gt;&lt;P&gt;i) To apply a "advanced search" sentence inside a button action, one must place it inside quotes&lt;/P&gt;&lt;P&gt;='=rank(aggr(sum(Sales),Customer))&amp;lt;=10'&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;(this selects the top 10 customers)&lt;/P&gt;&lt;P&gt;ii) To use set analysis in order to make a selection in an "advanced search" sentence, on can use sum({ } 1)&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;=sum({&amp;lt;FIELD={"(1*|0*|8*|7*)"}-{118429308} &amp;gt;} 1)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;iii) to escape the quote ( ' ) character, one can use the &amp;amp; and the chr(39)&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;='=wildmatch(Value,'&amp;amp;chr(39)&amp;amp;'1*'&amp;amp;chr(39)&amp;amp;','&amp;amp;chr(39)&amp;amp;'2*'&amp;amp;chr(39)&amp;amp;') and not Value=1'&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adrien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 16:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-search-and-exclude-1-value/m-p/355291#M1172802</guid>
      <dc:creator />
      <dc:date>2012-10-26T16:24:34Z</dc:date>
    </item>
  </channel>
</rss>

