<?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: Saving a table with quotes in the data to a csv in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Saving-a-table-with-quotes-in-the-data-to-a-csv/m-p/1736186#M56265</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I have tried for 3 hours,&amp;nbsp;&lt;/P&gt;&lt;P&gt;try with more combination of&amp;nbsp; "" but failed,&lt;/P&gt;&lt;P&gt;then use&amp;nbsp; with chr(10) which is ascii for " this also failed,&lt;/P&gt;&lt;P&gt;then come to conclusion for workaround, finally as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TTT:&lt;BR /&gt;source:&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;MonthYear_num,customer_code&lt;BR /&gt;082019,OVH&lt;BR /&gt;082029,OVA&lt;BR /&gt;];&lt;BR /&gt;table:&lt;BR /&gt;Load&lt;BR /&gt;'"' &amp;amp; MonthYear_num &amp;amp; '"' as MonthYear_num2,&lt;BR /&gt;'"' &amp;amp;customer_code &amp;amp; '"' as customer_code2&lt;BR /&gt;Resident source;&lt;BR /&gt;Drop Table source;&lt;BR /&gt;Store table into [xxxxx/xxx//TTTFunction.csv](txt, delimiter is ';');&lt;BR /&gt;Drop Table table;&lt;BR /&gt;Test:&lt;BR /&gt;Load&lt;BR /&gt;MID("MonthYear_num2;customer_code2",1,8) &amp;amp; MID("MonthYear_num2;customer_code2",10,1) &amp;amp; MID("MonthYear_num2;customer_code2",12,5)as "MonthYear_num2;customer_code2"&lt;BR /&gt;FROM [[xxxxx/xxx//TTTFunction.csv]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is '\t', msq);&lt;BR /&gt;Store Test into [XXX/XXXX/TT1TFunction.csv](txt);&lt;/P&gt;&lt;P&gt;best of luck,&lt;/P&gt;</description>
    <pubDate>Sun, 16 Aug 2020 13:51:50 GMT</pubDate>
    <dc:creator>Ksrinivasan</dc:creator>
    <dc:date>2020-08-16T13:51:50Z</dc:date>
    <item>
      <title>Saving a table with quotes in the data to a csv</title>
      <link>https://community.qlik.com/t5/App-Development/Saving-a-table-with-quotes-in-the-data-to-a-csv/m-p/1735900#M56233</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to save my table to a .csv, and the values should be semicolon seperated.&lt;/P&gt;&lt;P&gt;Inside, the values are looking like "CompanyName"&amp;nbsp; &amp;nbsp; (including the quoation marks).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it seems that the output is trippeling my quotation mark, in&amp;nbsp; Qlik Datamodel everything looks fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;source:&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;MonthYear_num,customer_code&lt;BR /&gt;082019,OVH&lt;BR /&gt;082029,OVA&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;'"' &amp;amp; MonthYear_num &amp;amp; '"' as MonthYear_num2,&lt;BR /&gt;'"' &amp;amp;customer_code &amp;amp; '"' as customer_code2&lt;/P&gt;&lt;P&gt;Resident source;&lt;/P&gt;&lt;P&gt;Drop Table source;&lt;/P&gt;&lt;P&gt;STORE table. INTO $(vGoogleDriveTEMPPath)table.csv (txt, delimiter is ';');&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output looks like:&lt;/P&gt;&lt;P&gt;MonthYear_num2;customer_code2&lt;BR /&gt;"""082019""","""OVH"""&lt;BR /&gt;"""082029""","""OVA"""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know how to save the .csv and the output just has one (instead of three quotes) in front and after each value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;chriys&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Saving-a-table-with-quotes-in-the-data-to-a-csv/m-p/1735900#M56233</guid>
      <dc:creator>chriys1337</dc:creator>
      <dc:date>2021-12-20T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a table with quotes in the data to a csv</title>
      <link>https://community.qlik.com/t5/App-Development/Saving-a-table-with-quotes-in-the-data-to-a-csv/m-p/1736126#M56248</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you have to do one more load with MID function and stored csv.(txt);&lt;/P&gt;&lt;P&gt;then your result will be your way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in addition to Script add&lt;/P&gt;&lt;P&gt;Drop Table table;&lt;/P&gt;&lt;P&gt;Test:&lt;BR /&gt;Load&lt;BR /&gt;MID("MonthYear_num2;customer_code2",1,8) &amp;amp; MID("MonthYear_num2;customer_code2",10,1) &amp;amp; MID("MonthYear_num2;customer_code2",12,5)as "MonthYear_num2;customer_code2"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;From where you stored your table file,&lt;/P&gt;&lt;P&gt;Store Tablename into [path/XXX.csv](txt);&lt;/P&gt;&lt;P&gt;i have verified the result.&lt;/P&gt;&lt;TABLE width="228"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="228"&gt;MonthYear_num2;customer_code2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;"082019";"OVH"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;"082029";"OVA"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 15 Aug 2020 15:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Saving-a-table-with-quotes-in-the-data-to-a-csv/m-p/1736126#M56248</guid>
      <dc:creator>Ksrinivasan</dc:creator>
      <dc:date>2020-08-15T15:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a table with quotes in the data to a csv</title>
      <link>https://community.qlik.com/t5/App-Development/Saving-a-table-with-quotes-in-the-data-to-a-csv/m-p/1736129#M56251</link>
      <description>&lt;P&gt;You could try having &lt;STRONG&gt;no quotes&amp;nbsp;&lt;/STRONG&gt;in the text format specifier:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptSpecifiers/quotes.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptSpecifiers/quotes.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Not sure if this will work, but certainly worth a try.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Aug 2020 15:56:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Saving-a-table-with-quotes-in-the-data-to-a-csv/m-p/1736129#M56251</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2020-08-15T15:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a table with quotes in the data to a csv</title>
      <link>https://community.qlik.com/t5/App-Development/Saving-a-table-with-quotes-in-the-data-to-a-csv/m-p/1736183#M56263</link>
      <description>&lt;P&gt;Thanks a lot for trying this out &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/80712"&gt;@Ksrinivasan&lt;/a&gt;&amp;nbsp;, can you please copy your complete script. I can't rebuild it at the moment, getting an error because&amp;nbsp;&lt;SPAN&gt;MonthYear_num2 and customer_code2 are 2 seperate fields in my initial script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2020 13:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Saving-a-table-with-quotes-in-the-data-to-a-csv/m-p/1736183#M56263</guid>
      <dc:creator>chriys1337</dc:creator>
      <dc:date>2020-08-16T13:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Saving a table with quotes in the data to a csv</title>
      <link>https://community.qlik.com/t5/App-Development/Saving-a-table-with-quotes-in-the-data-to-a-csv/m-p/1736186#M56265</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I have tried for 3 hours,&amp;nbsp;&lt;/P&gt;&lt;P&gt;try with more combination of&amp;nbsp; "" but failed,&lt;/P&gt;&lt;P&gt;then use&amp;nbsp; with chr(10) which is ascii for " this also failed,&lt;/P&gt;&lt;P&gt;then come to conclusion for workaround, finally as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TTT:&lt;BR /&gt;source:&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;MonthYear_num,customer_code&lt;BR /&gt;082019,OVH&lt;BR /&gt;082029,OVA&lt;BR /&gt;];&lt;BR /&gt;table:&lt;BR /&gt;Load&lt;BR /&gt;'"' &amp;amp; MonthYear_num &amp;amp; '"' as MonthYear_num2,&lt;BR /&gt;'"' &amp;amp;customer_code &amp;amp; '"' as customer_code2&lt;BR /&gt;Resident source;&lt;BR /&gt;Drop Table source;&lt;BR /&gt;Store table into [xxxxx/xxx//TTTFunction.csv](txt, delimiter is ';');&lt;BR /&gt;Drop Table table;&lt;BR /&gt;Test:&lt;BR /&gt;Load&lt;BR /&gt;MID("MonthYear_num2;customer_code2",1,8) &amp;amp; MID("MonthYear_num2;customer_code2",10,1) &amp;amp; MID("MonthYear_num2;customer_code2",12,5)as "MonthYear_num2;customer_code2"&lt;BR /&gt;FROM [[xxxxx/xxx//TTTFunction.csv]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is '\t', msq);&lt;BR /&gt;Store Test into [XXX/XXXX/TT1TFunction.csv](txt);&lt;/P&gt;&lt;P&gt;best of luck,&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2020 13:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Saving-a-table-with-quotes-in-the-data-to-a-csv/m-p/1736186#M56265</guid>
      <dc:creator>Ksrinivasan</dc:creator>
      <dc:date>2020-08-16T13:51:50Z</dc:date>
    </item>
  </channel>
</rss>

