<?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 Struggling with IF statement in LOAD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Struggling-with-IF-statement-in-LOAD/m-p/245037#M1205859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Heym&lt;/P&gt;&lt;P&gt;Do you want to try:&lt;/P&gt;&lt;P&gt;IF(ISNULL([owner_last_name]), [owner_last_name],([owner_last_name] &amp;amp; ', ' &amp;amp; [owner_first_name])) as OwnerFullName,&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;IF(ISNULL([owner_last_name]), [owner_last_name] as OwnerFullName ,([owner_last_name] &amp;amp; ', ' &amp;amp; [owner_first_name]) as OwnerFullName]),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Feb 2010 22:16:17 GMT</pubDate>
    <dc:creator>boorgura</dc:creator>
    <dc:date>2010-02-25T22:16:17Z</dc:date>
    <item>
      <title>Struggling with IF statement in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Struggling-with-IF-statement-in-LOAD/m-p/245036#M1205856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A schoolboy error i'm sure, but i've checked the syntax and am now well and truly stuck&lt;/P&gt;&lt;P&gt;I'm using an IF statement to load one value for a field if the field is NULL, and another if it is populated. I get an error though saying&lt;/P&gt;&lt;P&gt;Error in expression:&lt;BR /&gt;')' expected&lt;/P&gt;&lt;P&gt;Can anyone advise - thanks?&lt;/P&gt;&lt;P&gt;Here's the code.&lt;/P&gt;&lt;P&gt;Extras:&lt;/P&gt;&lt;P&gt;LOAD Chg_ID,&lt;BR /&gt;Chg_Desc,&lt;BR /&gt;Chg_Just,&lt;BR /&gt;([creator_last_name] &amp;amp; ', ' &amp;amp; [creator_first_name]) as CreatorFullName,&lt;BR /&gt;([req_last_name] &amp;amp; ', ' &amp;amp; [req_first_name]) as ReqFullName,&lt;BR /&gt;IF(ISNULL([owner_last_name]), [owner_last_name] as OwnerFullName ,([owner_last_name] &amp;amp; ', ' &amp;amp; [owner_first_name]) as OwnerFullName]),&lt;BR /&gt;([assignee_last_name] &amp;amp; ', ' &amp;amp; [assignee_first_name]) as AssigneeFullName;&lt;/P&gt;&lt;P&gt;SQL SELECT a.id as Chg_ID,a.description as Chg_Desc, a.justification as Chg_Just, b.last_name as creator_last_name,&lt;BR /&gt;b.first_name as creator_first_name, c.last_name as req_last_name,&lt;BR /&gt;c.first_name as req_first_name, d.last_name as owner_last_name,&lt;BR /&gt;d.first_name as owner_first_name, e.last_name as assignee_last_name,&lt;BR /&gt;e.first_name as assignee_first_name&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;chg a,&lt;BR /&gt;ca_contact b,&lt;BR /&gt;ca_contact c,&lt;BR /&gt;ca_contact d,&lt;BR /&gt;ca_contact e&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;a.log_agent *= b.contact_uuid&lt;BR /&gt;AND&lt;BR /&gt;a.requestor *= c.contact_uuid&lt;BR /&gt;AND&lt;BR /&gt;a.z_rfc_owner *=d.contact_uuid&lt;BR /&gt;AND&lt;BR /&gt;a.assignee *=e.contact_uuid;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 21:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Struggling-with-IF-statement-in-LOAD/m-p/245036#M1205856</guid>
      <dc:creator />
      <dc:date>2010-02-25T21:44:31Z</dc:date>
    </item>
    <item>
      <title>Struggling with IF statement in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Struggling-with-IF-statement-in-LOAD/m-p/245037#M1205859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Heym&lt;/P&gt;&lt;P&gt;Do you want to try:&lt;/P&gt;&lt;P&gt;IF(ISNULL([owner_last_name]), [owner_last_name],([owner_last_name] &amp;amp; ', ' &amp;amp; [owner_first_name])) as OwnerFullName,&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;IF(ISNULL([owner_last_name]), [owner_last_name] as OwnerFullName ,([owner_last_name] &amp;amp; ', ' &amp;amp; [owner_first_name]) as OwnerFullName]),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 22:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Struggling-with-IF-statement-in-LOAD/m-p/245037#M1205859</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-02-25T22:16:17Z</dc:date>
    </item>
    <item>
      <title>Struggling with IF statement in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Struggling-with-IF-statement-in-LOAD/m-p/245038#M1205863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works perfectly, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 22:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Struggling-with-IF-statement-in-LOAD/m-p/245038#M1205863</guid>
      <dc:creator />
      <dc:date>2010-02-25T22:36:08Z</dc:date>
    </item>
  </channel>
</rss>

