<?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: Sorting of concatenated expression based on timestamp and position in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151046#M897662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some thing like this .... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; ....... ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP:&lt;/P&gt;&lt;P&gt;Mapping LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Position, Number&lt;/P&gt;&lt;P&gt;Assistor,2&lt;/P&gt;&lt;P&gt;Converter,3&lt;/P&gt;&lt;P&gt;Initiator,1];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;If(len(trim(_InitiatorFlag))=0,Peek(_GroupBy),_InitiatorFlag) as _GroupBy;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [User Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Channel Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Position, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date#(Timestamp,'MM/DD/YYYY hh:mm') as Timestamp ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MAP',Position) as PositionNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Position='Initiator',RecNo()) as _InitiatorFlag&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="226651" data-objecttype="1" href="https://community.qlik.com/thread/226651"&gt;https://community.qlik.com/thread/226651&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1)&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;[User Name],&lt;/P&gt;&lt;P&gt;_GroupBy,&lt;/P&gt;&lt;P&gt;Concat([Channel Name],'&amp;gt;',PositionNo) as Path&lt;/P&gt;&lt;P&gt;Resident t Group by [User Name],_GroupBy Order by Timestamp ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table t;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2016 20:25:36 GMT</pubDate>
    <dc:creator>maheshkuttappa</dc:creator>
    <dc:date>2016-07-26T20:25:36Z</dc:date>
    <item>
      <title>Sorting of concatenated expression based on timestamp and position</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151043#M897659</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 have to concatenate channel names for each user based on time and its position. I have around 80 million records in this format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="96"&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;User Name&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid black 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="140"&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Channel Name&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid black 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P&gt;&lt;STRONG style="color: red; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Position&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid black 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Timestamp&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="96"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Neha Jain&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="140"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Social&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: red;"&gt;Initiator&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;11/7/2015 6:01&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="96"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Neha Jain&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="140"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Email&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: red;"&gt;Assistor&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;11/7/2015 6:02&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="96"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Neha Jain&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="140"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Social&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: red;"&gt;Assistor&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;11/7/2015 6:03&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="96"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Neha Jain&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="140"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Direct&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: red;"&gt;Converter&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;11/7/2015 6:04&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="96"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Neha Jain&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="140"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Social&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: red;"&gt;Initiator&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;11/7/2015 6:05&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="96"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Neha Jain&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="140"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Display Ad&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: red;"&gt;Assistor&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;11/7/2015 6:06&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="96"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Neha Jain&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="140"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Email&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: red;"&gt;Converter&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;11/7/2015 6:07&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="96"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Ankit&amp;nbsp; Jain&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="140"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Email&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;Initiator&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;11/7/2015 6:08&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="96"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Ankit&amp;nbsp; Jain&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="140"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Social&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 14.6667px; font-family: Calibri, sans-serif;"&gt;Assistor&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;11/7/2015 6:09&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid black 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="96"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Ankit&amp;nbsp; Jain&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="140"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;Email&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: red;"&gt;Converter&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="0"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black;"&gt;11/7/2015 6:10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i want the result like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UserName&amp;nbsp;&amp;nbsp; Path&lt;/P&gt;&lt;P&gt;Neha Jain&amp;nbsp;&amp;nbsp;&amp;nbsp; Social-&amp;gt;Email-&amp;gt;Social-&amp;gt;Direct&lt;/P&gt;&lt;P&gt;Neha jain&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Social -&amp;gt;Display AD -&amp;gt; Email&lt;/P&gt;&lt;P&gt;Ankit Jain&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Email-&amp;gt;Social -&amp;gt;Email&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initiator should be first, Assistor in between and converter last sorted by time also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151043#M897659</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of concatenated expression based on timestamp and position</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151044#M897660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if is the table use the tab sort...&lt;/P&gt;&lt;P&gt;use can use more fields for sort&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 18:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151044#M897660</guid>
      <dc:creator />
      <dc:date>2016-07-26T18:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of concatenated expression based on timestamp and position</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151045#M897661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you elaborate more about how would you aggregate the info?&lt;/P&gt;&lt;P&gt;you don't have any record in the same timestamp so it wont aggregate as you want...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Neha Jain&amp;nbsp;&amp;nbsp;&amp;nbsp; Social-&amp;gt;Email-&amp;gt;Social-&amp;gt;Direct&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Neha jain&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Social -&amp;gt;Display AD -&amp;gt; Email&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;How do you make this aggregation? Also where do you get the Direct value?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Am i being clear?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 20:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151045#M897661</guid>
      <dc:creator>santiago_respane</dc:creator>
      <dc:date>2016-07-26T20:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of concatenated expression based on timestamp and position</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151046#M897662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some thing like this .... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; ....... ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP:&lt;/P&gt;&lt;P&gt;Mapping LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Position, Number&lt;/P&gt;&lt;P&gt;Assistor,2&lt;/P&gt;&lt;P&gt;Converter,3&lt;/P&gt;&lt;P&gt;Initiator,1];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;If(len(trim(_InitiatorFlag))=0,Peek(_GroupBy),_InitiatorFlag) as _GroupBy;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [User Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Channel Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Position, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date#(Timestamp,'MM/DD/YYYY hh:mm') as Timestamp ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MAP',Position) as PositionNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Position='Initiator',RecNo()) as _InitiatorFlag&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="226651" data-objecttype="1" href="https://community.qlik.com/thread/226651"&gt;https://community.qlik.com/thread/226651&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1)&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;[User Name],&lt;/P&gt;&lt;P&gt;_GroupBy,&lt;/P&gt;&lt;P&gt;Concat([Channel Name],'&amp;gt;',PositionNo) as Path&lt;/P&gt;&lt;P&gt;Resident t Group by [User Name],_GroupBy Order by Timestamp ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table t;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 20:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151046#M897662</guid>
      <dc:creator>maheshkuttappa</dc:creator>
      <dc:date>2016-07-26T20:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of concatenated expression based on timestamp and position</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151047#M897663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am new to qlikview and doesn't know where to put your code.&lt;/P&gt;&lt;P&gt;I have ingested data using csv and after that what needs to done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 05:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151047#M897663</guid>
      <dc:creator />
      <dc:date>2016-07-27T05:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of concatenated expression based on timestamp and position</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151048#M897664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try to elaborate once again.&lt;/P&gt;&lt;P&gt;Every user traverses a path among the channels like social,email,direct,display ad etc. for every transaction&lt;/P&gt;&lt;P&gt;So if you see in the above table , User Neha&amp;nbsp; has two transaction - first one starts the path from social and ends at direct . and this path will be sorted by time so it started at 6.01 from social and converts at 6.04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make paths for all the user like that. Hope i am clear this time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 07:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151048#M897664</guid>
      <dc:creator />
      <dc:date>2016-07-27T07:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of concatenated expression based on timestamp and position</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151049#M897665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I some managed to run your code and it worked also for two records but it introduces null fields in the data.&lt;/P&gt;&lt;P&gt;attached images will give you an idea about this&lt;IMG alt="sorting.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132655_sorting.png" style="height: 183px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks alot for the code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 11:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151049#M897665</guid>
      <dc:creator />
      <dc:date>2016-07-27T11:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of concatenated expression based on timestamp and position</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151050#M897666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share your QVW ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 14:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151050#M897666</guid>
      <dc:creator>maheshkuttappa</dc:creator>
      <dc:date>2016-07-27T14:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of concatenated expression based on timestamp and position</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151051#M897667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 14:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151051#M897667</guid>
      <dc:creator />
      <dc:date>2016-07-27T14:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting of concatenated expression based on timestamp and position</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151052#M897668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached the solution , this solution is based on assumption that field Path ID are unique and defines the path &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 16:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-of-concatenated-expression-based-on-timestamp-and/m-p/1151052#M897668</guid>
      <dc:creator>maheshkuttappa</dc:creator>
      <dc:date>2016-07-27T16:21:52Z</dc:date>
    </item>
  </channel>
</rss>

