<?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: transform a string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/transform-a-string/m-p/764127#M271629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;s:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;first 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // for test, remove&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD id_project_participant, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace(answers, '"', '') as answers&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;answers.csv&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(txt, codepage is 1252, embedded labels, delimiter is ';', msq)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//group by id_project_participant&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;final:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; id_project_participant,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SubField(f1, ':',1) as q,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SubField(f1, ':',2) as a;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; id_project_participant,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SubField(answers, ',') as f1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident s;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Mar 2015 06:51:05 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-03-21T06:51:05Z</dc:date>
    <item>
      <title>transform a string</title>
      <link>https://community.qlik.com/t5/QlikView/transform-a-string/m-p/764126#M271628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a csv file with the following structure:&lt;/P&gt;&lt;P&gt;- First value is Id&lt;/P&gt;&lt;P&gt;- Second value is a string consisting of repeats separated by commas sets with the following content: "1":"3"&lt;/P&gt;&lt;P&gt;The first number (1) is the number of questions and the second number (3) is the value of the reply&lt;/P&gt;&lt;P&gt;They are 55 repetitions and one o two more items but not in all cases&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would get a table with the following structure:&lt;/P&gt;&lt;P&gt;Id, Question, Answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;Input file:&lt;/P&gt;&lt;P&gt;15, "1":"3", "4":"2", "3":"1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table result&lt;/P&gt;&lt;P&gt;15, 1, 3&lt;/P&gt;&lt;P&gt;15, 4, 2&lt;/P&gt;&lt;P&gt;15, 3, 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is csv file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2015 06:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-a-string/m-p/764126#M271628</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2015-03-21T06:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: transform a string</title>
      <link>https://community.qlik.com/t5/QlikView/transform-a-string/m-p/764127#M271629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;s:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;first 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // for test, remove&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD id_project_participant, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace(answers, '"', '') as answers&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;answers.csv&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(txt, codepage is 1252, embedded labels, delimiter is ';', msq)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//group by id_project_participant&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;final:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; id_project_participant,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SubField(f1, ':',1) as q,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SubField(f1, ':',2) as a;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; id_project_participant,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SubField(answers, ',') as f1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident s;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2015 06:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/transform-a-string/m-p/764127#M271629</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-21T06:51:05Z</dc:date>
    </item>
  </channel>
</rss>

