<?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 duration in IF statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Time-duration-in-IF-statement/m-p/1101147#M18610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create an IF statement in my load script that will identify whether a duration between two timestamps exceeded 45 minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have tried is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(resolved_at - "Opened time") * 24 as 'duration',&lt;/P&gt;&lt;P&gt;If('duration' &amp;lt;= 0.75, 'Met', 'Not Met') as 'SLA',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a table and 'duration' correctly gives the number of hours (in decimal format) between the two timestamps. However, every entry has 'Not Met' in the 'SLA' field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clearly there is something incorrect with my number formatting. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Nov 2024 10:27:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2024-11-16T10:27:43Z</dc:date>
    <item>
      <title>Time duration in IF statement</title>
      <link>https://community.qlik.com/t5/App-Development/Time-duration-in-IF-statement/m-p/1101147#M18610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create an IF statement in my load script that will identify whether a duration between two timestamps exceeded 45 minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have tried is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(resolved_at - "Opened time") * 24 as 'duration',&lt;/P&gt;&lt;P&gt;If('duration' &amp;lt;= 0.75, 'Met', 'Not Met') as 'SLA',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a table and 'duration' correctly gives the number of hours (in decimal format) between the two timestamps. However, every entry has 'Not Met' in the 'SLA' field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clearly there is something incorrect with my number formatting. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-duration-in-IF-statement/m-p/1101147#M18610</guid>
      <dc:creator />
      <dc:date>2024-11-16T10:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Time duration in IF statement</title>
      <link>https://community.qlik.com/t5/App-Development/Time-duration-in-IF-statement/m-p/1101148#M18611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;(resolved_at - "Opened time") as duration,&lt;/STRONG&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; font-size: 13px;"&gt;&lt;STRONG&gt;If(duration &amp;lt;= MakeTime(0, 45), 'Met', 'Not Met') as SLA&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 14:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-duration-in-IF-statement/m-p/1101148#M18611</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-12T14:18:18Z</dc:date>
    </item>
  </channel>
</rss>

