<?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: Combine fields into a single field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combine-fields-into-a-single-field/m-p/1150805#M376116</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;LOAD ID, Concat(Distinct SportsLiked, ',') as SportsLiked &lt;/P&gt;&lt;P&gt;WHERE Len(Trim(SportsLiked))&amp;lt;&amp;gt;0 &lt;/P&gt;&lt;P&gt;GROUP BY ID;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2016 09:43:39 GMT</pubDate>
    <dc:creator>muthukumar77</dc:creator>
    <dc:date>2016-06-20T09:43:39Z</dc:date>
    <item>
      <title>Combine fields into a single field</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-fields-into-a-single-field/m-p/1150803#M376114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My database contains information on survey results, with fields such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SportsLiked&lt;/P&gt;&lt;P&gt;Sport1&lt;/P&gt;&lt;P&gt;Sport2&lt;/P&gt;&lt;P&gt;Sport3&lt;/P&gt;&lt;P&gt;Sport4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields Sport1, Sport2, etc. may or may not be blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I LOAD this data, I want to generate a single field which contains all the non-blank sports, separated by a delimiter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in QlikView my table would have a field called SportsLIked, and contents such as 'Cricket;Tennis;Hockey'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any neat ideas please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 08:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-fields-into-a-single-field/m-p/1150803#M376114</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2016-06-20T08:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Combine fields into a single field</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-fields-into-a-single-field/m-p/1150804#M376115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this using a CROSSTABLE LOAD prefix:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CROSS:&lt;/P&gt;&lt;P&gt;CROSSTABLE (SportsLikedFieldName, SportsLikedFieldValue,2)&lt;/P&gt;&lt;P&gt;LOAD SurveyID, SportsLiked, Sport1,Sport2,Sport3,Sport4 //Could contain a lot more fields&lt;/P&gt;&lt;P&gt;FROM ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESULT:&lt;/P&gt;&lt;P&gt;LOAD SurveyID, Concat( &lt;SPAN style="font-size: 13.3333px;"&gt;SportsLikedFieldValue, ',') as SportsLikedGrouped&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;WHERE Len(Trim(&lt;SPAN style="font-size: 13.3333px;"&gt;SportsLikedFieldValue))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;GROUP BY &lt;SPAN style="font-size: 13.3333px;"&gt;SurveyID;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 09:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-fields-into-a-single-field/m-p/1150804#M376115</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-20T09:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Combine fields into a single field</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-fields-into-a-single-field/m-p/1150805#M376116</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;LOAD ID, Concat(Distinct SportsLiked, ',') as SportsLiked &lt;/P&gt;&lt;P&gt;WHERE Len(Trim(SportsLiked))&amp;lt;&amp;gt;0 &lt;/P&gt;&lt;P&gt;GROUP BY ID;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 09:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-fields-into-a-single-field/m-p/1150805#M376116</guid>
      <dc:creator>muthukumar77</dc:creator>
      <dc:date>2016-06-20T09:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Combine fields into a single field</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-fields-into-a-single-field/m-p/1150806#M376117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Muthukumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;In my data, there is only a single record for each ID, with all the sports on that record, so GROUP CONCAT won't work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 10:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-fields-into-a-single-field/m-p/1150806#M376117</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2016-06-20T10:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Combine fields into a single field</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-fields-into-a-single-field/m-p/1150807#M376118</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;Can you send Actual output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 10:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-fields-into-a-single-field/m-p/1150807#M376118</guid>
      <dc:creator>muthukumar77</dc:creator>
      <dc:date>2016-06-20T10:49:34Z</dc:date>
    </item>
  </channel>
</rss>

