<?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: Could somebody explain match() function  and exists()? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Could-somebody-explain-match-function-and-exists/m-p/318397#M117385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about the efficiency of an EXISTS vs. a MATCH?&amp;nbsp; For example if you add some matching criteria to an Inline Table at the beginning of the script and then use EXISTS on a Load. Is that faster than simply doing a MATCH on the load with the same criteria?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2012 19:56:05 GMT</pubDate>
    <dc:creator>natebrunner</dc:creator>
    <dc:date>2012-12-17T19:56:05Z</dc:date>
    <item>
      <title>Could somebody explain match() function  and exists()?</title>
      <link>https://community.qlik.com/t5/QlikView/Could-somebody-explain-match-function-and-exists/m-p/318393#M117381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be very helpful if, somebody could attacch a sample application which uses match function in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though i went through the referrencee manual, but unfortunately didn't clearly understand the explanation about Match () and exists()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 21:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Could-somebody-explain-match-function-and-exists/m-p/318393#M117381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-21T21:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Could somebody explain match() function  and exists()?</title>
      <link>https://community.qlik.com/t5/QlikView/Could-somebody-explain-match-function-and-exists/m-p/318394#M117382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is an example of exists that is a part of Rob Wunderlich's cookbook available at his website robwunderlich.com.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The match function is a way to avoid writing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load ...&lt;/P&gt;&lt;P&gt;From ...&lt;/P&gt;&lt;P&gt;Where Customer = 'A' or Customer ='B' or Customer='C'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write it as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load ...&lt;/P&gt;&lt;P&gt;From ...&lt;/P&gt;&lt;P&gt;Where match(Customer, 'A','B','C')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it comes in a variety of flavors.&amp;nbsp; WildMatch() is usually my favorite.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 21:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Could-somebody-explain-match-function-and-exists/m-p/318394#M117382</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2011-12-21T21:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Could somebody explain match() function  and exists()?</title>
      <link>https://community.qlik.com/t5/QlikView/Could-somebody-explain-match-function-and-exists/m-p/318395#M117383</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;In addition to Karl's post, Exists() referes to a previously loaded field to which compares the value that is loading, as opposed to Match() that compares to any given string or expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Customers:&lt;/P&gt;&lt;P&gt;LOAD CustomerID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName&lt;/P&gt;&lt;P&gt;FROM Customers.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orders:&lt;/P&gt;&lt;P&gt;LOAD OrderID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID&lt;/P&gt;&lt;P&gt;FROM Orders.qvd (qvd)&lt;/P&gt;&lt;P&gt;WHERE EXISTS(CustomerID);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Orders table will only load from the file Orders.qvd those where the value in CustomerID already exists in the table Customers, so for example, if Customer C has two orders but it's not in the Customers table, these two orders are not loaded.&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;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 21:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Could-somebody-explain-match-function-and-exists/m-p/318395#M117383</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-12-21T21:38:07Z</dc:date>
    </item>
    <item>
      <title>Could somebody explain match() function  and exists()?</title>
      <link>https://community.qlik.com/t5/QlikView/Could-somebody-explain-match-function-and-exists/m-p/318396#M117384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Karl and Miguel....for being crystal clear...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 21:43:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Could-somebody-explain-match-function-and-exists/m-p/318396#M117384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-21T21:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Could somebody explain match() function  and exists()?</title>
      <link>https://community.qlik.com/t5/QlikView/Could-somebody-explain-match-function-and-exists/m-p/318397#M117385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about the efficiency of an EXISTS vs. a MATCH?&amp;nbsp; For example if you add some matching criteria to an Inline Table at the beginning of the script and then use EXISTS on a Load. Is that faster than simply doing a MATCH on the load with the same criteria?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 19:56:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Could-somebody-explain-match-function-and-exists/m-p/318397#M117385</guid>
      <dc:creator>natebrunner</dc:creator>
      <dc:date>2012-12-17T19:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Could somebody explain match() function  and exists()?</title>
      <link>https://community.qlik.com/t5/QlikView/Could-somebody-explain-match-function-and-exists/m-p/318398#M117386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my experience, I only use Match() when the number of possible values is very limited, say no more than 10. And besides that, if the value is already in a field that has been loaded previously, it takes more time to build the function starting from the values loaded than simply using the Exists().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, feel free to try and share you experiences with large data sets and performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 08:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Could-somebody-explain-match-function-and-exists/m-p/318398#M117386</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-12-18T08:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Could somebody explain match() function  and exists()?</title>
      <link>https://community.qlik.com/t5/QlikView/Could-somebody-explain-match-function-and-exists/m-p/318399#M117387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem at the moment with either "OR" or "Match" function is that the moment I specify more than one value to return data for, it seems to "ignore" my criteria and return all values regardless.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where (budget_code = '2013' or budget_code = '2014');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, it returns every budget_code in existence. If I say where budget_code = '2013' then I get 2013 values only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The similar thing is happening with match:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where match(budget_code, '2013', '2014') ignores my condition except for when only one value is specified, i.e.&lt;/P&gt;&lt;P&gt;where match(budget_code, '2013').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestions please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 09:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Could-somebody-explain-match-function-and-exists/m-p/318399#M117387</guid>
      <dc:creator />
      <dc:date>2013-11-05T09:21:21Z</dc:date>
    </item>
  </channel>
</rss>

