<?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: Problem formatting time...i think in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-formatting-time-i-think/m-p/435903#M702438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick help.&lt;/P&gt;&lt;P&gt;It was just what I was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Sep 2012 18:55:50 GMT</pubDate>
    <dc:creator>qw_johan</dc:creator>
    <dc:date>2012-09-25T18:55:50Z</dc:date>
    <item>
      <title>Problem formatting time...i think</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-formatting-time-i-think/m-p/435897#M702432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am looking for help with the code below. I don't understand where I am going wrong with this.&lt;/P&gt;&lt;P&gt;My guess is it is a formatting problem with time ie. &lt;EM&gt;my_time&lt;/EM&gt;, something I am doing wrong.&lt;/P&gt;&lt;P&gt;What I want to achieve is to be able to display if a specific time is in the morning, day, evening or night.&lt;/P&gt;&lt;P&gt;I am reading many timestamps from an excel spredsheet. See attached qvw...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the excel file, maybe that will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankful for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TEMP_TEST_TIMESTAMP:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1 as my_Timestamp_original, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(@1, 'YYYY-MM-DD hh:mm:ss') as my_Timestamp,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Date(Daystart(timestamp(@1)), 'YYYY-MM-DD') as my_date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Time(Timestamp(@1, 'YYYY-MM-DD hh:mm:ss'), 'hh:mm:ss') as my_time,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(@1) as my_Timestamp_original_length&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LB179_20120924_194125.xls(biff, no labels, table is Sheet1$);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TEST_TIMESTAMP:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;load *, len(my_Timestamp) as my_Timestamp_length Resident TEMP_TEST_TIMESTAMP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;drop table TEMP_TEST_TIMESTAMP;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TIMEPERIOD:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TimeFrom, TimeTo, TimePeriod&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;00:00:00, 06:00:00, Night&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;06:00:01, 10:00:00, Morning&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10:00:01, 18:00:00, Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;18:00:01, 23:00:00, Evening&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;23:00:01, 23:59:59, Night&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Left join (TEST_TIMESTAMP)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IntervalMatch(my_time)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD time(TimeFrom, 'hh:mm:ss') as TimeFrom, time(TimeTo, 'hh:mm:ss') as TimeTo RESIDENT&amp;nbsp; TIMEPERIOD;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Left Join (TEST_TIMESTAMP)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * RESIDENT TIMEPERIOD;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;drop table TIMEPERIOD;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 18:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-formatting-time-i-think/m-p/435897#M702432</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2012-09-24T18:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem formatting time...i think</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-formatting-time-i-think/m-p/435898#M702433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: 'courier new', courier; font-size: 11.818181991577148px; background-color: #eef4f9;"&gt;Inner join (TEST_TIMESTAMP)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: 'courier new', courier; font-size: 11.818181991577148px; background-color: #eef4f9;"&gt;instead Left Join&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: 'courier new', courier; font-size: 11.818181991577148px; background-color: #eef4f9;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 19:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-formatting-time-i-think/m-p/435898#M702433</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-09-24T19:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem formatting time...i think</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-formatting-time-i-think/m-p/435899#M702434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think you are right.&amp;nbsp; when i used ur code and replace the excel file with a inline table, it worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe upload the excel file, lets see what happens there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; my inline table btw&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;my_Timestamp_original, my_Timestamp, my_date, my_time&lt;BR /&gt;2012-03-21 00:53:07, 2012-03-21 00:53:07, 2012-03-21, 00:53:07&lt;BR /&gt;2012-03-21 06:01:01, 2012-03-21 06:01:01, 2012-03-21, 06:01:01&lt;BR /&gt;2012-03-21 10:00:01, 2012-03-21 10:00:01, 2012-03-21, 10:00:01&lt;BR /&gt;2012-03-21 18:00:01, 2012-03-21 18:00:01, 2012-03-21, 18:00:01&lt;BR /&gt;2012-03-21 23:00:01, 2012-03-21 23:00:01, 2012-03-21, 23:00:01&lt;BR /&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 19:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-formatting-time-i-think/m-p/435899#M702434</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2012-09-24T19:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem formatting time...i think</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-formatting-time-i-think/m-p/435900#M702435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upload the file if you want, you need to make sure that the fields you need to compare have the same type of data, so make equals types of you Excel and QV and that must work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 19:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-formatting-time-i-think/m-p/435900#M702435</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-09-24T19:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem formatting time...i think</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-formatting-time-i-think/m-p/435901#M702436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I update my post with the excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 20:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-formatting-time-i-think/m-p/435901#M702436</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2012-09-24T20:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem formatting time...i think</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-formatting-time-i-think/m-p/435902#M702437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i add the timestamp on the excel so it has a column name, but i think that should not matter, and I changed the code of&amp;nbsp; my_time.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;trim&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'hh:mm:ss')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;my_time&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qvw attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 20:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-formatting-time-i-think/m-p/435902#M702437</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2012-09-24T20:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem formatting time...i think</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-formatting-time-i-think/m-p/435903#M702438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick help.&lt;/P&gt;&lt;P&gt;It was just what I was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 18:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-formatting-time-i-think/m-p/435903#M702438</guid>
      <dc:creator>qw_johan</dc:creator>
      <dc:date>2012-09-25T18:55:50Z</dc:date>
    </item>
  </channel>
</rss>

