<?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: Round up time to the start of hour in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023629#M636005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Time(Round(Time, 1/24), 'hh:mm') as Time&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Time(Floor(Time, 1/24), 'hh:mm') as Time&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Althouth I am not sure how you converted 7:45 PM to 17:00 -&amp;gt; did you mean 20:00 or 19:00 intead? First expression will get you 20:00 and second will get you 19:00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Apr 2016 09:54:08 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-13T09:54:08Z</dc:date>
    <item>
      <title>Round up time to the start of hour</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023626#M636002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to round up time to the start of hour? Say,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return&lt;/P&gt;&lt;P&gt;03:05 AM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03:00&lt;/P&gt;&lt;P&gt;07:45 PM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know whether it's attainable by Set Analysis or by Data Load. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks! &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 05:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023626#M636002</guid>
      <dc:creator />
      <dc:date>2016-04-13T05:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Round up time to the start of hour</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023627#M636003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=time(hour(time#(TimeField,'hh:mm TT')),'hh:mm') as TIME&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 09:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023627#M636003</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-04-13T09:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Round up time to the start of hour</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023628#M636004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;hour(time#(TimeField,'hh:mm TT'))&amp;amp;':'&amp;amp;00 as &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;TIME&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 09:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023628#M636004</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-04-13T09:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Round up time to the start of hour</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023629#M636005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Time(Round(Time, 1/24), 'hh:mm') as Time&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Time(Floor(Time, 1/24), 'hh:mm') as Time&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Althouth I am not sure how you converted 7:45 PM to 17:00 -&amp;gt; did you mean 20:00 or 19:00 intead? First expression will get you 20:00 and second will get you 19:00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 09:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023629#M636005</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-13T09:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Round up time to the start of hour</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023630#M636006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set TimeFormat = 'hh:mm TT';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time as TimeOriginal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Time(&lt;EM&gt;Floor&lt;/EM&gt;(Time, 1/24), 'hh:mm') as Time, // adapt the time format as needed, if you want to show AM/PM&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FROM ...;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;edit: this will of course perform a rounding to the lower hour value 07:45 --&amp;gt; 07:00&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 09:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023630#M636006</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-13T09:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Round up time to the start of hour</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023631#M636007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;7:00 or 19:00 Stefan?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 10:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023631#M636007</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-13T10:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Round up time to the start of hour</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023632#M636008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, should be 19:00 instead. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 10:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023632#M636008</guid>
      <dc:creator />
      <dc:date>2016-04-13T10:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Round up time to the start of hour</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023633#M636009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Time(Floor(Time, 1/24), 'hh:mm') as Time&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 11:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023633#M636009</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-13T11:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Round up time to the start of hour</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023634#M636010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Sunny T &amp;amp;lt;span class=&amp;amp;quot;icon-status-icon icon-mvp&amp;amp;quot; title=&amp;amp;quot;Mvp&amp;amp;quot;&amp;amp;gt;&amp;amp;lt;/span&amp;amp;gt; wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;7:00 or 19:00 Stefan?&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;19:00. Missed the PM on the second line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;07:45 &lt;SPAN style="text-decoration: underline;"&gt;PM&lt;/SPAN&gt; --&amp;gt; 19:00&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May, if the above doesn't work, please check that your input records are correctly read in as time, having a numeric representation, e.g. by using Time#() interpretation function or setting the default format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also following, also applies to time values:&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;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 11:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023634#M636010</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-13T11:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Round up time to the start of hour</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023635#M636011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Sunny! You are right that it returns the rounded up time value but why are there duplicates?&lt;/P&gt;&lt;P&gt;I am intending this to use as a dimension, I expect that the measures will be aggregated according to the unique time value.&lt;/P&gt;&lt;P&gt;Any idea why it behaved like that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 22:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023635#M636011</guid>
      <dc:creator />
      <dc:date>2016-04-13T22:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Round up time to the start of hour</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023636#M636012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I there date information attached to it for some reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be give this a shot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Time(Floor(&lt;SPAN style="color: #ff0000;"&gt;Frac(&lt;/SPAN&gt;Time&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;, 1/24), 'hh:mm') as Time&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 09:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-time-to-the-start-of-hour/m-p/1023636#M636012</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-14T09:04:33Z</dc:date>
    </item>
  </channel>
</rss>

