<?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 Variable rounding to 2 decimal points in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-rounding-to-2-decimal-points/m-p/1291907#M622310</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 have set up my script to pull through a range of variables from an excel file. Unfortunately, qlik seems to be rounding these variables to 2 decimal points but I need them to at least 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to change this format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below for my script to load in variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Variables:&lt;/P&gt;&lt;P&gt;LOAD Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VarValue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;P:\Rentokil Pest Control\D99 Management\Pricing and Margin Analysis\Z. Qlikview models\Hygiene\Mapping data\Variables.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Create variables&lt;/P&gt;&lt;P&gt;for i = 0 to NoOfRows('Temp_Variables') - 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vName = peek('Name', i, 'Temp_Variables'); // Name of the variable&lt;/P&gt;&lt;P&gt;&amp;nbsp; let $(vName) = peek('VarValue', i, 'Temp_Variables'); // Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Remove temp variables&lt;/P&gt;&lt;P&gt;let i = null();&lt;/P&gt;&lt;P&gt;let vName = null();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Remove temp tables&lt;/P&gt;&lt;P&gt;drop table Temp_Variables;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2017 09:09:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-15T09:09:34Z</dc:date>
    <item>
      <title>Variable rounding to 2 decimal points</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-rounding-to-2-decimal-points/m-p/1291907#M622310</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 have set up my script to pull through a range of variables from an excel file. Unfortunately, qlik seems to be rounding these variables to 2 decimal points but I need them to at least 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to change this format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below for my script to load in variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Variables:&lt;/P&gt;&lt;P&gt;LOAD Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VarValue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;P:\Rentokil Pest Control\D99 Management\Pricing and Margin Analysis\Z. Qlikview models\Hygiene\Mapping data\Variables.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Create variables&lt;/P&gt;&lt;P&gt;for i = 0 to NoOfRows('Temp_Variables') - 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vName = peek('Name', i, 'Temp_Variables'); // Name of the variable&lt;/P&gt;&lt;P&gt;&amp;nbsp; let $(vName) = peek('VarValue', i, 'Temp_Variables'); // Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Remove temp variables&lt;/P&gt;&lt;P&gt;let i = null();&lt;/P&gt;&lt;P&gt;let vName = null();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Remove temp tables&lt;/P&gt;&lt;P&gt;drop table Temp_Variables;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 09:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-rounding-to-2-decimal-points/m-p/1291907#M622310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-15T09:09:34Z</dc:date>
    </item>
  </channel>
</rss>

