<?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 Creating a comma separated list in a field from multiple records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-comma-separated-list-in-a-field-from-multiple-records/m-p/208758#M64016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.. I knew I was making it much harder than it needed to be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Apr 2010 13:45:07 GMT</pubDate>
    <dc:creator>sicilianif</dc:creator>
    <dc:date>2010-04-09T13:45:07Z</dc:date>
    <item>
      <title>Creating a comma separated list in a field from multiple records</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-comma-separated-list-in-a-field-from-multiple-records/m-p/208756#M64014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is something that I already have a solution for, but am thinking that there might be an easier or better way.&lt;/P&gt;&lt;P&gt;What I have is a table with a vendor number and a type. A vendor can be of one or more types. The users want to see the types in a comma separated fashion. See before and after example below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1369_sourceID:1369" /&gt;&lt;/P&gt;&lt;P&gt;Here is how I am currently doing it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt; Vendors:&lt;BR /&gt; LOAD * INLINE&lt;BR /&gt; [ Vendor, VendorType&lt;BR /&gt; 123,A&lt;BR /&gt; 123,B&lt;BR /&gt; 124,A&lt;BR /&gt; 125,A&lt;BR /&gt; 125,C&lt;BR /&gt; 126,B ];&lt;BR /&gt; ListTemp:&lt;BR /&gt; LOAD&lt;BR /&gt; 'X' as VendorTypeList,&lt;BR /&gt; 1 as Rec,&lt;BR /&gt; VendorType,&lt;BR /&gt; Vendor&lt;BR /&gt; RESIDENT Vendors;&lt;BR /&gt; ListTemp2:&lt;BR /&gt; LOAD&lt;BR /&gt; Vendor,&lt;BR /&gt; If (Previous(Vendor)=Vendor, Peek(VendorTypeList) &amp;amp; ' , ' &amp;amp; VendorType,VendorType) as VendorTypeList ,&lt;BR /&gt; numsum( Rec, peek('RecCount')) as RecCount&lt;BR /&gt; RESIDENT ListTemp&lt;BR /&gt; ORDER BY Vendor,VendorType;&lt;BR /&gt; DR0P TABLE ListTemp;&lt;BR /&gt; VendorList:&lt;BR /&gt; LOAD&lt;BR /&gt; Vendor,&lt;BR /&gt; MAXSTRING(VendorTypeList) as VendorTypeList&lt;BR /&gt; RESIDENT ListTemp2&lt;BR /&gt; GROUP BY Vendor&lt;BR /&gt; ORDER BY RecCount;&lt;BR /&gt;&lt;BR /&gt; DR0P TABLE ListTemp2;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts or ideas are greatly apreciated..&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 13:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-comma-separated-list-in-a-field-from-multiple-records/m-p/208756#M64014</guid>
      <dc:creator>sicilianif</dc:creator>
      <dc:date>2010-04-09T13:30:28Z</dc:date>
    </item>
    <item>
      <title>Creating a comma separated list in a field from multiple records</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-comma-separated-list-in-a-field-from-multiple-records/m-p/208757#M64015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;load&lt;BR /&gt; Vendor,&lt;BR /&gt; concat(VendorType, ' ,') as VendorTypes&lt;BR /&gt;resident&lt;BR /&gt; Vendors&lt;BR /&gt;group by&lt;BR /&gt; Vendor&lt;BR /&gt;;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 13:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-comma-separated-list-in-a-field-from-multiple-records/m-p/208757#M64015</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-04-09T13:34:40Z</dc:date>
    </item>
    <item>
      <title>Creating a comma separated list in a field from multiple records</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-comma-separated-list-in-a-field-from-multiple-records/m-p/208758#M64016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.. I knew I was making it much harder than it needed to be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 13:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-comma-separated-list-in-a-field-from-multiple-records/m-p/208758#M64016</guid>
      <dc:creator>sicilianif</dc:creator>
      <dc:date>2010-04-09T13:45:07Z</dc:date>
    </item>
  </channel>
</rss>

