<?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: Using Data loaded from a file in IN / MATCH clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Data-loaded-from-a-file-in-IN-MATCH-clause/m-p/103950#M763436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Shouldn't it be Exists(Y, B)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) How do tell Qlik that Y is a column in [var-name]? It is giving me error if I use Exists("var-name".Y, B)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2018 13:23:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-06T13:23:34Z</dc:date>
    <item>
      <title>Using Data loaded from a file in IN / MATCH clause</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Data-loaded-from-a-file-in-IN-MATCH-clause/m-p/103948#M763434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am loading data from a CSV using the following command:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15333033795964437 jive_text_macro" jivemacro_uid="_15333033795964437" modifiedtitle="true"&gt;
&lt;P&gt;[var_name]:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1 as X,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as Y&lt;/P&gt;
&lt;P&gt;FROM [source]&lt;/P&gt;
&lt;P&gt;(txt, codepage is 28591, no labels, delimiter is ';', msq);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon debugging I found out that the data is getting loaded succcessfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, i want to use one of these columns (Y), in the IN clause or QLIK equivalent MATCH clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15333034844984970" jivemacro_uid="_15333034844984970" modifiedtitle="true"&gt;
&lt;P&gt;[users]:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;
&lt;P&gt;FROM table_name &lt;/P&gt;
&lt;P&gt;WHERE A IN (Y);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i write the WHERE clause in this case. Assume that Y contains more than 500 entries and I cannot write each of them individually in MATCH clause (match(field, value1, value2, ...)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Data-loaded-from-a-file-in-IN-MATCH-clause/m-p/103948#M763434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Data loaded from a file in IN / MATCH clause</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Data-loaded-from-a-file-in-IN-MATCH-clause/m-p/103949#M763435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[users]:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM table_name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE &lt;SPAN style="color: #ff0000;"&gt;Exists(Y, A)&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 14:28:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Data-loaded-from-a-file-in-IN-MATCH-clause/m-p/103949#M763435</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-03T14:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Data loaded from a file in IN / MATCH clause</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Data-loaded-from-a-file-in-IN-MATCH-clause/m-p/103950#M763436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Shouldn't it be Exists(Y, B)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) How do tell Qlik that Y is a column in [var-name]? It is giving me error if I use Exists("var-name".Y, B)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 13:23:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Data-loaded-from-a-file-in-IN-MATCH-clause/m-p/103950#M763436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-06T13:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using Data loaded from a file in IN / MATCH clause</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Data-loaded-from-a-file-in-IN-MATCH-clause/m-p/103951#M763437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) But you said you wanted to check Where A in (Y)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/209995_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did that change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Y is a var-name? Not sure what that means?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 15:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Data-loaded-from-a-file-in-IN-MATCH-clause/m-p/103951#M763437</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-06T15:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using Data loaded from a file in IN / MATCH clause</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Data-loaded-from-a-file-in-IN-MATCH-clause/m-p/103952#M763438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) No that didn't change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Y is not a var-name. What I meant is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;[var_name]:&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;LOAD&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1 &lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; X,&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 &lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; Y&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; [source]&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;(txt, codepage &lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; 28591, &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;no&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; labels, delimiter &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; background-color: inherit; font-size: 9pt !important;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt; &lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;';'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;, msq);&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; Y exists in this [var-name].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how do I use it in EXISTS clause of another table script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 16:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Data-loaded-from-a-file-in-IN-MATCH-clause/m-p/103952#M763438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-06T16:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Data loaded from a file in IN / MATCH clause</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Data-loaded-from-a-file-in-IN-MATCH-clause/m-p/103953#M763439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be by using of Mapping:&lt;/P&gt;&lt;P&gt;[var_name]:&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1 as X,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as Y&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM [source]&amp;nbsp; &lt;/P&gt;&lt;P&gt;(txt, codepage is 28591, no labels, delimiter is ';', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noconcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[users]:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM table_name;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABC:&lt;/P&gt;&lt;P&gt;Mapping load&lt;/P&gt;&lt;P&gt;x,&lt;/P&gt;&lt;P&gt;y&lt;/P&gt;&lt;P&gt;Resident [var_name];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applymap('ABC',Y,'No Match') as A,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;Resident [users];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table [users];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 16:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Data-loaded-from-a-file-in-IN-MATCH-clause/m-p/103953#M763439</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-08-06T16:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Data loaded from a file in IN / MATCH clause</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Data-loaded-from-a-file-in-IN-MATCH-clause/m-p/103954#M763440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exists functions works with the field name from any table loaded before it's use in the Exists function... if you have loaded Y only in var-name table... you can safely use Where Exists(Y, A)... because it will check for values in Y field that matches with A....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense? You can read about more here&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/InterRecordFunctions/Exists.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/InterRecordFunctions/Exists.htm"&gt;Exists - script function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 16:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Data-loaded-from-a-file-in-IN-MATCH-clause/m-p/103954#M763440</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-06T16:34:55Z</dc:date>
    </item>
  </channel>
</rss>

