<?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: Exists Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exists-Question/m-p/707198#M671475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Antonio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like someone to confirm your finding on this, because the expression itself is very simple and so the output is not what I expected to see. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2014 13:59:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-15T13:59:17Z</dc:date>
    <item>
      <title>Exists Question</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-Question/m-p/707196#M671472</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 my load statement I have the following conditional where clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE exists(PropertyID) and exists(AccommodationTypeID,AccomTypeID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of applying during load, I want to create a flag for this condition, using the following expression in the load field section&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(exists(PropertyID) and exists(AccommodationTypeID,AccomTypeID),1,0) as PropertyIDFLAG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PropertyIDFLAG does not flag the same fields as that of my conditional where. Could someone explain why&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Oct 2014 14:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-Question/m-p/707196#M671472</guid>
      <dc:creator />
      <dc:date>2014-10-11T14:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exists Question</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-Question/m-p/707197#M671474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Byron,&lt;/P&gt;&lt;P&gt;I think that If() works on the already&amp;nbsp; records loaded at the moment, in a different way Where.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Oct 2014 15:29:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-Question/m-p/707197#M671474</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2014-10-11T15:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exists Question</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-Question/m-p/707198#M671475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Antonio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like someone to confirm your finding on this, because the expression itself is very simple and so the output is not what I expected to see. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 13:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-Question/m-p/707198#M671475</guid>
      <dc:creator />
      <dc:date>2014-10-15T13:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Exists Question</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-Question/m-p/707199#M671476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If PropertyID is already loaded, then Flag is set to 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;PropertyID&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;Load *, If(Exists(PropertyID),1,0) As Flag Inline [&lt;/P&gt;&lt;P&gt;PropertyID&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;5];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 14:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-Question/m-p/707199#M671476</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-15T14:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Exists Question</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-Question/m-p/707200#M671478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Byron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the load statement you load fields within values exists 1 and exists 2.&lt;/P&gt;&lt;P&gt;But they don't have to be in the same line.&lt;/P&gt;&lt;P&gt;In the Flagstatement the condition is checked in each line and the flag is only set if the flags exists in both fields.&lt;/P&gt;&lt;P&gt;For same result you need an or, I think&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 14:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-Question/m-p/707200#M671478</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2014-10-15T14:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exists Question</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-Question/m-p/707201#M671479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried the or approach and that did not work either. I will give anbu's suggestion a try even though I am doing this on the main load, not a resident but will create a resident load to test this approach. I find it odd that in the exists clause it handles the expression exactly like I want but as soon as I load it as a calculated field it does not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will reply as soon as I have checked both responses&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 14:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-Question/m-p/707201#M671479</guid>
      <dc:creator />
      <dc:date>2014-10-21T14:11:40Z</dc:date>
    </item>
  </channel>
</rss>

