<?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 explode a list of value ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-explode-a-list-of-value/m-p/260569#M98317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It can be done with subfield function. Attached the example. I used ";" instead of "," as the delimiter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2011 16:56:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-19T16:56:23Z</dc:date>
    <item>
      <title>How to explode a list of value ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-explode-a-list-of-value/m-p/260567#M98315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table that contains the following data:&lt;/P&gt;&lt;P&gt;- product&lt;/P&gt;&lt;P&gt;- category&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, in the field "category", I don't have a single category, but a &lt;STRONG&gt;list of categories, &lt;/STRONG&gt;separated by a coma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;Product, Category&lt;/P&gt;&lt;P&gt;Coca-Cola, 'drink, soda, cola'&lt;/P&gt;&lt;P&gt;Fanta, 'drink, soda, orange'&lt;/P&gt;&lt;P&gt;Orange juice, 'drink, soft, orange'&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to have, as the result of my load, the following:&lt;/P&gt;&lt;P&gt;Product, Category&lt;/P&gt;&lt;P&gt;Coca-Cola, drink&lt;/P&gt;&lt;P&gt;Coca-Cola, soda&lt;/P&gt;&lt;P&gt;Coca-Cola, cola&lt;/P&gt;&lt;P&gt;Fanta, drink&lt;/P&gt;&lt;P&gt;Fanta, soda&lt;/P&gt;&lt;P&gt;Fanta, orange&lt;/P&gt;&lt;P&gt;Orange juice, drink&lt;/P&gt;&lt;P&gt;Orange juice, soft&lt;/P&gt;&lt;P&gt;Orange juice, orange&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nowaday, I use a script that counts the ", " and make loop to extract and concatenate a new table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if there is another simplier way to make this ?&lt;/P&gt;&lt;P&gt;(something like an "explode" function)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 16:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-explode-a-list-of-value/m-p/260567#M98315</guid>
      <dc:creator />
      <dc:date>2011-10-19T16:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to explode a list of value ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-explode-a-list-of-value/m-p/260568#M98316</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;I suggest you have to use subfield it is so easy to load this type of data. If there is single symbol so use one subfield but if there is more symbol so use more than one subfield. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you can do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raw:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Product, Category&lt;/P&gt;&lt;P&gt;Coca-Cola, 'drink,soda,cola'&lt;/P&gt;&lt;P&gt;Fanta, 'drink,soda,orange'&lt;/P&gt;&lt;P&gt;Orange juice, 'drink,soft,orange'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Product,&lt;/P&gt;&lt;P&gt;Subfield(Category,',') as CategoryNew&lt;/P&gt;&lt;P&gt;Resident Raw;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 16:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-explode-a-list-of-value/m-p/260568#M98316</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-10-19T16:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to explode a list of value ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-explode-a-list-of-value/m-p/260569#M98317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It can be done with subfield function. Attached the example. I used ";" instead of "," as the delimiter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 16:56:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-explode-a-list-of-value/m-p/260569#M98317</guid>
      <dc:creator />
      <dc:date>2011-10-19T16:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to explode a list of value ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-explode-a-list-of-value/m-p/260570#M98318</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;And if there is more symbol so do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raw:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Product, Category&lt;/P&gt;&lt;P&gt;Coca-Cola, 'drink,soda,cola'&lt;/P&gt;&lt;P&gt;Fanta, 'drink,soda,orange'&lt;/P&gt;&lt;P&gt;Orange juice, 'drink,soft,orange'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Product,&lt;/P&gt;&lt;P&gt;Subfield(Category,',',1) as CategoryNew&lt;/P&gt;&lt;P&gt;Resident Raw;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Product,&lt;/P&gt;&lt;P&gt;Subfield(Category,',',2) as CategoryNew&lt;/P&gt;&lt;P&gt;Resident Raw;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Product,&lt;/P&gt;&lt;P&gt;Subfield(Category,',',3) as CategoryNew&lt;/P&gt;&lt;P&gt;Resident Raw;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Raw;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know or see the sample attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 17:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-explode-a-list-of-value/m-p/260570#M98318</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-10-19T17:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to explode a list of value ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-explode-a-list-of-value/m-p/260571#M98319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly the function I was looking for, thank you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand what you mean by "if there is more symbols", so I don't understand what does your 2nd example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it's when I want to load only the X first categories ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 18:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-explode-a-list-of-value/m-p/260571#M98319</guid>
      <dc:creator />
      <dc:date>2011-10-19T18:52:41Z</dc:date>
    </item>
  </channel>
</rss>

