<?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: IF statement in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-statement-in-the-script/m-p/783030#M662840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD yourOtherFields,&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;STRONG&gt;Alt([Name A], [Name B]) as NewColumn&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resident/From XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would work in your situation where only one or the other will have a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2015 12:54:37 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-03-11T12:54:37Z</dc:date>
    <item>
      <title>IF statement in the script</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-in-the-script/m-p/783029#M662839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to properly wright the script which will create new column and add data as followed: check 2 columns ([name A] and [name B] - ALWAYS only one of them might have data and NEVER both, sometimes both columns might be empty) and add it to created new column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure it is simple IF statement, but I am not sure how to check if field is empy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Andrzej&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 12:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-in-the-script/m-p/783029#M662839</guid>
      <dc:creator />
      <dc:date>2015-03-11T12:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement in the script</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-in-the-script/m-p/783030#M662840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD yourOtherFields,&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;STRONG&gt;Alt([Name A], [Name B]) as NewColumn&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resident/From XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would work in your situation where only one or the other will have a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 12:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-in-the-script/m-p/783030#M662840</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-11T12:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement in the script</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-in-the-script/m-p/783031#M662841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or the alternative if the above doesn't work would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(IsNull([Name A]), [Name B], [Name A]) as NewColumn&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 12:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-in-the-script/m-p/783031#M662841</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-11T12:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement in the script</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-in-the-script/m-p/783032#M662842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first solution didn't work for me...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 12:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-in-the-script/m-p/783032#M662842</guid>
      <dc:creator />
      <dc:date>2015-03-11T12:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement in the script</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-in-the-script/m-p/783033#M662843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed the second solution a little but basicaly "IsNull" this is what i was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;not&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;isNull&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NameA&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NameA&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;not&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NameB&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NameB&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[New Name]&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;, &lt;/SPAN&gt;&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="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 13:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-in-the-script/m-p/783033#M662843</guid>
      <dc:creator />
      <dc:date>2015-03-11T13:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement in the script</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-in-the-script/m-p/783034#M662844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess the second one worked then, since you marked it as a correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 13:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-in-the-script/m-p/783034#M662844</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-11T13:04:30Z</dc:date>
    </item>
  </channel>
</rss>

