<?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: Interval function with date field not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Interval-function-with-date-field-not-working/m-p/1812606#M1212739</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17306"&gt;@ashmitp869&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on ur screenshot, both&amp;nbsp;&lt;SPAN&gt;Phase_End_Date &amp;amp;&amp;nbsp;Phase_Start_Date are in date format already. So try like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IF(LEN([Phase_End_Date]) &amp;gt; 1,Interval( Floor(Phase_End_Date) - Floor(Phase_Start_Date), 'D'),0) as Phase_length&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jun 2021 04:42:35 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2021-06-03T04:42:35Z</dc:date>
    <item>
      <title>Interval function with date field not working</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-function-with-date-field-not-working/m-p/1812602#M1212735</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I want the phase length (days) from the below table. I am using this in script -&lt;/P&gt;&lt;P&gt;IF(LEN([Phase_End_Date]) &amp;gt; 1,Interval( (date#((Phase_End_Date),'DD/MMM/YYYY')) - (date#(Phase_Start_Date,'DD/MMM/YYYY')), 'D'),0) as Phase_length&lt;/P&gt;&lt;P&gt;But getting NULL values. Please suggest&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data.PNG" style="width: 464px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56239iA54DD047496050D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="data.PNG" alt="data.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 03:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-function-with-date-field-not-working/m-p/1812602#M1212735</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2021-06-03T03:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Interval function with date field not working</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-function-with-date-field-not-working/m-p/1812606#M1212739</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17306"&gt;@ashmitp869&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on ur screenshot, both&amp;nbsp;&lt;SPAN&gt;Phase_End_Date &amp;amp;&amp;nbsp;Phase_Start_Date are in date format already. So try like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IF(LEN([Phase_End_Date]) &amp;gt; 1,Interval( Floor(Phase_End_Date) - Floor(Phase_Start_Date), 'D'),0) as Phase_length&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 04:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-function-with-date-field-not-working/m-p/1812606#M1212739</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-06-03T04:42:35Z</dc:date>
    </item>
  </channel>
</rss>

