<?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: Creating a Calculated date field in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-date-field-in-Script/m-p/799491#M1035063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this load script,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ClaimID as ClaimID2.11,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IncidentDate as IncidentDate2.11,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Notificationdate as Notificationdate2.11,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IncidentDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Notificationdate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Date(Notificationdate, 'DD/MMM/YY') - Date(IncidentDate, 'DD/MMM/YY') as DaysInBetween&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;S&gt;&lt;/S&gt;&lt;/P&gt;&lt;P&gt;(txt, utf8, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; You can customize date format as your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write 'DD-MM-YYYY' instead of 'DD/MMM/YY'&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Write 'DD/MM/YYYY' instead of 'DD/MMM/YY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jan 2015 16:40:50 GMT</pubDate>
    <dc:creator>engishfaque</dc:creator>
    <dc:date>2015-01-15T16:40:50Z</dc:date>
    <item>
      <title>Creating a Calculated date field in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-date-field-in-Script/m-p/799488#M1035060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is probably an easy question and i will kick myself for asking but here it goes anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two date fields which are being loaded into my script as per below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ClaimID as ClaimID2.11, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IncidentDate as IncidentDate2.11,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Notificationdate as Notificationdate2.11,&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;S&gt;&lt;/S&gt;&lt;/P&gt;&lt;P&gt;(txt, utf8, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pretty basic right...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I basically want to add a calculated field into the script which is the Notificationdate - IncidentDate&amp;nbsp; so i can find the days in-between.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will then use this calculated field as a slider on dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 16:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-date-field-in-Script/m-p/799488#M1035060</guid>
      <dc:creator />
      <dc:date>2015-01-15T16:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Calculated date field in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-date-field-in-Script/m-p/799489#M1035061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a date has its numerical representation, simpy doing num(mydate) you obtain a number so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ClaimID as ClaimID2.11,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IncidentDate as IncidentDate2.11,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Notificationdate as Notificationdate2.11,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Num(IncidentDate )-Num(Notificationdate )) as Delta&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;S&gt;&lt;/S&gt;&lt;/P&gt;&lt;P&gt;(txt, utf8, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 16:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-date-field-in-Script/m-p/799489#M1035061</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-15T16:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Calculated date field in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-date-field-in-Script/m-p/799490#M1035062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14213398708316128" jivemacro_uid="_14213398708316128"&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD ClaimID as ClaimID2.11,&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IncidentDate as IncidentDate2.11,&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Notificationdate as Notificationdate2.11,&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Notificationdate - IncidentDate) as Interval&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;S&gt;&lt;/S&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(txt, utf8, embedded labels, delimiter is '\t', msq);&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 16:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-date-field-in-Script/m-p/799490#M1035062</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-01-15T16:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Calculated date field in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-date-field-in-Script/m-p/799491#M1035063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this load script,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ClaimID as ClaimID2.11,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IncidentDate as IncidentDate2.11,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Notificationdate as Notificationdate2.11,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IncidentDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Notificationdate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Date(Notificationdate, 'DD/MMM/YY') - Date(IncidentDate, 'DD/MMM/YY') as DaysInBetween&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;S&gt;&lt;/S&gt;&lt;/P&gt;&lt;P&gt;(txt, utf8, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; You can customize date format as your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write 'DD-MM-YYYY' instead of 'DD/MMM/YY'&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Write 'DD/MM/YYYY' instead of 'DD/MMM/YY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 16:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-date-field-in-Script/m-p/799491#M1035063</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-01-15T16:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Calculated date field in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-date-field-in-Script/m-p/799492#M1035064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it's real date fields (no timestamps, no time part), then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="_jivemacro_uid_14213400884327679 jive_text_macro jive_macro_code" jivemacro_uid="_14213400884327679"&gt;
&lt;P&gt;LOAD ClaimID as ClaimID2.11, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IncidentDate as IncidentDate2.11,&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Notificationdate as Notificationdate2.11, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Notificationdate - IncidentDate as daysinbetween&lt;/P&gt;
&lt;P&gt;FROM &lt;/P&gt;
&lt;P&gt;&lt;S&gt; &lt;/S&gt;&lt;/P&gt;
&lt;P&gt;(txt, utf8, embedded labels, delimiter is '\t', msq)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will be enough&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 16:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-date-field-in-Script/m-p/799492#M1035064</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-01-15T16:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Calculated date field in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-date-field-in-Script/m-p/799493#M1035065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all... They all work.... I found my answer as soon as i posted .... typical...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NetWorkDays(IncidentDate,Notificationdate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 16:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-date-field-in-Script/m-p/799493#M1035065</guid>
      <dc:creator />
      <dc:date>2015-01-15T16:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Calculated date field in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-date-field-in-Script/m-p/799494#M1035066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone please tell me how to do this if I have a condition that must be met in another import field, from same table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 10:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-date-field-in-Script/m-p/799494#M1035066</guid>
      <dc:creator />
      <dc:date>2015-03-20T10:14:52Z</dc:date>
    </item>
  </channel>
</rss>

