<?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 Turn several rows into one in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Turn-several-rows-into-one/m-p/232506#M84108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;maybe you can use concat() and group by clauses like this&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;SaleID,&lt;BR /&gt;Amount,&lt;BR /&gt;Region,&lt;BR /&gt;Concat(SalesPerson,',') as SalesPersonConcat&lt;BR /&gt;from/resident&lt;BR /&gt;group by&lt;BR /&gt;SaleID,&lt;BR /&gt;Amount,&lt;BR /&gt;Region&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;PS. depending on your data, maybe you can use max(Amount) or Avg(Amount) or Sum(Amount), instead of grouping by the field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2011 21:58:42 GMT</pubDate>
    <dc:creator>hector</dc:creator>
    <dc:date>2011-04-27T21:58:42Z</dc:date>
    <item>
      <title>Turn several rows into one</title>
      <link>https://community.qlik.com/t5/QlikView/Turn-several-rows-into-one/m-p/232504#M84106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a straight table with sales info in columns like this:&lt;/P&gt;&lt;P&gt;SaleID Amount SalesPerson Region&lt;/P&gt;&lt;P&gt;A sale can have multiple Sale Persons on it. So I end up with 2 rows for 1 sale. Like this:&lt;/P&gt;&lt;P&gt;SaleID Amount SalesPerson Region&lt;/P&gt;&lt;P&gt;1 100 Tim USA&lt;/P&gt;&lt;P&gt;1 100 Sam USA&lt;/P&gt;&lt;P&gt;I would like to have it be on only one row:&lt;/P&gt;&lt;P&gt;SaleID Amount SalesPerson Region&lt;/P&gt;&lt;P&gt;1 100 Tim, Sam USA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I make an expression do this somehow? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 21:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turn-several-rows-into-one/m-p/232504#M84106</guid>
      <dc:creator />
      <dc:date>2011-04-27T21:42:04Z</dc:date>
    </item>
    <item>
      <title>Turn several rows into one</title>
      <link>https://community.qlik.com/t5/QlikView/Turn-several-rows-into-one/m-p/232505#M84107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When your table is already loaded (I will call it OriginalTable)&lt;/P&gt;&lt;P&gt;you can make:&lt;/P&gt;&lt;P&gt;load SaleIdD, Amount, concat(SalesPerson',', ') as SalesPeople,&lt;/P&gt;&lt;P&gt;//if you don't change at least one field name you will have to use noconcatenate before LOAD statement&lt;/P&gt;&lt;P&gt;Region&lt;/P&gt;&lt;P&gt;resident OriginalTable&lt;/P&gt;&lt;P&gt;group by SaleID, Amount, Region;&lt;/P&gt;&lt;P&gt;drop table OriginalTable;// if you don't drop it's better to change field names&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 21:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turn-several-rows-into-one/m-p/232505#M84107</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-04-27T21:56:38Z</dc:date>
    </item>
    <item>
      <title>Turn several rows into one</title>
      <link>https://community.qlik.com/t5/QlikView/Turn-several-rows-into-one/m-p/232506#M84108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;maybe you can use concat() and group by clauses like this&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;SaleID,&lt;BR /&gt;Amount,&lt;BR /&gt;Region,&lt;BR /&gt;Concat(SalesPerson,',') as SalesPersonConcat&lt;BR /&gt;from/resident&lt;BR /&gt;group by&lt;BR /&gt;SaleID,&lt;BR /&gt;Amount,&lt;BR /&gt;Region&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;PS. depending on your data, maybe you can use max(Amount) or Avg(Amount) or Sum(Amount), instead of grouping by the field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 21:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turn-several-rows-into-one/m-p/232506#M84108</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-04-27T21:58:42Z</dc:date>
    </item>
    <item>
      <title>Turn several rows into one</title>
      <link>https://community.qlik.com/t5/QlikView/Turn-several-rows-into-one/m-p/232507#M84109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up just using the concat(SalesPerson',', ') in a expression and it works! hoooray!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 22:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Turn-several-rows-into-one/m-p/232507#M84109</guid>
      <dc:creator />
      <dc:date>2011-04-27T22:26:23Z</dc:date>
    </item>
  </channel>
</rss>

