<?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: Division with decimal values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Division-with-decimal-values/m-p/738399#M263972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that your numbers use comma instead of dot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;5.5/2.2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... but where have you tried? In an expression? in a text box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2014 09:44:15 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2014-07-09T09:44:15Z</dc:date>
    <item>
      <title>Division with decimal values</title>
      <link>https://community.qlik.com/t5/QlikView/Division-with-decimal-values/m-p/738398#M263971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I in qlikview divide two decimal value in order to keep the decimal part. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value1 = 5,5&lt;/P&gt;&lt;P&gt;Value2 = 2,2&lt;/P&gt;&lt;P&gt;Value3=5,5/2,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value3 = Value1/Value2: does not work, does not return a valid result;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value3 = div(Value1,Value2): does not work, returns only the Integer part of division, in this case 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 09:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Division-with-decimal-values/m-p/738398#M263971</guid>
      <dc:creator />
      <dc:date>2014-07-09T09:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Division with decimal values</title>
      <link>https://community.qlik.com/t5/QlikView/Division-with-decimal-values/m-p/738399#M263972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that your numbers use comma instead of dot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;5.5/2.2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... but where have you tried? In an expression? in a text box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 09:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Division-with-decimal-values/m-p/738399#M263972</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-07-09T09:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Division with decimal values</title>
      <link>https://community.qlik.com/t5/QlikView/Division-with-decimal-values/m-p/738400#M263973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must use decimal point for all numbers hardcoded in the script or in an expression. Example&lt;/P&gt;&lt;P&gt;Let variable = 5.5 / 2.2 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you display it, you can choose to format it using a decimal comma, using the Num() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 09:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Division-with-decimal-values/m-p/738400#M263973</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-07-09T09:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Division with decimal values</title>
      <link>https://community.qlik.com/t5/QlikView/Division-with-decimal-values/m-p/738401#M263974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well Guys I sorted the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 5.5 and 2.2 where just an example for what I was trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My final expression is: Value1/num($(Value2)))*100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this works with the division bar '/'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank your for the help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 09:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Division-with-decimal-values/m-p/738401#M263974</guid>
      <dc:creator />
      <dc:date>2014-07-09T09:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Division with decimal values</title>
      <link>https://community.qlik.com/t5/QlikView/Division-with-decimal-values/m-p/738402#M263975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect that you will get the same result if you try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Value1/$(#Value2)*100 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the hash - it forces a numeric expansion using decimal point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 10:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Division-with-decimal-values/m-p/738402#M263975</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-07-09T10:10:56Z</dc:date>
    </item>
  </channel>
</rss>

