<?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 Advanced Search - 2 Fields - OR Logic in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358998#M493313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep that's great mate.&amp;nbsp; Works nicely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you say the advanced search works nicely on UserID.&amp;nbsp; I'll show them how to do that as well in case they only want to search for some of the words in specific fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll see what i can conjure up for you next time &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; keep you on your toes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 15:24:04 GMT</pubDate>
    <dc:creator>haymarketpaul</dc:creator>
    <dc:date>2012-05-23T15:24:04Z</dc:date>
    <item>
      <title>Advanced Search - 2 Fields - OR Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358990#M493305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV11 SR1 64-bit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 fields::&lt;/P&gt;&lt;P&gt;Field1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;JobTitle&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in Listbox&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;Field2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;JobFunction&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dimension within Straight Table Chart&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My users would like to be able to search and select within both of these at the same time using OR logic, so the following sort of thing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =[JobTitle&lt;STRONG&gt; &lt;/STRONG&gt;] like '*Manager* &lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt; [JobTitle&lt;STRONG&gt; &lt;/STRONG&gt;] like '*Director*' &lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt; [JobFunction] like '*Executive*' &lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt; [JobFunction] like '*Management*'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The straight table chart does not itself have an advanced search option.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if i right-click the JobTitle listbox and choose Advanced Search with the &lt;EM&gt;Search in&lt;/EM&gt; drop-down set to &lt;STRONG&gt;JobTitle&lt;/STRONG&gt;, using the statement above i get some results which at first glance appear correct (3223 record count)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if i change the&lt;EM&gt; Search in &lt;/EM&gt;drop-down to &lt;STRONG&gt;JobFunction &lt;/STRONG&gt;and try the same thing i get different results (2565 record count)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an idea why that might be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way for the user to do this kind of thing e.g. a set analysis expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 15:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358990#M493305</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2012-05-18T15:17:35Z</dc:date>
    </item>
    <item>
      <title>Advanced Search - 2 Fields - OR Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358991#M493306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello mate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a variable vSearchString (empty)&lt;/P&gt;&lt;P&gt;2. Add an Input Box object tied to that variable (this is for your users to use and they should type as many comma-separated values as they want)&lt;/P&gt;&lt;P&gt;3. Create a second variable vWildMatch:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(39) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(42) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;EM&gt;vSearchString&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;,',',&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(42) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(39) &amp;amp; ',' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(39) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(42)) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(42) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Chr&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(39) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this builds a WildMatch()-ready string with wildcards etc.&lt;/P&gt;&lt;P&gt;4. Then, to list all the registrants that have either a JobTitle or a JobFunction that matches the search, put the following in a text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;WildMatch&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Jobtitle&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;$(vWildMatch)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;OR&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;WildMatch&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;JobFunction&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;$(vWildMatch)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;RegistrantName&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;),',')&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; or, to count the registrants:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;WildMatch&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Jobtitle&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;$(vWildMatch)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;OR&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;WildMatch&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;JobFunction&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;$(vWildMatch)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Counter_User&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;))&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Now how did I know you were counting registrants? And how did I know you have a counter flag!!??) &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 16:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358991#M493306</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-18T16:01:02Z</dc:date>
    </item>
    <item>
      <title>Advanced Search - 2 Fields - OR Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358992#M493307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks mate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll look into this on Monday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're not too busy over there then &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 16:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358992#M493307</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2012-05-18T16:16:19Z</dc:date>
    </item>
    <item>
      <title>Advanced Search - 2 Fields - OR Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358993#M493308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never too busy for HMG &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 16:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358993#M493308</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-18T16:31:43Z</dc:date>
    </item>
    <item>
      <title>Advanced Search - 2 Fields - OR Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358994#M493309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally got around to looking at this again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Had to add in =1 in a couple of places to get this to work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Concat(DISTINCT IF(WildMatch(Jobtitle,$(vWildMatch)=1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OR WildMatch(JobFunction,$(vWildMatch)=1),RegistrantName),',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The count example doesn't seem to work at all even with =1's added?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure this would help me anyway as ideally i want to actually select the results so the users can output the records to excel or make further selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the OR logic worked in the advanced search box it would be great...it doesn't though, in fact it's rather misleading from what i can see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've trawled every other post on this subject and there does not as yet appear to be a nice easy way to achieve this.&amp;nbsp; A macro has been suggested by several people but looking to avoid those if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm thinking i may as well concatenate the job title &amp;amp; job function together in a listbox for the sake of allowing someone to search on the 2 together and be able to select them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for trying anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 16:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358994#M493309</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2012-05-21T16:19:54Z</dc:date>
    </item>
    <item>
      <title>Advanced Search - 2 Fields - OR Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358995#M493310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Email me the app mate and I'll have a look.&amp;nbsp; The above should work fine and so should the advanced search.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 16:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358995#M493310</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-21T16:31:13Z</dc:date>
    </item>
    <item>
      <title>Advanced Search - 2 Fields - OR Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358996#M493311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right...got the email, cheers.&amp;nbsp; First things first - having re-read your issue above, the reason for the difference in counts using the advanced search is pretty clear.&amp;nbsp; You should not be performing this search in the JobTitle field as not every user has one.&amp;nbsp; Instead, use the advanced search on the UserID field as there is a unique value for every record.&amp;nbsp; So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=WildMatch([Job Function BR],'*manager*','*management*','*director*','*executive*') OR WildMatch([Job Title BR],'*manager*','*management*','*director*','*executive*')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the &lt;STRONG&gt;&lt;EM&gt;UserID &lt;/EM&gt;&lt;/STRONG&gt;field will give the correct result of 5,952 (on BR tab). It searches for every UserID &lt;EM&gt;&lt;STRONG&gt;associated &lt;/STRONG&gt;&lt;/EM&gt;with a Job Title or Job Function returned by the WildMatch() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now...I've had some fun with this today and ended up with something I think you'll like!&amp;nbsp; I've created 4 new variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vSearchString:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;this is empty&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vWildMatch:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Chr(39) &amp;amp; Chr(42) &amp;amp; Replace(Replace(vSearchString,', ',','),',',Chr(42) &amp;amp; Chr(39) &amp;amp; ',' &amp;amp; Chr(39) &amp;amp; Chr(42)) &amp;amp; Chr(42) &amp;amp; Chr(39)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This builds a WildMatch expression based on the comma-separated string in vSearchString (which is set by your users with a input-box).&amp;nbsp; It replaces all comma-and-spaces combos with just a comma in case your users put a space between the strings to search for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vActiveBrandTitle and &lt;STRONG&gt;vActiveBrandFunction&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'[Job Title ' &amp;amp; $(vActiveBrand) &amp;amp; ']'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'[Job Function ' &amp;amp; $(vActiveBrand) &amp;amp; ']'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are so you can copy and paste-link the new search objects onto any brand's page and it'll search the correct fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vWildMatchSearchResult:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;='Sum({&amp;lt;[HBM Brand]= {'&amp;amp; $(vActiveBrand) &amp;amp;'}, UserID={"=WildMatch([Job Title ' &amp;amp; $(vActiveBrand) &amp;amp; '],' &amp;amp; vWildMatch &amp;amp; ') OR WildMatch([Job Function ' &amp;amp; $(vActiveBrand) &amp;amp; '],' &amp;amp; vWildMatch &amp;amp; ')"}&amp;gt;} Counter_FACT)'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This builds a set analysis expression to count the number of users within the brand that have either a Job title or Job Function containing any one of the search strings. Neat!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Apply button runs an advanced search on UserID for the results of the set analysis.&amp;nbsp; You can't directly run advanced searches in button actions but you can cheat and dynamically build the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=IF(vSearchString='','','=WildMatch([Job Title ' &amp;amp; $(vActiveBrand) &amp;amp; '],' &amp;amp; vWildMatch &amp;amp; ') OR WildMatch([Job Function ' &amp;amp; $(vActiveBrand) &amp;amp; '],'&amp;nbsp; &amp;amp; vWildMatch &amp;amp; ')')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I've also added a Clear button to delete the search strings and reset UserID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have fun mate...I'll email the app back to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 18:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358996#M493311</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-22T18:17:55Z</dc:date>
    </item>
    <item>
      <title>Advanced Search - 2 Fields - OR Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358997#M493312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wow thanks mate, you've been busy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'll take a look at all that today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The app you emailed back didn't make it through as it's over 10MB.&amp;nbsp; Maybe you could email it to my hotmail:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:pnockolds@hotmail.com"&gt;pnockolds@hotmail.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 08:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358997#M493312</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2012-05-23T08:35:42Z</dc:date>
    </item>
    <item>
      <title>Advanced Search - 2 Fields - OR Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358998#M493313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep that's great mate.&amp;nbsp; Works nicely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you say the advanced search works nicely on UserID.&amp;nbsp; I'll show them how to do that as well in case they only want to search for some of the words in specific fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll see what i can conjure up for you next time &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; keep you on your toes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 15:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358998#M493313</guid>
      <dc:creator>haymarketpaul</dc:creator>
      <dc:date>2012-05-23T15:24:04Z</dc:date>
    </item>
    <item>
      <title>Advanced Search - 2 Fields - OR Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358999#M493314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it works.&amp;nbsp; Hope everyone at HMG is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I've just read back over my answer - God I'm a geek!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 15:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/358999#M493314</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-23T15:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced Search - 2 Fields - OR Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/359000#M493315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the advanced search you created case sensitive?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-Search-2-Fields-OR-Logic/m-p/359000#M493315</guid>
      <dc:creator />
      <dc:date>2014-09-03T14:44:29Z</dc:date>
    </item>
  </channel>
</rss>

