<?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 Scripting Concatenation and Loops.... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scripting-Concatenation-and-Loops/m-p/179310#M716016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a newbie script problem with Qlikview that I was hoping someone could quickly help me with. I have some customer order data that includes the order number and order comments spread across multiple sequence lines. An example of the data is below the code example. I need to concatenate all of the sequence lines into a single record per each unique order #. I know I need to loop through the data (somehow) to read each line, but I am at a loss on how to accomplish that...?&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;~ Kristopher&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;OrderComments:&lt;BR /&gt;LOAD&lt;BR /&gt; "ORDER_NUM" as OrderNum,&lt;BR /&gt; "SEQUENCE" as "OrdCom_Sequence",&lt;BR /&gt; "BOL_COMMENT" as "Order_Comment"&lt;BR /&gt;FROM ..\AllCompqvdfiles\GMFORDFC.qvd (qvd) WHERE COMPANY='$(Comp)';&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;[data example]&lt;/P&gt;&lt;P&gt;Order# Seq# Order Comments&lt;/P&gt;&lt;P&gt;---------- ------- -------------------------------------------------&lt;/P&gt;&lt;P&gt;435350 1 order comments here from customer&lt;BR /&gt;435350 2 order comments here from customer&lt;BR /&gt;435350 3 order comments here from customer&lt;BR /&gt;435350 4 order comments here from customer&lt;/P&gt;&lt;P&gt;[/data example]&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Mar 2010 18:39:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-12T18:39:27Z</dc:date>
    <item>
      <title>Scripting Concatenation and Loops....</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Concatenation-and-Loops/m-p/179310#M716016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a newbie script problem with Qlikview that I was hoping someone could quickly help me with. I have some customer order data that includes the order number and order comments spread across multiple sequence lines. An example of the data is below the code example. I need to concatenate all of the sequence lines into a single record per each unique order #. I know I need to loop through the data (somehow) to read each line, but I am at a loss on how to accomplish that...?&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;~ Kristopher&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;OrderComments:&lt;BR /&gt;LOAD&lt;BR /&gt; "ORDER_NUM" as OrderNum,&lt;BR /&gt; "SEQUENCE" as "OrdCom_Sequence",&lt;BR /&gt; "BOL_COMMENT" as "Order_Comment"&lt;BR /&gt;FROM ..\AllCompqvdfiles\GMFORDFC.qvd (qvd) WHERE COMPANY='$(Comp)';&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;[data example]&lt;/P&gt;&lt;P&gt;Order# Seq# Order Comments&lt;/P&gt;&lt;P&gt;---------- ------- -------------------------------------------------&lt;/P&gt;&lt;P&gt;435350 1 order comments here from customer&lt;BR /&gt;435350 2 order comments here from customer&lt;BR /&gt;435350 3 order comments here from customer&lt;BR /&gt;435350 4 order comments here from customer&lt;/P&gt;&lt;P&gt;[/data example]&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 18:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Concatenation-and-Loops/m-p/179310#M716016</guid>
      <dc:creator />
      <dc:date>2010-03-12T18:39:27Z</dc:date>
    </item>
    <item>
      <title>Scripting Concatenation and Loops....</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Concatenation-and-Loops/m-p/179311#M716017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kristopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for the same thing, were you able to solve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 11:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Concatenation-and-Loops/m-p/179311#M716017</guid>
      <dc:creator>mantaq10</dc:creator>
      <dc:date>2010-04-06T11:09:57Z</dc:date>
    </item>
    <item>
      <title>Scripting Concatenation and Loops....</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Concatenation-and-Loops/m-p/179312#M716018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kristopher,&lt;/P&gt;&lt;P&gt;Concat may help you&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Table:LOAD * INLINE [Order, Seq, Comments435350, 1, order1 comments here from customer435350, 2, order2 comments here from customer435350, 3, order3 comments here from customer435350, 4, order4 comments here from customer];&lt;BR /&gt;OrderTable:LOAD Order, Concat(Comments, '$$') AS OrderSeqandCommentsRESIDENT TableGROUP BY Order;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Concat() Function aggregates text expressions (fields, in this case).&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 11:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Concatenation-and-Loops/m-p/179312#M716018</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-04-06T11:51:08Z</dc:date>
    </item>
    <item>
      <title>Scripting Concatenation and Loops....</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Concatenation-and-Loops/m-p/179313#M716019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya i also used the concat approach, it works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 16:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Concatenation-and-Loops/m-p/179313#M716019</guid>
      <dc:creator>mantaq10</dc:creator>
      <dc:date>2010-04-07T16:12:05Z</dc:date>
    </item>
  </channel>
</rss>

