<?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: Question on Date Formatting and Interval Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Question-on-Date-Formatting-and-Interval-Function/m-p/1294581#M847683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;IF([CaseAge] &amp;gt;= 0 and [CaseAge]&amp;lt;= 4/24, 'CategoryA',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;IF([CaseAge] &amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;4/24&lt;/SPAN&gt; and [CaseAge]&amp;lt;=8/24, 'CategoryB',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;IF([CaseAge] &amp;gt; 8/24 and [CaseAge]&amp;lt;= 12/24, 'CategoryC',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;IF([CaseAge] &amp;gt; 12/24 and [CaseAge]&amp;lt;=24/24, 'CategoryD',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;IF([CaseAge] &amp;gt; 24/24 and [CaseAge]&amp;lt;= 48/24, 'CategoryE',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;IF([CaseAge] &amp;gt; 48/24 , 'CategoryF', )))))) as IntervCat&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Resident Facts;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2017 17:42:02 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-03-28T17:42:02Z</dc:date>
    <item>
      <title>Question on Date Formatting and Interval Function</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Date-Formatting-and-Interval-Function/m-p/1294580#M847682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a caseworker dashboard and I'm having some trouble with my "CaseAge" time stamp field. From the data file I receive the total time worked on a case in the following format: &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="152"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" width="152"&gt;508:18:53&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would be 508 Hours, 18 Minutes, and 53 Seconds. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on creating some categories in my script so that I can quickly filter on hours. I've created the following table: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interval:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interval(interval#(CaseAge,'hh:mm:ss'),'hh:mm:ss') as CaseAge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF([CaseAge] &amp;gt;='00:00:00' and [CaseAge]&amp;lt;= '04:00:00', 'CategoryA',&lt;/P&gt;&lt;P&gt;IF([CaseAge] &amp;gt;='04:00:01' and [CaseAge]&amp;lt;='08:00:00', 'CategoryB',&lt;/P&gt;&lt;P&gt;IF([CaseAge] &amp;gt;='8:00:01' and [CaseAge]&amp;lt;='12:00:00', 'CategoryC',&lt;/P&gt;&lt;P&gt;IF([CaseAge] &amp;gt;='12:00:01' and [CaseAge]&amp;lt;='24:00:00', 'CategoryD',&lt;/P&gt;&lt;P&gt;IF([CaseAge] &amp;gt;='24:00:01' and [CaseAge]&amp;lt;='48:00:00', 'CategoryE',&lt;/P&gt;&lt;P&gt;IF([CaseAge] &amp;gt;='48:00:01' , 'CategoryF', )))))) as IntervCat&lt;/P&gt;&lt;P&gt;Resident Facts;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why this is not working? I should be left with six categories that bucket the Case Age based on the intervals defined about 0-4 hrs', 4-8 hrs, etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Darren&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/Question-on-Date-Formatting-and-Interval-Function/m-p/1294580#M847682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Date Formatting and Interval Function</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Date-Formatting-and-Interval-Function/m-p/1294581#M847683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;IF([CaseAge] &amp;gt;= 0 and [CaseAge]&amp;lt;= 4/24, 'CategoryA',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;IF([CaseAge] &amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;4/24&lt;/SPAN&gt; and [CaseAge]&amp;lt;=8/24, 'CategoryB',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;IF([CaseAge] &amp;gt; 8/24 and [CaseAge]&amp;lt;= 12/24, 'CategoryC',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;IF([CaseAge] &amp;gt; 12/24 and [CaseAge]&amp;lt;=24/24, 'CategoryD',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;IF([CaseAge] &amp;gt; 24/24 and [CaseAge]&amp;lt;= 48/24, 'CategoryE',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;IF([CaseAge] &amp;gt; 48/24 , 'CategoryF', )))))) as IntervCat&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Resident Facts;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 17:42:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Date-Formatting-and-Interval-Function/m-p/1294581#M847683</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-28T17:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Date Formatting and Interval Function</title>
      <link>https://community.qlik.com/t5/QlikView/Question-on-Date-Formatting-and-Interval-Function/m-p/1294582#M847688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that worked. I've added 'Date' from my Fact Table and a counter and it seems to have done the trick. THank you for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 19:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-on-Date-Formatting-and-Interval-Function/m-p/1294582#M847688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-28T19:20:26Z</dc:date>
    </item>
  </channel>
</rss>

