<?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: Calculating Delay between 2 dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748552#M664481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Send me your email address&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jan 2015 14:44:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-08T14:44:07Z</dc:date>
    <item>
      <title>Calculating Delay between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748546#M664466</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;Please help me out in writing the expression or at script level.&lt;/P&gt;&lt;P&gt;I need to find the delay in no days.&lt;/P&gt;&lt;P&gt;Based on&lt;/P&gt;&lt;P&gt;1.1st Occurrence date of &lt;SPAN style="color: #ff9900;"&gt;Forecast date&lt;/SPAN&gt; and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Last Occurrence date of &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; color: #ff9900;"&gt;Event Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; and both &lt;/SPAN&gt;should be Greater than &lt;SPAN style="color: #ffcc99; font-size: 13.3333330154419px;"&gt;Creation Date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2. Decision should be &lt;SPAN style="color: #99cc00;"&gt;Pass.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px;"&gt;3. Also should calculate if Forecast Date of the &lt;/SPAN&gt;&lt;SPAN style="color: #99ccff;"&gt;Stage&lt;/SPAN&gt; &lt;SPAN style="color: #333333;"&gt;should be greater than previous pass Event Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Example - While calculating Phase 2 Col 12 Forecast date is Greater than Col 9 Event date and it is passed at Phase 1 on 10/7/2014 &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="534" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#FFFF99&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="width: 589px; height: 526px;" width="587"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; width: 1%; background-color: #6690bc;"&gt;&lt;SPAN style="color: #ffffff;"&gt;S.no&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; width: 3%; background-color: #6690bc;"&gt;&lt;SPAN style="color: #ffffff;"&gt;ID&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: #6690bc;"&gt;&lt;SPAN style="color: #ffffff;"&gt;Name&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; width: 12%; background-color: #6690bc;"&gt;&lt;SPAN style="color: #ffffff;"&gt;Stage&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; width: 12%; background-color: #6690bc;"&gt;&lt;SPAN style="color: #ffffff;"&gt;Forecast Date&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: #6690bc;"&gt;&lt;SPAN style="color: #ffffff;"&gt;Event Date&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: #6690bc;"&gt;&lt;SPAN style="color: #ffffff;"&gt;Decision&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="width: 15%; color: #ffffff; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: #6690bc;"&gt;&lt;SPAN style="color: #ffffff;"&gt;Creation Date&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; width: 6%; background-color: #6690bc;"&gt;&lt;SPAN style="color: #ffffff;"&gt;Delay In No of Days&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;1&lt;/TD&gt;&lt;TD class="xl112" style="border-left-style: none;" width="64"&gt;61&lt;/TD&gt;&lt;TD class="xl112" style="border-left-style: none; width: 3%;" width="421"&gt;PV&lt;/TD&gt;&lt;TD class="xl112" style="border-left-style: none; background-color: #99ccff;" width="127"&gt;Phase 1&lt;/TD&gt;&lt;TD class="xl113" style="border-left-style: none; background-color: #ff9900;" width="129"&gt;9/12/2014&lt;/TD&gt;&lt;TD class="xl113" style="border-left: none; width: 68pt;" width="91"&gt;&lt;/TD&gt;&lt;TD class="xl112" style="border-left: none; width: 63pt;" width="84"&gt;&lt;/TD&gt;&lt;TD class="xl113" style="border-left-style: none; background-color: #ffcc99;" width="94"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl112" style="border-left-style: none;" width="64"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;2&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;PV&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;Phase 1&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;10/5/2014&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;3&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;Phase 1&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;10/9/2013&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;4&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;Phase 1&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;11/13/2014&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;5&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;Phase 1&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;10/3/2014&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;6&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;Phase 1&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;9/3/2014&lt;/TD&gt;&lt;TD class="xl116" style="border-top: none; border-left: none;"&gt;Pass&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl116" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;7&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;Phase 1&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;9/3/2014&lt;/TD&gt;&lt;TD class="xl117" style="border-top: none; border-left: none;"&gt;Cancelled&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl116" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;8&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;Phase 1&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;10/7/2014&lt;/TD&gt;&lt;TD class="xl116" style="border-top: none; border-left: none;"&gt;Pass&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl116" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;9&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;Phase 1&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl115" style="border-top-style: none; border-left-style: none; background-color: #ff9900;"&gt;10/7/2014&lt;/TD&gt;&lt;TD class="xl116" style="border-top-style: none; border-left-style: none; background-color: #99cc00;"&gt;Pass&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: top; padding: 0px; background-color: #ff9900;"&gt;&lt;SPAN style="color: #575757;"&gt;25&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;10&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;Phase 2&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;10/10/2014&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;11&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;Phase 2&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;10/5/2014&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;12&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl112" style="border-top-style: none; border-left-style: none; background-color: #99ccff;"&gt;Phase 2&lt;/TD&gt;&lt;TD class="xl113" style="border-top-style: none; border-left-style: none; background-color: #ff9900;"&gt;10/10/2014&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;13&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;Phase 2&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;10/8/2014&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;14&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;Phase 2&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;9/10/2014&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;15&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;Phase 2&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;10/9/2014&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl113" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl112" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;16&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;Phase 2&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;10/7/2014&lt;/TD&gt;&lt;TD class="xl116" style="border-top: none; border-left: none;"&gt;Pass&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl116" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;17&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;Phase 2&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;11/11/2014&lt;/TD&gt;&lt;TD class="xl116" style="border-top: none; border-left: none;"&gt;Pass&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl116" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: transparent;"&gt;18&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;PV&lt;/TD&gt;&lt;TD class="xl114" style="border-top: none; border-left: none;"&gt;Phase 2&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl115" style="border-top-style: none; border-left-style: none; background-color: #ff9900;"&gt;11/17/2014&lt;/TD&gt;&lt;TD class="xl116" style="border-top-style: none; border-left-style: none; background-color: #99cc00;"&gt;Pass&lt;/TD&gt;&lt;TD class="xl115" style="border-top: none; border-left: none;"&gt;9/1/2014&lt;/TD&gt;&lt;TD class="xl116" style="border-top-style: none; border-left-style: none; background-color: #ff9900;"&gt;38&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vamsi P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 14:53:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748546#M664466</guid>
      <dc:creator />
      <dc:date>2015-01-07T14:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Delay between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748547#M664468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Vamsi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order to calculate the delays you can use floor function like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=floor(date 1)- floor(date 2) as [delay in no of days]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 16:03:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748547#M664468</guid>
      <dc:creator>saurabh5</dc:creator>
      <dc:date>2015-01-07T16:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Delay between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748548#M664470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou saurabh.. &lt;/P&gt;&lt;P&gt;I tried it but not working...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 05:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748548#M664470</guid>
      <dc:creator />
      <dc:date>2015-01-08T05:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Delay between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748549#M664472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load Stage,Date#(ForecaseDt,'MM/DD/YYYY') As ForecaseDt,Date#(EvntDt,'MM/DD/YYYY') As EvntDt,Decision,Date#(CreationDt,'MM/DD/YYYY') As CreationDt,AutoNumber(RecNo(),Stage) As RecNo Inline [&lt;/P&gt;&lt;P&gt;Stage,ForecaseDt,EvntDt,Decision,CreationDt&lt;/P&gt;&lt;P&gt;Phase 1,9/12/2014,,,9/1/2014&lt;/P&gt;&lt;P&gt;Phase 1,10/3/2014,,,9/1/2014&lt;/P&gt;&lt;P&gt;Phase 1,,9/3/2014,Pass,9/1/2014&lt;/P&gt;&lt;P&gt;Phase 1,,10/7/2014,Pass,9/1/2014&lt;/P&gt;&lt;P&gt;Phase 2,10/10/2014,,,9/1/2014&lt;/P&gt;&lt;P&gt;Phase 2,9/10/2014,,,9/1/2014&lt;/P&gt;&lt;P&gt;Phase 2,,10/7/2014,Pass,9/1/2014&lt;/P&gt;&lt;P&gt;Phase 2,,11/17/2014,Pass,9/1/2014 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Stage,If( FirstSortedValue(ForecaseDt,RecNo) &amp;gt; FirstSortedValue(CreationDt,RecNo) And FirstSortedValue(EvntDt,-RecNo) &amp;gt; FirstSortedValue(CreationDt,RecNo)&lt;/P&gt;&lt;P&gt;And FirstSortedValue(Decision,-RecNo) ='Pass',Interval(FirstSortedValue(EvntDt,-RecNo)-FirstSortedValue(ForecaseDt,RecNo),'d')) Resident Temp Group By Stage;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 06:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748549#M664472</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-01-08T06:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Delay between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748550#M664478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Anbu its not working.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 13:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748550#M664478</guid>
      <dc:creator />
      <dc:date>2015-01-08T13:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Delay between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748551#M664480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post sample data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 14:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748551#M664480</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-01-08T14:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Delay between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748552#M664481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Send me your email address&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 14:44:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748552#M664481</guid>
      <dc:creator />
      <dc:date>2015-01-08T14:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Delay between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748553#M664482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post sample data in excel file. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 15:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748553#M664482</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-01-08T15:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Delay between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748554#M664486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached to original post&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 15:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748554#M664486</guid>
      <dc:creator />
      <dc:date>2015-01-08T15:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Delay between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748555#M664489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load *,AutoNumber(RecNo(),[Project ID]&amp;amp;[Event Phase Review Name]) As RecNo;&lt;/P&gt;&lt;P&gt;LOAD sno,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BU,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Project ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Project Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Event Phase Review Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Forecast date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Event Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Project Closed],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Change-to Decision],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Project Creation Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [System Current Phase ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Phase Slippage],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Refference&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[smp2.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join(Temp)&lt;/P&gt;&lt;P&gt;Load [Project ID],[Event Phase Review Name],Max(RecNo) As RecNo,If( FirstSortedValue([Forecast date],RecNo) &amp;gt; FirstSortedValue([Project Creation Date],RecNo) And FirstSortedValue([Event Date],-RecNo) &amp;gt; FirstSortedValue([Project Creation Date],RecNo)&lt;/P&gt;&lt;P&gt;And FirstSortedValue([Change-to Decision],-RecNo) ='Pass',Interval(FirstSortedValue([Event Date],-RecNo)-FirstSortedValue([Forecast date],RecNo),'d')) Resident Temp Group By [Project ID],[Event Phase Review Name];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 16:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748555#M664489</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-01-08T16:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Delay between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748556#M664490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou anbu , &lt;/P&gt;&lt;P&gt;Actually i edited the excel and posted here. in the application the fields are in different qvs source files,&lt;/P&gt;&lt;P&gt;how to load the specific fields into a single table we required from that different QVS files,&lt;/P&gt;&lt;P&gt;which method Resident load or apply map will work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 18:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748556#M664490</guid>
      <dc:creator />
      <dc:date>2015-01-08T18:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Delay between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748557#M664493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have key, value pair then use Apply map else join different QVS sources in script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 03:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748557#M664493</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-01-09T03:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Delay between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748558#M664494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anbu,&lt;/P&gt;&lt;P&gt;I have a error while loading the data. Can u suggest me for the above code. which i executed today as the result is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/////////////////////////// Transformation 1&lt;/P&gt;&lt;P&gt;[SSG Slippage]:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ProjectID_SYS,&lt;/P&gt;&lt;P&gt;[Event Type],&lt;/P&gt;&lt;P&gt;[Event Phase Review Name] as SSG_Event_Phase_Review_Name,&lt;/P&gt;&lt;P&gt;[Change-to Decision] as SSG_Change_to_Decision,&lt;/P&gt;&lt;P&gt;[Event Date],&lt;/P&gt;&lt;P&gt;If([Event Type] = 'Phase Review Date Change', [Event Type], Null()) as SSG_Event_Type ,&lt;/P&gt;&lt;P&gt;date([Change-to Date],'MM/DD/YYYY') as SSG_Forecast_Date,&lt;/P&gt;&lt;P&gt;if(wildmatch([Event Phase Review Name],'*Phase*'),date([Event Date],'MM/DD/YYYY')) as SSG_Event_Date&lt;/P&gt;&lt;P&gt;Resident [Project History];&lt;/P&gt;&lt;P&gt;Left join&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ProjectID_SYS,&lt;/P&gt;&lt;P&gt;[Project ID] as SSG_PRJ_ID,&lt;/P&gt;&lt;P&gt;[Project Creation Date] as SSG_PRJ_Creation_Date&lt;/P&gt;&lt;P&gt;Resident [Project Details];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/////////////////////////// Transformation 2&lt;/P&gt;&lt;P&gt;SSG_Slippage_1:&lt;/P&gt;&lt;P&gt;Load *,AutoNumber(RecNo(),SSG_PRJ_ID&amp;amp;SSG_Event_Phase_Review_Name) As RecNo&lt;/P&gt;&lt;P&gt;Resident [SSG Slippage];&lt;/P&gt;&lt;P&gt;Join (SSG_Slippage_1)&lt;/P&gt;&lt;P&gt;Load SSG_PRJ_ID,SSG_Event_Phase_Review_Name,Max(RecNo) As RecNo,If( FirstSortedValue(SSG_Forecast_Date,RecNo) &amp;gt; FirstSortedValue(SSG_PRJ_Creation_Date,RecNo)&lt;/P&gt;&lt;P&gt;And FirstSortedValue(SSG_Event_Date,-RecNo) &amp;gt; FirstSortedValue(SSG_PRJ_Creation_Date,RecNo)&lt;/P&gt;&lt;P&gt;And FirstSortedValue(SSG_Change_to_Decision,-RecNo) ='Pass',Interval(FirstSortedValue(SSG_Event_Date,-RecNo)-FirstSortedValue(SSG_Forecast_Date,RecNo),'d'))&lt;/P&gt;&lt;P&gt;Resident [SSG Slippage]&lt;/P&gt;&lt;P&gt;Group By SSG_PRJ_ID,SSG_Event_Phase_Review_Name;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="75923" class="jive-image image-2" height="328" src="https://community.qlik.com/legacyfs/online/75923_pastedImage_5.png" style="width: 782.153846153846px; height: 328px;" width="782" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error showing as RecNo Not found&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="75892" class="image-1 jive-image" height="276" src="https://community.qlik.com/legacyfs/online/75892_pastedImage_3.png" style="width: 596.236933797909px; height: 276px;" width="596" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 13:15:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748558#M664494</guid>
      <dc:creator />
      <dc:date>2015-01-22T13:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Delay between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748559#M664496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RecNo is not present in table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[SSG Slippage]. So you got that error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add this to table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[SSG Slippage]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;AutoNumber(RecNo(),SSG_PRJ_ID&amp;amp;SSG_Event_Phase_Review_Name) As RecNo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Why do you have two tables &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[SSG Slippage] and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[SSG Slippage_1] with so many common fields? This will generate synthetic keys. You could have joined result of Firstsortedvalue() to table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[SSG Slippage] directly like my script&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 15:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Delay-between-2-dates/m-p/748559#M664496</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-01-22T15:57:12Z</dc:date>
    </item>
  </channel>
</rss>

