<?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 Set Analysis between hours (times) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-between-hours-times/m-p/117558#M457684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a requirement to calculate calls between hours.&amp;nbsp; E.g., Number of calls, per 30-minute interval, between 9:00:00 AM and 5:00:00 PM.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I frequently do set analysis with dates, but never with times, and I can't get it to work.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me understand what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;IntvlTime = {'&amp;gt;= 9:00:00 AM'}&amp;gt;} ACDReceived)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: IntvlTime is in the same format as the static time in the Set Analysis,.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2018 19:02:25 GMT</pubDate>
    <dc:creator>jcampbell474</dc:creator>
    <dc:date>2018-09-11T19:02:25Z</dc:date>
    <item>
      <title>Set Analysis between hours (times)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-between-hours-times/m-p/117558#M457684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a requirement to calculate calls between hours.&amp;nbsp; E.g., Number of calls, per 30-minute interval, between 9:00:00 AM and 5:00:00 PM.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I frequently do set analysis with dates, but never with times, and I can't get it to work.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me understand what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;IntvlTime = {'&amp;gt;= 9:00:00 AM'}&amp;gt;} ACDReceived)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: IntvlTime is in the same format as the static time in the Set Analysis,.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 19:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-between-hours-times/m-p/117558#M457684</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2018-09-11T19:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis between hours (times)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-between-hours-times/m-p/117559#M457685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you can convert your 12 hour time field into 24 hour timestamp and then use it in the set analysis. For example&amp;nbsp; - Timestamp(Time, 'hh:mm:ss') as Time24Hours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and Set expression- &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;sum&lt;/SPAN&gt;({&amp;lt;Time24Hours = {"&amp;gt;=9:00:00"}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ACDReceived&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 19:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-between-hours-times/m-p/117559#M457685</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-09-11T19:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis between hours (times)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-between-hours-times/m-p/117560#M457686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;didn't add the 9-5 condition above- &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;sum&lt;/SPAN&gt;({&amp;lt;Time24Hours = {"&amp;gt;=9:00:00&amp;lt;=17:00:00"}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ACDReceived&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 19:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-between-hours-times/m-p/117560#M457686</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-09-11T19:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis between hours (times)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-between-hours-times/m-p/117561#M457687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, but it doesn't work.&amp;nbsp; The sum is zero'd out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's before:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213283_qv1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After (yours is the 3rd column)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/213317_qv2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 19:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-between-hours-times/m-p/117561#M457687</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2018-09-11T19:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis between hours (times)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-between-hours-times/m-p/117562#M457688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is working for the sample that I picked, not sure whats the issue on your side.&lt;/P&gt;&lt;P&gt;Can you share sample data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 20:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-between-hours-times/m-p/117562#M457688</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-09-11T20:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis between hours (times)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-between-hours-times/m-p/117563#M457689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured it out.&amp;nbsp; It's something you wouldn't have known without the sample data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to add 'frac' to the loadscript to drop the date / extract the time.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timestamp(frac(intstartdte), 'hh:mm:ss') as IntvlTime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works like a charm, now!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 18:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-between-hours-times/m-p/117563#M457689</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2018-09-12T18:43:06Z</dc:date>
    </item>
  </channel>
</rss>

