<?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 and Notexists function, can it be used in the same calculated dimension on the same field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exists-and-Notexists-function-can-it-be-used-in-the-same/m-p/244645#M1185355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think i may have a syntax errrow for my below formula, which is attempting to evaluate my shipTo Customer number for the current year $(CYear) and the previous year $(PYear) to determine if the customer number is new or existing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(Exists(s$(CYear)[ShipTo Customer]) and Notexists(s$(PYear)[ShipTo Customer]), 'New','Existing') &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2011 00:09:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-13T00:09:16Z</dc:date>
    <item>
      <title>Exists and Notexists function, can it be used in the same calculated dimension on the same field</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-and-Notexists-function-can-it-be-used-in-the-same/m-p/244645#M1185355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think i may have a syntax errrow for my below formula, which is attempting to evaluate my shipTo Customer number for the current year $(CYear) and the previous year $(PYear) to determine if the customer number is new or existing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(Exists(s$(CYear)[ShipTo Customer]) and Notexists(s$(PYear)[ShipTo Customer]), 'New','Existing') &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 00:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-and-Notexists-function-can-it-be-used-in-the-same/m-p/244645#M1185355</guid>
      <dc:creator />
      <dc:date>2011-10-13T00:09:16Z</dc:date>
    </item>
    <item>
      <title>Exists and Notexists function, can it be used in the same calculated dimension on the same field</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-and-Notexists-function-can-it-be-used-in-the-same/m-p/244646#M1185356</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;There ar no function called Notexists in QV. But you can use the logical operator Not befor Exists...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you got the function syntax for Exists wrong...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you got the New/Existing check working in the other thread...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but yes you can have it like this &lt;/P&gt;&lt;P&gt;if(exists([Shipto Customers],'123456') and not exists ([Shipto Customers],'129897'),'True','False')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Oct 2011 14:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-and-Notexists-function-can-it-be-used-in-the-same/m-p/244646#M1185356</guid>
      <dc:creator />
      <dc:date>2011-10-15T14:08:20Z</dc:date>
    </item>
  </channel>
</rss>

