<?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: How to sort a table in another order than load order in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-sort-a-table-in-another-order-than-load-order/m-p/1045158#M351408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sunny !&amp;nbsp; You brought sunlight on my trouble !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Mar 2016 13:46:59 GMT</pubDate>
    <dc:creator>phb_nostromo</dc:creator>
    <dc:date>2016-03-22T13:46:59Z</dc:date>
    <item>
      <title>How to sort a table in another order than load order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-a-table-in-another-order-than-load-order/m-p/1045156#M351406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please excuse for my english and the newbie aspect to QlikView in the question i have to submit ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems simple, and easy under excel.. but i need to know how could i get the value of the column LineNumber for the first value of Pandora_key. That's done in order to remove duplicates from a far bigger table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 177px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="87"&gt;Pandora_key&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="90"&gt;LineNumber&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;23&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here for instance, i'd like to have LineNumber = 1 for Pandora_key = 1, 10 for 9, 22 for 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is :&lt;/P&gt;&lt;P&gt;[TableBrute]:&lt;/P&gt;&lt;P&gt;LOAD distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pandora_key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; recno() as LineNumber&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;load Pandora_key, LineNumber resident&amp;nbsp; TableBrute&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where previous(Pandora_key) &amp;lt;&amp;gt; Pandora_key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;order by Pandora_key, ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anybody help me Please ??&lt;/P&gt;&lt;P&gt;Thanks a million . I'm getting stuck here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 13:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-a-table-in-another-order-than-load-order/m-p/1045156#M351406</guid>
      <dc:creator>phb_nostromo</dc:creator>
      <dc:date>2016-03-22T13:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a table in another order than load order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-a-table-in-another-order-than-load-order/m-p/1045157#M351407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="118976" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118976_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Pandora_key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; RecNo() as TempLineNumber&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2051" data-containertype="14" data-objectid="210457" data-objecttype="1" href="https://community.qlik.com/thread/210457"&gt;https://community.qlik.com/thread/210457&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join(Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Pandora_key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Min(TempLineNumber) as LineNumber&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Pandora_key;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 13:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-a-table-in-another-order-than-load-order/m-p/1045157#M351407</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-22T13:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a table in another order than load order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-a-table-in-another-order-than-load-order/m-p/1045158#M351408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sunny !&amp;nbsp; You brought sunlight on my trouble !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 13:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-a-table-in-another-order-than-load-order/m-p/1045158#M351408</guid>
      <dc:creator>phb_nostromo</dc:creator>
      <dc:date>2016-03-22T13:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a table in another order than load order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-a-table-in-another-order-than-load-order/m-p/1045159#M351409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Pandora_key LineNumber&lt;/P&gt;&lt;P&gt;1 1&lt;/P&gt;&lt;P&gt;2 2&lt;/P&gt;&lt;P&gt;3 3&lt;/P&gt;&lt;P&gt;4 4&lt;/P&gt;&lt;P&gt;4 5&lt;/P&gt;&lt;P&gt;6 6&lt;/P&gt;&lt;P&gt;7 7&lt;/P&gt;&lt;P&gt;7 8&lt;/P&gt;&lt;P&gt;8 9&lt;/P&gt;&lt;P&gt;9 10&lt;/P&gt;&lt;P&gt;9 11&lt;/P&gt;&lt;P&gt;9 12&lt;/P&gt;&lt;P&gt;9 13&lt;/P&gt;&lt;P&gt;9 14&lt;/P&gt;&lt;P&gt;9 15&lt;/P&gt;&lt;P&gt;9 16&lt;/P&gt;&lt;P&gt;9 17&lt;/P&gt;&lt;P&gt;9 18&lt;/P&gt;&lt;P&gt;9 19&lt;/P&gt;&lt;P&gt;9 20&lt;/P&gt;&lt;P&gt;9 21&lt;/P&gt;&lt;P&gt;10 22&lt;/P&gt;&lt;P&gt;10 23 ](delimiter is spaces);&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;load Pandora_key, &lt;/P&gt;&lt;P&gt;&amp;nbsp; min(LineNumber) as LineNumber&lt;/P&gt;&lt;P&gt;Resident&amp;nbsp; t1&lt;/P&gt;&lt;P&gt;Group By Pandora_key;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table t1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 14:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-a-table-in-another-order-than-load-order/m-p/1045159#M351409</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-22T14:13:55Z</dc:date>
    </item>
  </channel>
</rss>

