<?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() in LOAD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/round-in-LOAD/m-p/423852#M157981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be your field shows you "hours" but it may also contains "minutes" that QV doesn't show you according to your number format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;Round(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Round(&lt;/SPAN&gt;[Time spent (hours)]) / &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Round(&lt;/SPAN&gt;[Hours per Day]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Feb 2013 10:11:38 GMT</pubDate>
    <dc:creator>vivientexier</dc:creator>
    <dc:date>2013-02-11T10:11:38Z</dc:date>
    <item>
      <title>round() in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/round-in-LOAD/m-p/423848#M157977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am having a problem with an expression i am using in the LOAD script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field "Time spent (hours)". I have another field "Hours per Day".&lt;/P&gt;&lt;P&gt;If a wwant to calculate "Time spent (days)" i am doing the following in my LOAD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;round([Time spent (hours)] / [Hours per Day]).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use round() because i want to have a full number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; "Time spent (hours)" = 184&lt;/P&gt;&lt;P&gt;"Hours per Day" = 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result is 22 - although it should be 23.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(round([Time spent (hours)] / [Hours per Day]).)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get an error wen executing the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for some help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 09:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-in-LOAD/m-p/423848#M157977</guid>
      <dc:creator />
      <dc:date>2013-02-11T09:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: round() in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/round-in-LOAD/m-p/423849#M157978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do get 23. Can't reproduce your problem:&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; round([Time spent (hours)] / [Hours per Day]) as Test &lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;Time spent (hours),Hours per Day&lt;/P&gt;&lt;P&gt;184,8&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 09:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-in-LOAD/m-p/423849#M157978</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-02-11T09:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: round() in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/round-in-LOAD/m-p/423850#M157979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah even i am getting the same as swuehl !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 10:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-in-LOAD/m-p/423850#M157979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-11T10:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: round() in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/round-in-LOAD/m-p/423851#M157980</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;&lt;/P&gt;&lt;P&gt;from where are you loading&amp;nbsp; excel,qvd&lt;/P&gt;&lt;P&gt;are you using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;round([Time spent (hours)] / [Hours per Day]) in ur expression in chart&lt;/P&gt;&lt;P&gt;in that case go to number check number format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;anant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 10:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-in-LOAD/m-p/423851#M157980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-11T10:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: round() in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/round-in-LOAD/m-p/423852#M157981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be your field shows you "hours" but it may also contains "minutes" that QV doesn't show you according to your number format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;Round(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Round(&lt;/SPAN&gt;[Time spent (hours)]) / &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Round(&lt;/SPAN&gt;[Hours per Day]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 10:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-in-LOAD/m-p/423852#M157981</guid>
      <dc:creator>vivientexier</dc:creator>
      <dc:date>2013-02-11T10:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: round() in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/round-in-LOAD/m-p/423853#M157982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii&lt;/P&gt;&lt;P&gt;b:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;round([TimeSpent hours]/[time spent per day])as full;&lt;/P&gt;&lt;P&gt;a:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TimeSpent hours, time spent per day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 184, 8&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt; i got 23 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 10:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/round-in-LOAD/m-p/423853#M157982</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-02-11T10:12:21Z</dc:date>
    </item>
  </channel>
</rss>

