<?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 Time comparison with an existing date-time combined field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-comparison-with-an-existing-date-time-combined-field/m-p/1582219#M442979</link>
    <description>&lt;P&gt;I want to create one field having 15 min time intervals. Following example can be followed.I want to do the below task.&lt;/P&gt;&lt;P&gt;if (Exec_Time&amp;gt; 9 PM and Exec_Time &amp;lt;9.30 PM,'9 to 9.30 PM','NA') as new_field&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:I have written the above script in edit script window(not in expressions)&lt;/P&gt;&lt;P&gt;for all the rows of straight table I am getting new_field value as 'NA',even if the Exec_Time lies between 9 to 9.30 PM.Please advise on how to compare this time field.Exec_Time is a combination of date and time.(e.g,3/14/2019 9:15:00)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:50:05 GMT</pubDate>
    <dc:creator>spandita</dc:creator>
    <dc:date>2024-11-16T20:50:05Z</dc:date>
    <item>
      <title>Time comparison with an existing date-time combined field</title>
      <link>https://community.qlik.com/t5/QlikView/Time-comparison-with-an-existing-date-time-combined-field/m-p/1582219#M442979</link>
      <description>&lt;P&gt;I want to create one field having 15 min time intervals. Following example can be followed.I want to do the below task.&lt;/P&gt;&lt;P&gt;if (Exec_Time&amp;gt; 9 PM and Exec_Time &amp;lt;9.30 PM,'9 to 9.30 PM','NA') as new_field&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:I have written the above script in edit script window(not in expressions)&lt;/P&gt;&lt;P&gt;for all the rows of straight table I am getting new_field value as 'NA',even if the Exec_Time lies between 9 to 9.30 PM.Please advise on how to compare this time field.Exec_Time is a combination of date and time.(e.g,3/14/2019 9:15:00)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-comparison-with-an-existing-date-time-combined-field/m-p/1582219#M442979</guid>
      <dc:creator>spandita</dc:creator>
      <dc:date>2024-11-16T20:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Time comparison with an existing date-time combined field</title>
      <link>https://community.qlik.com/t5/QlikView/Time-comparison-with-an-existing-date-time-combined-field/m-p/1582985#M443045</link>
      <description>I haved the same doubt.&lt;BR /&gt;The solution that i had was convert to number and compare numbers&lt;BR /&gt;if (num(Exec_Time)&amp;gt; num('9 PM') and num(Exec_Time) &amp;lt;num(9.30 PM),'9 to 9.30 PM','NA') as new_field</description>
      <pubDate>Tue, 21 May 2019 20:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-comparison-with-an-existing-date-time-combined-field/m-p/1582985#M443045</guid>
      <dc:creator>mrtinsjoao</dc:creator>
      <dc:date>2019-05-21T20:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Time comparison with an existing date-time combined field</title>
      <link>https://community.qlik.com/t5/QlikView/Time-comparison-with-an-existing-date-time-combined-field/m-p/1582996#M443047</link>
      <description>&lt;P&gt;You could get the correct 15 min time interval by using the following script&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Time(Round(frac(Exec_Time), 15 / 1440)) as new_field&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 22:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-comparison-with-an-existing-date-time-combined-field/m-p/1582996#M443047</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-05-21T22:06:41Z</dc:date>
    </item>
  </channel>
</rss>

