<?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: if difference between two timestamps is smaller than in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/if-difference-between-two-timestamps-is-smaller-than/m-p/1881398#M72616</link>
    <description>&lt;LI-CODE lang="markup"&gt;Count({$&amp;lt;sampleid={"=FirstValidatingDateTime-RegistrationDateTime &amp;lt; 4"}&amp;gt;} sampleid)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;</description>
    <pubDate>Sat, 15 Jan 2022 17:45:34 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2022-01-15T17:45:34Z</dc:date>
    <item>
      <title>if difference between two timestamps is smaller than</title>
      <link>https://community.qlik.com/t5/App-Development/if-difference-between-two-timestamps-is-smaller-than/m-p/1881389#M72614</link>
      <description>&lt;P&gt;Hi everyone, can't figure out how to write this.&lt;/P&gt;
&lt;P&gt;I want to write a syntax to determine if the difference between two timestamps is smaller than 4 days&lt;/P&gt;
&lt;P&gt;The best I came up with is this, but it won't work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;count (if (INTERVAL(DATE(FirstValidatingDateTime - RegistrationDateTime),'ss') &amp;lt; 345600, 'sampleid'))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The idea is to count the sampleid's for which the difference between firstval and registration is less than 4 days (345600 seconds)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jan 2022 14:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-difference-between-two-timestamps-is-smaller-than/m-p/1881389#M72614</guid>
      <dc:creator>Quentinn</dc:creator>
      <dc:date>2022-01-15T14:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: if difference between two timestamps is smaller than</title>
      <link>https://community.qlik.com/t5/App-Development/if-difference-between-two-timestamps-is-smaller-than/m-p/1881398#M72616</link>
      <description>&lt;LI-CODE lang="markup"&gt;Count({$&amp;lt;sampleid={"=FirstValidatingDateTime-RegistrationDateTime &amp;lt; 4"}&amp;gt;} sampleid)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jan 2022 17:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-difference-between-two-timestamps-is-smaller-than/m-p/1881398#M72616</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-01-15T17:45:34Z</dc:date>
    </item>
  </channel>
</rss>

