<?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: Is it possible to Sort a QVD file that stored (or when loading from a QVD file) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603157#M737062</link>
    <description>&lt;P&gt;I have attached a modified version of you QVW that shows how it can be fixed both in the load script and in the UI.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2019-07-17 133529.jpg" style="width: 620px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/15582i060638B55C0F7417/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2019-07-17 133529.jpg" alt="Annotation 2019-07-17 133529.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2019 11:36:21 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2019-07-17T11:36:21Z</dc:date>
    <item>
      <title>Is it possible to Sort a QVD file that stored (or when loading from a QVD file)</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1602293#M737051</link>
      <description>&lt;P&gt;I store files into&amp;nbsp;CSV format. However, I am not sure in what order it is sorting the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, I would like to sort the file. I am storing the file as below, and I have no clue the way it sorts. I would like to have at least a few fields that I sort on, so that it makes at least a little sent, instead of being all randomly sorted.&lt;/P&gt;&lt;P&gt;Store Revrec1 into \\MMX111VSWSQV1\MappingF\Rev_BL1.qvd;&lt;/P&gt;&lt;P&gt;Or is it possible to sort it when reading from the QVD file (Rev_BL1.qvd)?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1602293#M737051</guid>
      <dc:creator>MEJ</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Sort a QVD file that stored (or when loading from a QVD file)</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1602297#M737052</link>
      <description>&lt;P&gt;You can't sort in the same load statement where you read the QVD-file. However you can do a following resident load of the table you have read and then specify an ORDER BY clause to get it sorted like you want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;D1:&lt;BR /&gt;LOAD * FROM myqvd (qvd);&lt;/P&gt;&lt;P&gt;D2:&lt;BR /&gt;LOAD * RESIDENT D1 ORDER BY &amp;lt;field1&amp;gt;,&amp;lt;field2&amp;gt; .... ;&lt;/P&gt;&lt;P&gt;DROP TABLE D1;&lt;/P&gt;&lt;P&gt;If you store D2 it should be stored with the sort you have done in your&amp;nbsp; last load statement.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 12:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1602297#M737052</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2019-07-15T12:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Sort a QVD file that stored (or when loading from a QVD file)</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1602744#M737053</link>
      <description>&lt;P&gt;Thank you. I have been trying the solution, but I ended up with double records. Will keep trying until I get it correct.&lt;/P&gt;&lt;P&gt;Seems like I am missing a DROP table somewhere (after table TEST_Resident3, but the script fails then).&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;TEST_Resident1:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;LOAD *&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;FROM [C:\Users\mathias.johnson\Desktop\Test resident.xlsx] (ooxml, embedded labels, table is Data);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Store TEST_Resident1 into [C:\Users\mathias.johnson\Desktop\Test_Resident_X.qvd];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Drop Table TEST_Resident1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;//------------------------Re-sort QVD-file------------------------\\&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;TEST_Resident2:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;LOAD *&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;FROM [C:\Users\mathias.johnson\Desktop\Test_Resident_X.qvd] (qvd);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;TEST_Resident3:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;LOAD * Resident TEST_Resident2 order by Key, [Invoice Type], [Supplier Name], [Invoice Date];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Store TEST_Resident2 into [C:\Users\mathias.johnson\Desktop\Test_Resident_Y.csv](txt);&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1602744#M737053</guid>
      <dc:creator>MEJ</dc:creator>
      <dc:date>2019-07-16T14:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Sort a QVD file that stored (or when loading from a QVD file)</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603025#M737054</link>
      <description>&lt;P&gt;Here is an example of a test version, but I don't seem to get i right.&lt;/P&gt;&lt;P&gt;Anyone that knows what I am doing wrong?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 07:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603025#M737054</guid>
      <dc:creator>MEJ</dc:creator>
      <dc:date>2019-07-17T07:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Sort a QVD file that stored (or when loading from a QVD file)</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603098#M737055</link>
      <description>&lt;P&gt;It seems to be sorted - at least according to what QlikView/Qlik Sense regards as sorted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you explain what it is that is not sorted? What is not right?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 09:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603098#M737055</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2019-07-17T09:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Sort a QVD file that stored (or when loading from a QVD file)</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603100#M737056</link>
      <description>&lt;P&gt;First of all, it is not sorted. I think the output is not according to table TEST_Resident3&lt;/P&gt;&lt;P&gt;It seems to take only TEST_Resident2&lt;/P&gt;&lt;P&gt;This QV application does not work though.&lt;/P&gt;&lt;P&gt;You would probably have to change the location where it is stored to your own desktop (or where ever).&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 09:54:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603100#M737056</guid>
      <dc:creator>MEJ</dc:creator>
      <dc:date>2019-07-17T09:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Sort a QVD file that stored (or when loading from a QVD file)</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603103#M737057</link>
      <description>&lt;P&gt;What is not sorted which specific field or column is not sorted? Give us a very specific example from your data. What is wrong and what do you expect?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 09:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603103#M737057</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2019-07-17T09:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Sort a QVD file that stored (or when loading from a QVD file)</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603106#M737058</link>
      <description>&lt;P&gt;First of all, the QV load fails as per the screen dump, so something is wrong in the script.&lt;/P&gt;&lt;P&gt;In the CSV file, I would like the file to be sorted by Supplier Name, and after that Invoice Number.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 10:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603106#M737058</guid>
      <dc:creator>MEJ</dc:creator>
      <dc:date>2019-07-17T10:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Sort a QVD file that stored (or when loading from a QVD file)</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603122#M737059</link>
      <description>&lt;P&gt;The failure that you have a screendump of is not due to sort. It is due to having two tables with the identical field names. In such a case Qlik will perform an auto concatenation which means that the first table will silently receive all the rows/records from the second table and the second table will not be created. That is why Qlik can't find the second table when you later in the load script refers to it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/LoadData/concatenate-tables.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/LoadData/concatenate-tables.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 10:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603122#M737059</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2019-07-17T10:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Sort a QVD file that stored (or when loading from a QVD file)</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603125#M737060</link>
      <description>&lt;P&gt;The supplier name and invoice number &lt;U&gt;IS sorted according to&lt;/U&gt; how QlikView (and Qlik Sense) sorts.&lt;/P&gt;&lt;P&gt;That is obviously and quite naturally not what you expect and this is why you claim that it is not sorted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Qlik does not use alphabetical sorting - it use an extended version of "Natural Sorting" - which is different.&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Natural_sort_order" target="_blank" rel="noopener"&gt;https://en.wikipedia.org/wiki/Natural_sort_order&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There are remedies for this - but it is different depending of whether you need to fix it in the UI in the app or in the load script. As long as it can be fixed in the UI I don't see the need for fixing it in the load script except in cases where you have large datasets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 10:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603125#M737060</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2019-07-17T10:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Sort a QVD file that stored (or when loading from a QVD file)</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603136#M737061</link>
      <description>&lt;P&gt;Not quite sure what you mean by having the identical name for two tables. To me it looks like I have been using the same logic you suggested?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 11:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603136#M737061</guid>
      <dc:creator>MEJ</dc:creator>
      <dc:date>2019-07-17T11:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Sort a QVD file that stored (or when loading from a QVD file)</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603157#M737062</link>
      <description>&lt;P&gt;I have attached a modified version of you QVW that shows how it can be fixed both in the load script and in the UI.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2019-07-17 133529.jpg" style="width: 620px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/15582i060638B55C0F7417/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2019-07-17 133529.jpg" alt="Annotation 2019-07-17 133529.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 11:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603157#M737062</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2019-07-17T11:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Sort a QVD file that stored (or when loading from a QVD file)</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603159#M737063</link>
      <description>&lt;P&gt;You have to read up on the link I sent you about "auto concatenation"....&amp;nbsp; You can avoid it by using a prefix to the load statement called NOCONCATENATE. Anyways I posted a solution for you where I have fixed the load script issue and given a solution as to how to get QlikView to use alphabetical sort on a specific field...&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 11:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603159#M737063</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2019-07-17T11:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Sort a QVD file that stored (or when loading from a QVD file)</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603166#M737064</link>
      <description>&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Wow, that was a lot more complicated than I expected! I have approximately 100 fields in the database, so I hope it will be possible to replicate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will study your solution, and see if I can make it work.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 11:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603166#M737064</guid>
      <dc:creator>MEJ</dc:creator>
      <dc:date>2019-07-17T11:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to Sort a QVD file that stored (or when loading from a QVD file)</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603176#M737065</link>
      <description>&lt;P&gt;Please click LIKE (thumbs up) on one or more of my responses because that is the only way you can reward anyone that helps you on this forum... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I guess that all the 100 fields doesn't need to have alphabetical sort... People design QlikView applications for years without getting in to trouble or even notice that it is not alphabetical sort.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 12:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-Sort-a-QVD-file-that-stored-or-when-loading/m-p/1603176#M737065</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2019-07-17T12:01:40Z</dc:date>
    </item>
  </channel>
</rss>

