<?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: Load Script - If/Then in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Script-If-Then/m-p/844284#M296534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If these are really numbers you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Alt(ShipmentNumber, ReferenceNumber) as DeliveryNumber&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2015 14:15:49 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2015-06-17T14:15:49Z</dc:date>
    <item>
      <title>Load Script - If/Then</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-If-Then/m-p/844282#M296532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 spreadsheets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spreadsheet 1 Delivery number could appear in Fields ShipmentNumber or ReferenceNumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the script to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no Shipment Number, I want it to put the reference number in that field.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (ShipmentNumber is null, ShipmentNumber, ReferenceNumber) as DeliveryNumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried a few different scripts, but can't seem to get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even tried it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( [&lt;SPAN style="font-size: 13.3333330154419px;"&gt;ShipmentNumber &lt;/SPAN&gt;] &amp;gt; '1', [ShipmentNumber], [&lt;SPAN style="font-size: 13.3333330154419px;"&gt;ReferenceNumber&lt;/SPAN&gt;]) as DeliveryNumber&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 14:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-If-Then/m-p/844282#M296532</guid>
      <dc:creator />
      <dc:date>2015-06-17T14:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script - If/Then</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-If-Then/m-p/844283#M296533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In qlik the syntax is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (isnull(ShipmentNumber), ShipmentNumber, ReferenceNumber) as DeliveryNumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherways if you are loading with a Select and it doesn't work it means that the field is not null (maybe is filled with blank) so add to your condition something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (ShipmentNumber is null or trim(ShipmentNumber)='', ShipmentNumber, ReferenceNumber) as DeliveryNumber.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 14:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-If-Then/m-p/844283#M296533</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-06-17T14:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script - If/Then</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-If-Then/m-p/844284#M296534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If these are really numbers you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Alt(ShipmentNumber, ReferenceNumber) as DeliveryNumber&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 14:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-If-Then/m-p/844284#M296534</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-06-17T14:15:49Z</dc:date>
    </item>
  </channel>
</rss>

