<?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: Dividing two variables: decimal comma versus decimal point in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dividing-two-variables-decimal-comma-versus-decimal-point/m-p/599456#M1110302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Marc,&lt;/P&gt;&lt;P&gt;Would it be possible to attach a sample file with some dummy data and the issue you are facing? It would be very helpful in addressing this.&lt;/P&gt;&lt;P&gt;Also where did you set the decimal separator as comma. You can set it only for specific fields. When you put A1 and A2 in a text box do you see comma or decimal point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2014 18:06:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-04T18:06:29Z</dc:date>
    <item>
      <title>Dividing two variables: decimal comma versus decimal point</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-two-variables-decimal-comma-versus-decimal-point/m-p/599455#M1110301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my script, I have two variables (A1 and A2). I am calculating a 3rd variable (A3) by summing the first two variables (A1 + A2). I am running into problems with decimal points and comma's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables A1 and A2 are both smaller than 1. Although I have set the decimal separator to be comma (',') in my document, I am using a decimal point for A1 and A2. If I don't do this, A1 and A2 are not being recognized as numbers. When I calculate A3, the result has a comma (',') as decimal separator. Any further calculations using A3 go wrong, presumably because A3 with the decimal comma is not being recognized as a number. Can anybody point out how to solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 17:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-two-variables-decimal-comma-versus-decimal-point/m-p/599455#M1110301</guid>
      <dc:creator />
      <dc:date>2014-03-04T17:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing two variables: decimal comma versus decimal point</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-two-variables-decimal-comma-versus-decimal-point/m-p/599456#M1110302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Marc,&lt;/P&gt;&lt;P&gt;Would it be possible to attach a sample file with some dummy data and the issue you are facing? It would be very helpful in addressing this.&lt;/P&gt;&lt;P&gt;Also where did you set the decimal separator as comma. You can set it only for specific fields. When you put A1 and A2 in a text box do you see comma or decimal point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 18:06:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-two-variables-decimal-comma-versus-decimal-point/m-p/599456#M1110302</guid>
      <dc:creator />
      <dc:date>2014-03-04T18:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing two variables: decimal comma versus decimal point</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-two-variables-decimal-comma-versus-decimal-point/m-p/599457#M1110303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marc, try using this, reading A3 with decimal comma using num#(), and converting to decimal dot using num()&lt;/P&gt;&lt;P&gt;num(num#(A3,'#.###,#'),'#,###.#'). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 18:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-two-variables-decimal-comma-versus-decimal-point/m-p/599457#M1110303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-04T18:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing two variables: decimal comma versus decimal point</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-two-variables-decimal-comma-versus-decimal-point/m-p/599458#M1110304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached a sample file similar to what you explained. It seems to be working fine. Please take a look at it let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Use these as your environment variables:&lt;/P&gt;&lt;P&gt;SET ThousandSep='.';&lt;/P&gt;&lt;P&gt;SET DecimalSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#.##0,00;($#.##0,00)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 18:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-two-variables-decimal-comma-versus-decimal-point/m-p/599458#M1110304</guid>
      <dc:creator />
      <dc:date>2014-03-04T18:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing two variables: decimal comma versus decimal point</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-two-variables-decimal-comma-versus-decimal-point/m-p/599459#M1110306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer. This works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amazing how some carppy some of the Qlikview scripting language is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Even though you set the decimal seperator to comma, varaiables only work with a decimal point&lt;/LI&gt;&lt;LI&gt;If you do a calculation with the variables, theoutcome has a decimal comma&lt;/LI&gt;&lt;LI&gt;You need to concert the outcome to a numer with a decimal point to be able to use it for further calculations&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anayway, thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 18:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-two-variables-decimal-comma-versus-decimal-point/m-p/599459#M1110306</guid>
      <dc:creator />
      <dc:date>2014-03-04T18:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing two variables: decimal comma versus decimal point</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-two-variables-decimal-comma-versus-decimal-point/m-p/599460#M1110308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm glad my suggestions works for you.&amp;nbsp; My purpose was to make it independent from the environment variables settings.&amp;nbsp; But AJ proved in his example that there is no problem using comma.&amp;nbsp; I think something is missing in your situation.&lt;/P&gt;&lt;P&gt;Anyway, whatever it is, you'll be fine. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 18:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-two-variables-decimal-comma-versus-decimal-point/m-p/599460#M1110308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-04T18:31:10Z</dc:date>
    </item>
  </channel>
</rss>

