<?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: Load script : CSV file with single quote in numeric field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143281#M93014</link>
    <description>&lt;P&gt;Maybe there is no single quote as a value else it might be a kind of replacement for nothing respectively a meta-data control char. Means if you want in Excel to make a number to be a string you could change the cell-format or applying any string-function or just adding a single quote before the number. Within the normal Excel view you won't see this extra char - only if you goes directly in the cell it will be displayed.&lt;/P&gt;
&lt;P&gt;Therefore you may try to load this field directly without any transformation or checking against a numeric content and adding a default-value if it's not, maybe something like this:&lt;/P&gt;
&lt;P&gt;alt(&lt;SPAN&gt;PrezzoListino, null()) as&amp;nbsp;PrezzoListino&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Dec 2023 12:23:30 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2023-12-01T12:23:30Z</dc:date>
    <item>
      <title>Load script : CSV file with single quote in numeric field</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143205#M93009</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a load script of an csv file with a numeric field (price) where , if there isn't value, there is a single quote.&lt;/P&gt;
&lt;P&gt;An example of field in csv:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pattyccia_0-1701420872485.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120871i5FDFAC7B7B9C8760/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pattyccia_0-1701420872485.png" alt="pattyccia_0-1701420872485.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How I can replace the single quote with nothing?&lt;/P&gt;
&lt;P&gt;I tried with&lt;/P&gt;
&lt;P&gt;LOAD &lt;BR /&gt;&amp;nbsp;PurgeChar(PrezzoListino, chr(39)) as PrezzoListino,&lt;/P&gt;
&lt;P&gt;.....&lt;/P&gt;
&lt;P&gt;but doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried also with:&lt;/P&gt;
&lt;P&gt;LOAD &lt;BR /&gt;&amp;nbsp;replace(PrezzoListino, chr(39),'') as PrezzoListino,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Patrizia&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 09:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143205#M93009</guid>
      <dc:creator>pattyccia</dc:creator>
      <dc:date>2023-12-01T09:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Load script : CSV file with single quote in numeric field</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143211#M93010</link>
      <description>&lt;P&gt;it is not working might be it is not single quote.&lt;/P&gt;
&lt;P&gt;instead of purgechar() try using keepchar()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;try below&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;KeepChar (PrezzoListino,'0123456789' )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Prashant Sangle&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 09:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143211#M93010</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2023-12-01T09:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Load script : CSV file with single quote in numeric field</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143245#M93011</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp; it works only if there is one field with single quote.&lt;/P&gt;
&lt;P&gt;If I have for example following field with 2 field (FieldB and FieldC) with single quote ,this is the situation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example csv:&lt;/P&gt;
&lt;P&gt;FieldA;FieldB;FieldC;PrezzoListino;DataListino;FieldD;FieldE&lt;BR /&gt;20191201;';';216732.00;20220615;4V14F9;IB&lt;/P&gt;
&lt;P&gt;In Load script:&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;FieldA,&lt;BR /&gt;KeepChar (FieldB,'0123456789' ) as FieldB,&lt;BR /&gt;KeepChar (FieldC,'0123456789' ) as FieldC,&lt;BR /&gt;KeepChar (PrezzoListino,'0123456789.' ) as PrezzoListino,&lt;BR /&gt;DataListino,&lt;BR /&gt;FieldD,&lt;BR /&gt;FieldC,&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;In data preview on Qlik appear in this way, the values ​​in the subsequent fields are misaligned:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pattyccia_0-1701426236921.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120881i8AE2CD4386F42054/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pattyccia_0-1701426236921.png" alt="pattyccia_0-1701426236921.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;Patrizia&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 10:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143245#M93011</guid>
      <dc:creator>pattyccia</dc:creator>
      <dc:date>2023-12-01T10:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Load script : CSV file with single quote in numeric field</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143267#M93012</link>
      <description>&lt;P&gt;is it possible you to share data file?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 11:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143267#M93012</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2023-12-01T11:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Load script : CSV file with single quote in numeric field</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143281#M93014</link>
      <description>&lt;P&gt;Maybe there is no single quote as a value else it might be a kind of replacement for nothing respectively a meta-data control char. Means if you want in Excel to make a number to be a string you could change the cell-format or applying any string-function or just adding a single quote before the number. Within the normal Excel view you won't see this extra char - only if you goes directly in the cell it will be displayed.&lt;/P&gt;
