<?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 in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Interval-Function/m-p/637#M41</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any further help on this would be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jan 2018 10:53:39 GMT</pubDate>
    <dc:creator>richardm90</dc:creator>
    <dc:date>2018-01-19T10:53:39Z</dc:date>
    <item>
      <title>Interval Function</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-Function/m-p/633#M37</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;&lt;/P&gt;&lt;P&gt;I'm creating some KPI's in Qlik Sense to show the total number of appointments that lasted a certain amount of time...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently using this formula to calculate the interval of every appointment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=interval(date([End Time], 'hh:mm') - date([Start Time], 'hh:mm'), 'hh:mm')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me a combination of 30mins, 60mins, 90mins and 120 mins appointment lengths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I now create a KPI to display only the 30mins total? i.e. out of 80 appointments 5 lasted 30 mins. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 02:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-Function/m-p/633#M37</guid>
      <dc:creator>richardm90</dc:creator>
      <dc:date>2018-01-15T02:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Function</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-Function/m-p/634#M38</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to count appointments? Then something like:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Count(If([End Time] - [Start Time] &amp;gt; 30 / (24 * 60), AppointmentID))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Interval() and Date() are merely formatting functions, they have no effect on the underlying value. 30 / (24 * 60) is the value of 30 minutes. You could also use Time#('00:30:00'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 04:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-Function/m-p/634#M38</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-01-15T04:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Function</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-Function/m-p/635#M39</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help on this. I have implemented this formula but am getting incorrect results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 175 appointments and only 9 are 30 mins long. However the formula above is giving the result of 171.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea where I could be going wrong here. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 13:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-Function/m-p/635#M39</guid>
      <dc:creator>richardm90</dc:creator>
      <dc:date>2018-01-17T13:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Function</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-Function/m-p/636#M40</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also tried the Time#('00:30:00')) function and changed my timeformat to SET TimeFormat='hh:mm:ss' but it gave the same result. How come &lt;EM&gt;=Count(If([End Time] - [Start Time] = 30 / (24 * 60), AppointmentID)) does not work in this case? I just get 0. &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 13:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-Function/m-p/636#M40</guid>
      <dc:creator>richardm90</dc:creator>
      <dc:date>2018-01-17T13:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Function</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-Function/m-p/637#M41</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any further help on this would be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 10:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-Function/m-p/637#M41</guid>
      <dc:creator>richardm90</dc:creator>
      <dc:date>2018-01-19T10:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Function</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-Function/m-p/638#M42</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have valid date values? The code assumes the Start Time and End Time are time or time-stamp numeric values, and not strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3102"&gt;QlikView Date fields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And that both time are correctly associated with the Appointment IDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest that you share a small sample qvf that illustrates the problem and someone may be able to pinpoint the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 11:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-Function/m-p/638#M42</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-01-19T11:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Function</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-Function/m-p/639#M43</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes the dates are time stamp numeric values. They are definitely associated with the appointment ID's. I am using the same date data in other KPI's which work fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll share a sample qvf shortly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 22:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-Function/m-p/639#M43</guid>
      <dc:creator>richardm90</dc:creator>
      <dc:date>2018-02-12T22:56:08Z</dc:date>
    </item>
  </channel>
</rss>

