<?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 Exists Function with 2 parameters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exists-Function-with-2-parameters/m-p/1625773#M595672</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Is it mandatory to have same names for the 2 parameters inside exists function in the below example?&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;ID, NAME&lt;BR /&gt;1A, A&lt;BR /&gt;2A, B&lt;BR /&gt;3A, C&lt;BR /&gt;4A, D&lt;BR /&gt;5A, E&lt;BR /&gt;];&lt;BR /&gt;//Load ID , NAM as NAME;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;ID, NAM&lt;BR /&gt;6B, A&lt;BR /&gt;7B, B&lt;BR /&gt;8B, X&lt;BR /&gt;]&lt;BR /&gt;where NOT Exists (NAME, NAM)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;The above query retains the ID value (8B) and somehow removes the NAM value (X) in the resulting table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, if i use same names inside the parameter of Exists (see below code)by renaming the field NAM as NAME in the 2nd LOAD, both (8B) and (X) are not seen in the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;ID, NAME&lt;BR /&gt;1A, A&lt;BR /&gt;2A, B&lt;BR /&gt;3A, C&lt;BR /&gt;4A, D&lt;BR /&gt;5A, E&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Load ID , NAM as NAME;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;ID, NAM&lt;BR /&gt;6B, A&lt;BR /&gt;7B, B&lt;BR /&gt;8B, X&lt;BR /&gt;]&lt;BR /&gt;where NOT Exists (NAME, NAM)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Can anyone please tell me if it is a must to have the 2 parameters inside exists function to be the same. Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Sharath Panackal&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2019 13:37:02 GMT</pubDate>
    <dc:creator>SharathPanackal</dc:creator>
    <dc:date>2019-09-19T13:37:02Z</dc:date>
    <item>
      <title>Exists Function with 2 parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-Function-with-2-parameters/m-p/1625773#M595672</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Is it mandatory to have same names for the 2 parameters inside exists function in the below example?&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;ID, NAME&lt;BR /&gt;1A, A&lt;BR /&gt;2A, B&lt;BR /&gt;3A, C&lt;BR /&gt;4A, D&lt;BR /&gt;5A, E&lt;BR /&gt;];&lt;BR /&gt;//Load ID , NAM as NAME;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;ID, NAM&lt;BR /&gt;6B, A&lt;BR /&gt;7B, B&lt;BR /&gt;8B, X&lt;BR /&gt;]&lt;BR /&gt;where NOT Exists (NAME, NAM)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;The above query retains the ID value (8B) and somehow removes the NAM value (X) in the resulting table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, if i use same names inside the parameter of Exists (see below code)by renaming the field NAM as NAME in the 2nd LOAD, both (8B) and (X) are not seen in the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;ID, NAME&lt;BR /&gt;1A, A&lt;BR /&gt;2A, B&lt;BR /&gt;3A, C&lt;BR /&gt;4A, D&lt;BR /&gt;5A, E&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Load ID , NAM as NAME;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;ID, NAM&lt;BR /&gt;6B, A&lt;BR /&gt;7B, B&lt;BR /&gt;8B, X&lt;BR /&gt;]&lt;BR /&gt;where NOT Exists (NAME, NAM)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Can anyone please tell me if it is a must to have the 2 parameters inside exists function to be the same. Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Sharath Panackal&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 13:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-Function-with-2-parameters/m-p/1625773#M595672</guid>
      <dc:creator>SharathPanackal</dc:creator>
      <dc:date>2019-09-19T13:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Exists Function with 2 parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-Function-with-2-parameters/m-p/1625819#M595673</link>
      <description>&lt;P&gt;not exactly sure what your results are but assuming you want a single table without duplicate values&lt;/P&gt;&lt;P&gt;use below script approach&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD * INLINE [
ID, NAME
1A, A
2A, B
3A, C
4A, D
5A, E
];

load *
where NOT Exists (NAME)
;
Load ID , NAM as NAME
;
LOAD * INLINE [
ID, NAM
6B, A
7B, B
8B, X
]
;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;result&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/t5/image/serverpage/image-id/19594iB80669345CC861E5/image-size/large?v=1.0&amp;amp;px=-1" border="0" width="370" height="519" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 14:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-Function-with-2-parameters/m-p/1625819#M595673</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-09-19T14:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exists Function with 2 parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-Function-with-2-parameters/m-p/1629769#M595674</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Sharath, did Dilip's post give you what you needed?&amp;nbsp; If so, please be sure to circle back and use the Accept as Solution button on his post to give him credit for the help and to let others know it worked.&amp;nbsp; If you did something different, consider posting that and marking it, and if you are still working on things, leave an update for us.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Brett&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 20:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-Function-with-2-parameters/m-p/1629769#M595674</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-09-30T20:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exists Function with 2 parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-Function-with-2-parameters/m-p/1629771#M595675</link>
      <description>&lt;P&gt;Hi Sarath, I tried both scripts and both versions keeps the '8B' and 'X' values (in the first case 'X' is loaded in the NAM field, not in NAME field)&lt;/P&gt;&lt;P&gt;It's not a must to have both values with the same name in Exists:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/September2018/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Exists.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense/September2018/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Exists.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, if both parameters have the same name you can use the one-parameter version (like &lt;SPAN class="login-bold"&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49412" target="_self"&gt;Dilipranjith&lt;/A&gt;&amp;nbsp;is using in his answer)&lt;/SPAN&gt;, that allows for optimized load when loading from qvd.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 21:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-Function-with-2-parameters/m-p/1629771#M595675</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-09-30T21:06:30Z</dc:date>
    </item>
  </channel>
</rss>

