<?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 rounding problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-rounding-problem/m-p/676915#M245663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found another issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable is used to record an amount of time, not limited by one day. With the maketime function, an amount of let's say 25 hours and 34 mins is set to NULL. &lt;/P&gt;&lt;P&gt;How can I handle this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2014 09:04:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-30T09:04:52Z</dc:date>
    <item>
      <title>Time rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Time-rounding-problem/m-p/676911#M245659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to convert an input time that is provided as a decial number (e.g. 2.28, format is hours.minutes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This shall be converted to 2:16, for 2 hours and 16 minutes This is my formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =interval($(v_volume_fn)/24, 'hh:mm')&amp;amp;' Std.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is, that the calculated minute is not commercially rounded, but instead always rounded off (i.e. decimal values are cut off)&lt;/P&gt;&lt;P&gt; e.g. 2.28 is calculated to 2:16 (h:mm) (0,28*60 = 16.8 =&amp;gt; 16)&lt;/P&gt;&lt;P&gt;but it should be &lt;/P&gt;&lt;P&gt;2.28 is calculated to 2:17 (h:mm) (0,28*60 = 16.8 = 17)&lt;/P&gt;&lt;P&gt;So the calculated minute is commercially rounded (i.e. [&amp;lt;0.5: round off]; [&amp;gt;=0.5: round up])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 07:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-rounding-problem/m-p/676911#M245659</guid>
      <dc:creator />
      <dc:date>2014-06-30T07:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Time rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Time-rounding-problem/m-p/676912#M245660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=IF (Right (Num#(CalculatedValue,'# ##0.0'),1) &amp;lt;=5, Floor(CalculatedValue), Ceil(CalculatedValue))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For e.g.&lt;/P&gt;&lt;P&gt;=IF (Right (Num#(16.5,'# ##0.0'),1) &amp;lt;=5, Floor(16.5), Ceil(16.5))&lt;/P&gt;&lt;P&gt;Returns 16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 07:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-rounding-problem/m-p/676912#M245660</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2014-06-30T07:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Time rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Time-rounding-problem/m-p/676913#M245661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will does it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Interval(MakeTime(Floor(2.28), Round(Frac(2.28)*60)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gives 2:17. Just insert your field in place of 2.28&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 08:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-rounding-problem/m-p/676913#M245661</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-06-30T08:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Time rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Time-rounding-problem/m-p/676914#M245662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is exactly what I need. Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 08:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-rounding-problem/m-p/676914#M245662</guid>
      <dc:creator />
      <dc:date>2014-06-30T08:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Time rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Time-rounding-problem/m-p/676915#M245663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found another issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable is used to record an amount of time, not limited by one day. With the maketime function, an amount of let's say 25 hours and 34 mins is set to NULL. &lt;/P&gt;&lt;P&gt;How can I handle this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 09:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-rounding-problem/m-p/676915#M245663</guid>
      <dc:creator />
      <dc:date>2014-06-30T09:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Time rounding problem</title>
      <link>https://community.qlik.com/t5/QlikView/Time-rounding-problem/m-p/676916#M245664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like this?&lt;/P&gt;&lt;P&gt;=interval(Floor($(v_volume_fn)) &amp;amp; ':' &amp;amp; Round(Frac($(v_volume_fn))*60), 'hh:mm')&amp;amp;' Std.'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 09:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-rounding-problem/m-p/676916#M245664</guid>
      <dc:creator />
      <dc:date>2014-06-30T09:07:49Z</dc:date>
    </item>
  </channel>
</rss>

