<?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: Decimal number converted to integer in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Decimal-number-converted-to-integer/m-p/1405177#M804541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;EM&gt;with no comma, so all the decimals became an integer number.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mean that, for example 7,12 (decimal comma) becomes 712?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Nov 2017 04:56:20 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2017-11-03T04:56:20Z</dc:date>
    <item>
      <title>Decimal number converted to integer</title>
      <link>https://community.qlik.com/t5/QlikView/Decimal-number-converted-to-integer/m-p/1405175#M804539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;I'm having a strange situation that can't solve. &lt;/P&gt;&lt;P&gt;First of all, here's the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmpTable3:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eMediana as bulkInsert &lt;STRONG&gt;--&amp;gt; Here I'm loading a single number, with decimals&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resident tmpTable2&lt;/P&gt;&lt;P&gt;where mes = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vBulkInsert = Num(Peek('bulkInsert')); &lt;STRONG&gt;--&amp;gt; Here i'm storing that number into a variable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table tmpTable3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmpTable4:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Resident tmpTable2; &lt;STRONG&gt;--&amp;gt; Loading more stuff&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;STRONG&gt;--&amp;gt; Adding a single line by hand, using the number stored earlier ion variable &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;vBulkInsert&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;13 as mes,&lt;/P&gt;&lt;P&gt;$(vBulkInsert) as eMediana&lt;/P&gt;&lt;P&gt;AutoGenerate(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this is what I get. &lt;/P&gt;&lt;P&gt;If I print the data stored in the variable into a text object, I get the correct number. No problem here. &lt;/P&gt;&lt;P&gt;But, when I use the number stored in &lt;SPAN style="font-size: 13.3333px;"&gt;eMediana from mes 13 &lt;/SPAN&gt;from the table &lt;SPAN style="font-size: 13.3333px;"&gt;tmpTable4, I get the same number, bit with no comma, so all the decimals became an integer number. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have been trying to solve with number formatting, commas and dots as decimasl o thousands delimiter, but with no success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any help will be preciated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decimal-number-converted-to-integer/m-p/1405175#M804539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal number converted to integer</title>
      <link>https://community.qlik.com/t5/QlikView/Decimal-number-converted-to-integer/m-p/1405176#M804540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be load with num function&lt;/P&gt;&lt;P&gt;Num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 28.6924px;"&gt;$(vBulkInsert), '#,##,00') as eMediana&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 04:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decimal-number-converted-to-integer/m-p/1405176#M804540</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-03T04:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal number converted to integer</title>
      <link>https://community.qlik.com/t5/QlikView/Decimal-number-converted-to-integer/m-p/1405177#M804541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;EM&gt;with no comma, so all the decimals became an integer number.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mean that, for example 7,12 (decimal comma) becomes 712?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 04:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decimal-number-converted-to-integer/m-p/1405177#M804541</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-11-03T04:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal number converted to integer</title>
      <link>https://community.qlik.com/t5/QlikView/Decimal-number-converted-to-integer/m-p/1405178#M804542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Anil. I tried what you said, but as a result I get zero (0.00) in table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 13:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decimal-number-converted-to-integer/m-p/1405178#M804542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-03T13:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal number converted to integer</title>
      <link>https://community.qlik.com/t5/QlikView/Decimal-number-converted-to-integer/m-p/1405179#M804543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right. That's exactlly what is happening. But only when loading variable content (the number here is ok) to the table (the result is the same number but with no comma, as an integer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 13:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decimal-number-converted-to-integer/m-p/1405179#M804543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-03T13:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal number converted to integer</title>
      <link>https://community.qlik.com/t5/QlikView/Decimal-number-converted-to-integer/m-p/1405180#M804544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found what I was doing wrong. &lt;/P&gt;&lt;P&gt;I was using variables in a wrong way. I use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vMaxDate) instead of '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vMaxDate)'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Adding quotes worked fine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks all fro your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 14:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decimal-number-converted-to-integer/m-p/1405180#M804544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-03T14:48:19Z</dc:date>
    </item>
  </channel>
</rss>