&lt;P&gt;Therefore you may try to load this field directly without any transformation or checking against a numeric content and adding a default-value if it's not, maybe something like this:&lt;/P&gt;
&lt;P&gt;alt(&lt;SPAN&gt;PrezzoListino, null()) as&amp;nbsp;PrezzoListino&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 12:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143281#M93014</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-12-01T12:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load script : CSV file with single quote in numeric field</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143289#M93017</link>
      <description>&lt;P&gt;Hi Prashant,&lt;/P&gt;
&lt;P&gt;I send file in attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;Patrizia&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 13:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143289#M93017</guid>
      <dc:creator>pattyccia</dc:creator>
      <dc:date>2023-12-01T13:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load script : CSV file with single quote in numeric field</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143293#M93018</link>
      <description>&lt;P&gt;I tried with Replace()&lt;/P&gt;
&lt;P&gt;Replace(PrezzoListino,chr(39),'') as PrezzoListino_new,&lt;/P&gt;
&lt;P&gt;it is working&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 13:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143293#M93018</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2023-12-01T13:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Load script : CSV file with single quote in numeric field</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143299#M93020</link>
      <description>&lt;P&gt;LOAD&lt;BR /&gt;FieldA,&lt;BR /&gt;FieldB,&lt;BR /&gt;Replace(FieldB,chr(39),'') as FieldB_new,&lt;BR /&gt;FieldC,&lt;BR /&gt;Replace(FieldC,chr(39),'') as FieldC_new,&lt;BR /&gt;PrezzoListino,&lt;BR /&gt;Replace(PrezzoListino,chr(39),'') as PrezzoListino_new,&lt;BR /&gt;DataListino,&lt;BR /&gt;FieldD,&lt;BR /&gt;FieldE,&lt;BR /&gt;FieldF&lt;BR /&gt;FROM [lib://data/SmpleData.csv]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is ';', &lt;STRONG&gt;no quotes&lt;/STRONG&gt;);&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 13:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143299#M93020</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2023-12-01T13:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Load script : CSV file with single quote in numeric field</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143316#M93024</link>
      <description>&lt;P&gt;I probably thought the problem was just the field "PrezzoListino" when I wrote this post.&lt;BR /&gt;Now the field "PrezzoListino" is ok but the problem seems to be the following:&lt;/P&gt;
&lt;P&gt;In case there are two consecutive fields with single quote, I have for these records that the values ​​in the subsequent fields are misaligned:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pattyccia_0-1701438142774.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120893iA2EC43F79F7B6993/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pattyccia_0-1701438142774.png" alt="pattyccia_0-1701438142774.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Are you also experiencing the same problem?&lt;/P&gt;
&lt;P&gt;Tks&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 13:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143316#M93024</guid>
      <dc:creator>pattyccia</dc:creator>
      <dc:date>2023-12-01T13:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Load script : CSV file with single quote in numeric field</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143339#M93027</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127689"&gt;@pattyccia&lt;/a&gt;&amp;nbsp;, I already saw that check my second reply after. See highlighted text in bold will do the trick for you&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 14:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143339#M93027</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2023-12-01T14:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Load script : CSV file with single quote in numeric field</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143342#M93029</link>
      <description>&lt;P&gt;Make sure that msq is disabled within the file-format, like suggest from&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;per:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(txt, utf8, embedded labels, delimiter is ';',&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;no quotes&lt;/STRONG&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 14:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143342#M93029</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-12-01T14:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Load script : CSV file with single quote in numeric field</title>
      <link>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143349#M93032</link>
      <description>&lt;P&gt;Sorry, I was probably replying to you when it arrived &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much... it works fine!&lt;/P&gt;
&lt;P&gt;Patrizia&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 14:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-script-CSV-file-with-single-quote-in-numeric-field/m-p/2143349#M93032</guid>
      <dc:creator>pattyccia</dc:creator>
      <dc:date>2023-12-01T14:28:33Z</dc:date>
    </item>
  </channel>
</rss>

