<?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 in load script with several fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-in-load-script-with-several-fields/m-p/444359#M165693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unlikely I don't have common fields between this two tables. I can't join them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2012 07:55:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-24T07:55:03Z</dc:date>
    <item>
      <title>if in load script with several fields</title>
      <link>https://community.qlik.com/t5/QlikView/if-in-load-script-with-several-fields/m-p/444357#M165691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 tables ( A and B ). In the table A there is a date field "date1". In the table B there is another date field "date2".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need, in the load script, to calculate an integer field that is the working days from date1 to date 2 or from date2 to date1,&lt;/P&gt;&lt;P&gt;I dont know which is the smallest date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to put an if &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;/P&gt;&lt;P&gt;Table_B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select&lt;/P&gt;&lt;P&gt;A,&lt;/P&gt;&lt;P&gt;B,&lt;/P&gt;&lt;P&gt;Date2&lt;/P&gt;&lt;P&gt;FROM Table_from_system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;If( Date1&amp;lt;Date2,NetWorkDays(Date1, Date2),'-' &amp;amp; NetWorkDays(Date2,Date1)) as Delay;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But clearly doesn't work because the system doesn't find the Date1 Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 14:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-in-load-script-with-several-fields/m-p/444357#M165691</guid>
      <dc:creator />
      <dc:date>2012-10-23T14:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: if in load script with several fields</title>
      <link>https://community.qlik.com/t5/QlikView/if-in-load-script-with-several-fields/m-p/444358#M165692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You first need to join (or concatenate) table A and B. Then you can use the joined table for your calculation since it will then contain both Date1 and Date2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 14:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-in-load-script-with-several-fields/m-p/444358#M165692</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-23T14:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: if in load script with several fields</title>
      <link>https://community.qlik.com/t5/QlikView/if-in-load-script-with-several-fields/m-p/444359#M165693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unlikely I don't have common fields between this two tables. I can't join them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 07:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-in-load-script-with-several-fields/m-p/444359#M165693</guid>
      <dc:creator />
      <dc:date>2012-10-24T07:55:03Z</dc:date>
    </item>
  </channel>
</rss>

