<?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: STORE statement rounding decimal values in csv in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001474#M649008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try adding Text() around the field. &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Query [SQL query amended for publication]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CLTOT:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load text(cltot) as cltot,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;rundate;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SELECT&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; SUM (p.cltot) cltot,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; TO_CHAR (SYSDATE, 'dd/mm/yyyy') rundate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM .portfolio p,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clients c,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GROUP BY p.owner;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2015 12:25:58 GMT</pubDate>
    <dc:creator>simenkg</dc:creator>
    <dc:date>2015-09-23T12:25:58Z</dc:date>
    <item>
      <title>STORE statement rounding decimal values in csv</title>
      <link>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001468#M649001</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 an application that runs a simple SQL query, the dataset returns a simple data table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script then goes on to store this table in QVD format and csv format - however the CSV has no decimal places whilst the application and the QVD output does in face hace 2 decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone let me know if they have any ideas how to overcome this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried changing the document settings as well as the table setting for number format - but am willing to try (or re-try) anything!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stewart &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&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;SET TimeFormat='hh:mm:ss';&lt;/P&gt;&lt;P&gt;SET DateFormat='DD/MM/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[connection string removed]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Variables: [filepaths amended for publication]&lt;/P&gt;&lt;P&gt;Let vDate = Date(Now(), 'YYYY.MM.DD');&lt;/P&gt;&lt;P&gt;let vPath = '\QlikView\CLTOT $(vDate).qvd (qvd)';&lt;/P&gt;&lt;P&gt;let vPath2 = '\2015\CLTOT $(vDate).csv (txt)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Query [SQL query amended for publication]&lt;/P&gt;&lt;P&gt;CLTOT:&lt;/P&gt;&lt;P&gt;SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM (p.cltot) cltot, &lt;/P&gt;&lt;P&gt;&amp;nbsp; TO_CHAR (SYSDATE, 'dd/mm/yyyy') rundate&lt;/P&gt;&lt;P&gt;FROM .portfolio p, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clients c, &lt;/P&gt;&lt;P&gt;GROUP BY p.owner;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Save down hard copy&lt;/P&gt;&lt;P&gt;STORE CLTOT into $(vPath);&lt;/P&gt;&lt;P&gt;STORE CLTOT into $(vPath2);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 13:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001468#M649001</guid>
      <dc:creator>stewart_lancast</dc:creator>
      <dc:date>2015-09-22T13:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: STORE statement rounding decimal values in csv</title>
      <link>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001469#M649002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing I can suggest - go to Document Properties | Number. Find the field cltot and set the format to fixed with two decimal places. And make sure that the option to survive reload is checked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 13:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001469#M649002</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-22T13:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: STORE statement rounding decimal values in csv</title>
      <link>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001470#M649003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just tried the above and the csv output still has no decimals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried the same settings in the table box properties and the output is still rounded (in the csv only, not in the qvd)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 14:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001470#M649003</guid>
      <dc:creator>stewart_lancast</dc:creator>
      <dc:date>2015-09-22T14:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: STORE statement rounding decimal values in csv</title>
      <link>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001471#M649004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have also tried wrapping &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(CLTOT, '#,##.00', '.' , ',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;around the value before the store statement but that causes an error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 14:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001471#M649004</guid>
      <dc:creator>stewart_lancast</dc:creator>
      <dc:date>2015-09-22T14:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: STORE statement rounding decimal values in csv</title>
      <link>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001472#M649006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stewart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may help.&amp;nbsp; From this example, you can use LOAD RESIDENT to reformat the value to dec(8,2) or whatever you want and then store the result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOURTAB:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [theLbl, theVal&lt;/P&gt;&lt;P&gt;a,12313.2312321&lt;/P&gt;&lt;P&gt;b,31.231321&lt;/P&gt;&lt;P&gt;c,29.99&lt;/P&gt;&lt;P&gt;d,132.321 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOURTAB2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD theLbl, num(theVal,'#.##') as theVal2 RESIDENT YOURTAB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store YOURTAB2&amp;nbsp;&amp;nbsp;&amp;nbsp; into [\\path\file.csv]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (txt);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 11:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001472#M649006</guid>
      <dc:creator />
      <dc:date>2015-09-23T11:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: STORE statement rounding decimal values in csv</title>
      <link>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001473#M649007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks @&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/alexberry"&gt;alexberry&lt;/A&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry if i am being slow - i have tried to use the above and here is what i have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Variables: [filepaths amended for publication]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vDate = Date(Now(), 'YYYY.MM.DD');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vPath = '\QlikView\CLTOT $(vDate).qvd (qvd)';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vPath2 = '\2015\CLTOT $(vDate).csv (txt)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Query [SQL query amended for publication]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CLTOT:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SELECT&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; SUM (p.cltot) cltot,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; TO_CHAR (SYSDATE, 'dd/mm/yyyy') rundate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM .portfolio p,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clients c,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GROUP BY p.owner;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; CLTOT2:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;load * INLINE [num(CLTOT, '#,##.00'),&lt;/TD&gt;&lt;TD&gt;RUNDATE];&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Save down hard copy&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;STORE CLTOT into $(vPath);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;STORE CLTOT2 into $(vPath2);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;this isnt importing any values other than the headings at present.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;i have also tried:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; CLTOT2:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;load&amp;nbsp; [&lt;SPAN style="font-size: 13.3333px;"&gt;num(CLTOT, '#,##.00'),&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;RUNDATE] resident CLTOT;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could anyone provide any further suggestions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 12:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001473#M649007</guid>
      <dc:creator>stewart_lancast</dc:creator>
      <dc:date>2015-09-23T12:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: STORE statement rounding decimal values in csv</title>
      <link>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001474#M649008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try adding Text() around the field. &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Query [SQL query amended for publication]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CLTOT:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load text(cltot) as cltot,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;rundate;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SELECT&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; SUM (p.cltot) cltot,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; TO_CHAR (SYSDATE, 'dd/mm/yyyy') rundate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM .portfolio p,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clients c,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GROUP BY p.owner;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 12:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001474#M649008</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2015-09-23T12:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: STORE statement rounding decimal values in csv</title>
      <link>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001475#M649010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stewart, your CLTOT2 is not quite what I'm suggesting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In my example, I wrote:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; theLbl,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(theVal,'#.##') as theVal2&lt;/P&gt;&lt;P&gt;RESIDENT YOURTAB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;And you are using:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(CLTOT, '#,##.00'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RUNDATE];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;In this case, wouldn't your CLTOT2 be something like this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLTOT2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(cltot, '#,##.00') as cltot,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rundate]&lt;/P&gt;&lt;P&gt;RESIDENT CLTOT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 13:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001475#M649010</guid>
      <dc:creator />
      <dc:date>2015-09-23T13:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: STORE statement rounding decimal values in csv</title>
      <link>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001476#M649011</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 found a workaround - changing the sql query seems to pull the correct values to both the QVD and the CSV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i still think the issue I was experiencing must have been to do with some of the formatting (or some other setting). but this seems to force through the values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TO_CHAR (SUM (h2.cltot), '99999D99' ) cltot,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Script:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET MoneyFormat='£#,##0.00;-£#,##0.00';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET TimeFormat='hh:mm:ss';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET DateFormat='DD/MM/YYYY';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[connection string removed]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Variables: [filepaths amended for publication]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vDate = Date(Now(), 'YYYY.MM.DD');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vPath = '\QlikView\CLTOT $(vDate).qvd (qvd)';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let vPath2 = '\2015\CLTOT $(vDate).csv (txt)';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Query [SQL query amended for publication]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CLTOT:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SELECT&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;TO_CHAR (SUM (h2.cltot), '99999D99' ) cltot,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; TO_CHAR (SYSDATE, 'dd/mm/yyyy') rundate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM .portfolio p,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clients c,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GROUP BY p.owner;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Save down hard copy&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;STORE CLTOT into $(vPath);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;STORE CLTOT into $(vPath2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you to &lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 11.7px; line-height: 1.5em; font-style: inherit;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="8101" data-externalid="" data-presence="null" data-userid="137372" data-username="bwisenoSimenKG" href="https://community.qlik.com/people/bwisenoSimenKG"&gt;&lt;SPAN style="padding-right: 3px; color: #3778c7; font-size: 1.1em; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;@Simen Kind Gulbrandsen, &lt;/SPAN&gt;&lt;/A&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="10778" data-externalid="" data-presence="null" data-userid="204415" data-username="alexberry" href="https://community.qlik.com/people/alexberry" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7; text-decoration: underline;"&gt;&lt;SPAN style="padding-right: 3px; color: #3778c7; font-size: 1.1em; font-style: inherit; font-family: inherit; text-decoration: underline; font-weight: inherit;"&gt;@Alex Berry &amp;amp; &lt;/SPAN&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;@&lt;SPAN style="padding-right: 3px; color: #3778c7; font-size: 1.1em; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;jonathan dienst&lt;/SPAN&gt; &lt;SPAN class="icon-status-icon icon-partner" style="margin: 0 0 0 4px; font-weight: inherit; font-style: inherit; font-size: 11.7px; font-family: inherit;" title="Partner"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;for your kind suggestions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 13:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1001476#M649011</guid>
      <dc:creator>stewart_lancast</dc:creator>
      <dc:date>2015-09-23T13:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: STORE statement rounding decimal values in csv</title>
      <link>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1619939#M649013</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;this solution also worked:&amp;nbsp;Round(yourexpression, 0.0001) but not always! for some reason if you don't use a different alias for the columns than the original expression it does not work. if you change the name, it works.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 10:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/STORE-statement-rounding-decimal-values-in-csv/m-p/1619939#M649013</guid>
      <dc:creator>IuliaM</dc:creator>
      <dc:date>2019-09-04T10:03:05Z</dc:date>
    </item>
  </channel>
</rss>

