<?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: how to load words of a string into a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-load-words-of-a-string-into-a-table/m-p/72575#M604669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share few rows of data that you have and what exactly you would like to have as an output. It would also help if you can share what you have used as a script thus far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2018 12:35:27 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-06-25T12:35:27Z</dc:date>
    <item>
      <title>how to load words of a string into a table</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-load-words-of-a-string-into-a-table/m-p/72573#M604667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm blocked with this problem for several days ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can extract a string from a XML file and I can put it into a field of a table, by using LOAD FROM file (XmlSimple, Table is ...). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, rather than inserting the string, I would like to insert each word of this string (words are separated by « ; ») into the table. And there, I am blocked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I handle well functions like « subfields », « substringcount »…&amp;nbsp; to extract each word but I do not know where to put the loop (« for » or « do while ») in order to load each word of the string into the table…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 07:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-load-words-of-a-string-into-a-table/m-p/72573#M604667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-25T07:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to load words of a string into a table</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-load-words-of-a-string-into-a-table/m-p/72574#M604668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't specify the third parameter in SubField(), it will create as many rows as different values, without any loop required:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubField('Value1;Value2', ';') AS Field // will create 2 rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SubField('Value1;Value2&lt;SPAN style="font-size: 13.3333px;"&gt;;Value3&lt;SPAN style="font-size: 13.3333px;"&gt;;Value4&lt;SPAN style="font-size: 13.3333px;"&gt;;ValueA&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;', ';') AS Field // will create 5 rows&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 12:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-load-words-of-a-string-into-a-table/m-p/72574#M604668</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-06-25T12:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to load words of a string into a table</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-load-words-of-a-string-into-a-table/m-p/72575#M604669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share few rows of data that you have and what exactly you would like to have as an output. It would also help if you can share what you have used as a script thus far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 12:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-load-words-of-a-string-into-a-table/m-p/72575#M604669</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-25T12:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to load words of a string into a table</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-load-words-of-a-string-into-a-table/m-p/72576#M604670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what you need seems to look at this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load ......, subfield(trim('your text field'),' ',iterno()) as word, ....&lt;/P&gt;&lt;P&gt;from 'your table' while iterno()&amp;nbsp; &amp;lt;= substringcount(trim('your text field')," ")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you have a loop (while iterno() for each text field which depends on number of blank char)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 13:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-load-words-of-a-string-into-a-table/m-p/72576#M604670</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-06-25T13:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to load words of a string into a table</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-load-words-of-a-string-into-a-table/m-p/72577#M604671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems working by simply removing the third parameter. thank you for the tip !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However each word is extracted "as is", even with the blank space just before the word. It would not be a problem if all words would be with this blank space, but the first word has no blank space which makes the ordering (ascendent for example) not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you know how to normalize the format of the words (ie without blank space) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 08:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-load-words-of-a-string-into-a-table/m-p/72577#M604671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-26T08:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to load words of a string into a table</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-load-words-of-a-string-into-a-table/m-p/72578#M604672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To remove Blanks, use Trim() function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Trim(SubField(....)) as ....&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 16:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-load-words-of-a-string-into-a-table/m-p/72578#M604672</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-26T16:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to load words of a string into a table</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-load-words-of-a-string-into-a-table/m-p/72579#M604673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works.&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 07:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-load-words-of-a-string-into-a-table/m-p/72579#M604673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-27T07:55:56Z</dc:date>
    </item>
  </channel>
</rss>

