<?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: Time Tiers/ Bucket in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-Tiers-Bucket/m-p/123340#M761075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;i'm not sure about what you want to do but you have a problem with your if condition&lt;/P&gt;&lt;P&gt;if syntax: if(condition and condition2, value if true, value if false)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your expression you put: if(condition1 and condition2)&lt;/P&gt;&lt;P&gt;the if here is going to evaluate both of your conditions and just go to the next instruction and "TIME" field should be empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the output if both of your condition are correct?&lt;/P&gt;&lt;P&gt;what is the expected output if they are false?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2018 09:44:10 GMT</pubDate>
    <dc:creator>kfoudhaily</dc:creator>
    <dc:date>2018-08-09T09:44:10Z</dc:date>
    <item>
      <title>Time Tiers/ Bucket</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Tiers-Bucket/m-p/123339#M761074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi Community, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I need your help to calculate time in hours and Tier/Bucket as shown in attached image.&lt;/P&gt;&lt;P&gt;I have two date fields &lt;STRONG&gt;Reported_Time&lt;/STRONG&gt; and &lt;STRONG&gt;Closed_Time&lt;/STRONG&gt; and I need an interval in hours from that field.&lt;/P&gt;&lt;P&gt;Somehow, I succeeded to calculate the interval in hours by using the function.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval((Timestamp(Floor(RESOLVEDATE)))- Timestamp(Floor(REPORTEDTIME)),'hh') AS RESOLVED_TIME_MINUTE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;similarly, I need Tiers/Bucket like 0-1hrs, 1-8hrs and so on.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(Interval(Num((Floor(RESOLVEDATE)))- Num((Floor(REPORTEDTIME))),'hh') &amp;gt;= '00' and Interval(Num((Floor(RESOLVEDATE)))- Num((Floor(REPORTEDTIME))),'hh') &amp;lt;= '05', '0-5 hrs') as TIME&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please help to calculate the tiers like the attached image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/210340_Untitled.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Tiers-Bucket/m-p/123339#M761074</guid>
      <dc:creator>noman212</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Time Tiers/ Bucket</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Tiers-Bucket/m-p/123340#M761075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;i'm not sure about what you want to do but you have a problem with your if condition&lt;/P&gt;&lt;P&gt;if syntax: if(condition and condition2, value if true, value if false)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your expression you put: if(condition1 and condition2)&lt;/P&gt;&lt;P&gt;the if here is going to evaluate both of your conditions and just go to the next instruction and "TIME" field should be empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the output if both of your condition are correct?&lt;/P&gt;&lt;P&gt;what is the expected output if they are false?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 09:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Tiers-Bucket/m-p/123340#M761075</guid>
      <dc:creator>kfoudhaily</dc:creator>
      <dc:date>2018-08-09T09:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Time Tiers/ Bucket</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Tiers-Bucket/m-p/123341#M761076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For interval hours between dates you can use much simpler syntax:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;&lt;EM&gt;round((REPORTEDTIME-RESOLVEDATE)*24) as hours&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;For as you call it "buckets" you coud use IntervalMatch:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;&lt;EM&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3037"&gt;IntervalMatch&lt;/A&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the sample file with my solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 10:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Tiers-Bucket/m-p/123341#M761076</guid>
      <dc:creator>mtucholski</dc:creator>
      <dc:date>2018-08-09T10:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Time Tiers/ Bucket</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Tiers-Bucket/m-p/123342#M761077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what i want.&lt;/P&gt;&lt;P&gt;Thanks a lot. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 10:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Tiers-Bucket/m-p/123342#M761077</guid>
      <dc:creator>noman212</dc:creator>
      <dc:date>2018-08-09T10:32:50Z</dc:date>
    </item>
  </channel>
</rss>

