<?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: Loading specific rows from Excel-file (always last value) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-specific-rows-from-Excel-file-always-last-value/m-p/991636#M950747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;P&gt;My spreadsheet has about 43 columns. It looks like I would have to write this command for each column. Is that right?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New;"&gt;FirstSortedValue([Operation/Activity], -[Operation/Activity]) AS [Operation/Activity],&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Dec 2015 16:53:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-12-10T16:53:26Z</dc:date>
    <item>
      <title>Loading specific rows from Excel-file (always last value)</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-specific-rows-from-Excel-file-always-last-value/m-p/991633#M950744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please help me figure out how to always load the last entry of a specific line (i.e. order)?&lt;/P&gt;&lt;P&gt;The challenge is that the number of line items per order may differ.&lt;/P&gt;&lt;P&gt;Please find example data attached. I have highlighted the values which I want to load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be great if you could help me find an answer before this weekend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 15:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-specific-rows-from-Excel-file-always-last-value/m-p/991633#M950744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-10T15:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Loading specific rows from Excel-file (always last value)</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-specific-rows-from-Excel-file-always-last-value/m-p/991634#M950745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use GROUP BY to group records, then use &lt;SPAN style="font-family: 'courier new', courier;"&gt;FirstSortedValue()&lt;/SPAN&gt; to pick one of the grouped records. Additional field values on this particular row can also be fetched with FirstSortedValue(). Example LOAD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;Highest_Entry:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;LOAD Order,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue([Operation/Activity], -[Operation/Activity]) AS [Operation/Activity],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue([Total order quantity], -[Operation/Activity]) AS [Total order quantity]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;FROM QV_Load.xlsx (ooxml, embedded labels, table is Sheet1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;GROUP BY Order;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 16:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-specific-rows-from-Excel-file-always-last-value/m-p/991634#M950745</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-12-10T16:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Loading specific rows from Excel-file (always last value)</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-specific-rows-from-Excel-file-always-last-value/m-p/991635#M950746</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;this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;base:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;From [..\Qv_Load.xlsx] (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(base)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(ID) as ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as tmpLoad&lt;/P&gt;&lt;P&gt;Resident base&lt;/P&gt;&lt;P&gt;Group By Order;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;Resident base&lt;/P&gt;&lt;P&gt;Where tmpLoad = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sebastian Lettner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 16:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-specific-rows-from-Excel-file-always-last-value/m-p/991635#M950746</guid>
      <dc:creator>sebastianlettner</dc:creator>
      <dc:date>2015-12-10T16:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Loading specific rows from Excel-file (always last value)</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-specific-rows-from-Excel-file-always-last-value/m-p/991636#M950747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;P&gt;My spreadsheet has about 43 columns. It looks like I would have to write this command for each column. Is that right?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New;"&gt;FirstSortedValue([Operation/Activity], -[Operation/Activity]) AS [Operation/Activity],&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 16:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-specific-rows-from-Excel-file-always-last-value/m-p/991636#M950747</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-10T16:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Loading specific rows from Excel-file (always last value)</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-specific-rows-from-Excel-file-always-last-value/m-p/991637#M950748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome Sebastian! Thank you. That helps a lot! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 17:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-specific-rows-from-Excel-file-always-last-value/m-p/991637#M950748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-10T17:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Loading specific rows from Excel-file (always last value)</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-specific-rows-from-Excel-file-always-last-value/m-p/991638#M950749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not at all. If the Order No and Line No each identify a single line, you load them first as shown (without the Amount). Afterwards you just JOIN the other columns to those so-called "Primary Key" values. Like in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;Highest_Entry:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;LOAD Order,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue([Operation/Activity], -[Operation/Activity]) AS [Operation/Activity]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;FROM QV_Load.xlsx (ooxml, embedded labels, table is Sheet1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;GROUP BY Order;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;LEFT JOIN(Highest_Entry)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 10.6667px; font-family: 'courier new', courier; font-weight: inherit;"&gt;FROM QV_Load.xlsx (ooxml, embedded labels, table is Sheet1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Very simple. But I see that you already found a solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Good luck,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Peter&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 17:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-specific-rows-from-Excel-file-always-last-value/m-p/991638#M950749</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-12-10T17:42:45Z</dc:date>
    </item>
  </channel>
</rss>

