<?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 Loading from database vs text file (rounding) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-from-database-vs-text-file-rounding/m-p/529082#M692996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm seeing some weird behavior when loading from a text file vs directly from the database.&amp;nbsp; My test is database -&amp;gt; text file -&amp;gt; QV vs. database -&amp;gt; QV.&amp;nbsp; When loading from the db, the amount fields appear to be rounding.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text file row:&lt;/P&gt;&lt;P&gt;"|"20130611"|"180200"|"-1"|"435166"|"34"|"-1_20130611"|"UNKNOWN"|"ZAF"|&lt;STRONG&gt;"-6112.9157"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV value when loading from text file:&amp;nbsp; -6112.9157&lt;/P&gt;&lt;P&gt;QV value when loading directly from the db:&amp;nbsp; -6112.92&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SQL for loading the txt file is exactly the same as what's used to load QV directly (just a select * with a where clause).&amp;nbsp; Any idea what this behavior could be related to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE:&amp;nbsp; If i change the SQL within QV to "cast(amt as varchar(20)) as amt" then it shows up with 4 decimal places and doesn't round.&amp;nbsp; Could this be an issue with the ODBC driver rounding on the way in?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jul 2013 14:39:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-26T14:39:39Z</dc:date>
    <item>
      <title>Loading from database vs text file (rounding)</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-database-vs-text-file-rounding/m-p/529082#M692996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm seeing some weird behavior when loading from a text file vs directly from the database.&amp;nbsp; My test is database -&amp;gt; text file -&amp;gt; QV vs. database -&amp;gt; QV.&amp;nbsp; When loading from the db, the amount fields appear to be rounding.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text file row:&lt;/P&gt;&lt;P&gt;"|"20130611"|"180200"|"-1"|"435166"|"34"|"-1_20130611"|"UNKNOWN"|"ZAF"|&lt;STRONG&gt;"-6112.9157"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV value when loading from text file:&amp;nbsp; -6112.9157&lt;/P&gt;&lt;P&gt;QV value when loading directly from the db:&amp;nbsp; -6112.92&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SQL for loading the txt file is exactly the same as what's used to load QV directly (just a select * with a where clause).&amp;nbsp; Any idea what this behavior could be related to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE:&amp;nbsp; If i change the SQL within QV to "cast(amt as varchar(20)) as amt" then it shows up with 4 decimal places and doesn't round.&amp;nbsp; Could this be an issue with the ODBC driver rounding on the way in?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 14:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-database-vs-text-file-rounding/m-p/529082#M692996</guid>
      <dc:creator />
      <dc:date>2013-07-26T14:39:39Z</dc:date>
    </item>
  </channel>
</rss>

