<?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 how do I use exists() in if.then.else expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-do-I-use-exists-in-if-then-else-expression/m-p/855279#M299791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to conditionally load data based on whether a specific value has already been loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a Where clause I would use:&amp;nbsp; where exists(fieldname, 'value')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF exists(fieldname,'value')&lt;/P&gt;&lt;P&gt;THEN&lt;/P&gt;&lt;P&gt;LOAD ...&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2015 10:40:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-09T10:40:11Z</dc:date>
    <item>
      <title>how do I use exists() in if.then.else expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-I-use-exists-in-if-then-else-expression/m-p/855279#M299791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to conditionally load data based on whether a specific value has already been loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a Where clause I would use:&amp;nbsp; where exists(fieldname, 'value')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF exists(fieldname,'value')&lt;/P&gt;&lt;P&gt;THEN&lt;/P&gt;&lt;P&gt;LOAD ...&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 10:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-I-use-exists-in-if-then-else-expression/m-p/855279#M299791</guid>
      <dc:creator />
      <dc:date>2015-06-09T10:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: how do I use exists() in if.then.else expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-I-use-exists-in-if-then-else-expression/m-p/855280#M299792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;exists must be used in a Load instruction because it check every row, to execute your condition you shoul have to load the table with a where condition on that value, then if there are rows (so the value exists) you can do the following Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I've been clear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-I-use-exists-in-if-then-else-expression/m-p/855280#M299792</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-06-09T15:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: how do I use exists() in if.then.else expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-I-use-exists-in-if-then-else-expression/m-p/855281#M299793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems a complicated method.&amp;nbsp; Is there a succinct way to phrase it?&amp;nbsp; Ideally I want to set a variable on the existence or not of the value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-I-use-exists-in-if-then-else-expression/m-p/855281#M299793</guid>
      <dc:creator />
      <dc:date>2015-06-09T15:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: how do I use exists() in if.then.else expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-I-use-exists-in-if-then-else-expression/m-p/855282#M299794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right but you know if a field has a certain value only when you load it and the quickest way is to load the table for that value ... I think there are not other options&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-I-use-exists-in-if-then-else-expression/m-p/855282#M299794</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-06-09T15:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: how do I use exists() in if.then.else expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-I-use-exists-in-if-then-else-expression/m-p/855283#M299795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to load only rows when the condition was true, you don´t have to use &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF exists(fieldname,'value')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;THEN&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD ...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ENDIF&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You have to use&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD .....&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM (OR RESIDENT....)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE fieldname='value';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-I-use-exists-in-if-then-else-expression/m-p/855283#M299795</guid>
      <dc:creator>jmmayoral3</dc:creator>
      <dc:date>2015-06-09T15:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: how do I use exists() in if.then.else expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-I-use-exists-in-if-then-else-expression/m-p/855284#M299796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Alessandro.&amp;nbsp; I am still learning which logic is applicable where!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-I-use-exists-in-if-then-else-expression/m-p/855284#M299796</guid>
      <dc:creator />
      <dc:date>2015-06-09T15:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: how do I use exists() in if.then.else expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-I-use-exists-in-if-then-else-expression/m-p/855285#M299797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter!&lt;/P&gt;&lt;P&gt;I met a similar situation on my last job, where I need to load for several customers with different data (especially in area code and sales agents) and I solved this way:&lt;/P&gt;&lt;P&gt;I set a couple of Variables - generic - and then I just use IF condition for uploading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;IF&lt;/SPAN&gt;(&lt;SPAN style="color: #993366;"&gt;vSetProvince=P&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;TableFact:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD&lt;/SPAN&gt; &lt;SPAN style="color: #993366;"&gt;data1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993366;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993366;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data3,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;[File Qvd\FactsTable1.qvd]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;ELSE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;TableFact2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #0000ff; font-size: 13.3333330154419px;"&gt;LOAD &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em; color: #0000ff;"&gt;data1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #993366;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #993366;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data3,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;[File Qvd\FactsTable2.qvd]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hope this could help!&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;BR&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;Alex&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-I-use-exists-in-if-then-else-expression/m-p/855285#M299797</guid>
      <dc:creator>marleygt</dc:creator>
      <dc:date>2015-06-09T15:42:56Z</dc:date>
    </item>
  </channel>
</rss>

