<?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: ODBC removal of headers with preceding load in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/ODBC-removal-of-headers-with-preceding-load/m-p/1807417#M65720</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18624"&gt;@Gysbert_Wassenaar&lt;/a&gt;&amp;nbsp; thanks for this which fixes my issue perfectly - in answer to your question my source is an XLSB file and I was under the impression I needed to use ODBC for the connection... is this not the case?&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 15:45:59 GMT</pubDate>
    <dc:creator>chrismtb</dc:creator>
    <dc:date>2021-05-12T15:45:59Z</dc:date>
    <item>
      <title>ODBC removal of headers with preceding load</title>
      <link>https://community.qlik.com/t5/App-Development/ODBC-removal-of-headers-with-preceding-load/m-p/1807403#M65716</link>
      <description>&lt;P&gt;Hey everyone.&lt;/P&gt;&lt;P&gt;I am doing an ODBC load of xlsb data. Unfortunately the data tab&amp;nbsp; within the excel file has headers that are on the 4th row down.&lt;BR /&gt;&lt;BR /&gt;I read a previous post on the forum about using a preceding load statement however when I try to replicate this no rows of data are loaded.&lt;/P&gt;&lt;P&gt;Below is an example of my script:&lt;/P&gt;&lt;P&gt;ODBC CONNECT32 TO [MyExcel;DBQ=PathAndFile.xlsb];&lt;/P&gt;&lt;P&gt;LOAD F1,&lt;BR /&gt;F2,&lt;BR /&gt;F3,&lt;BR /&gt;F4,&lt;BR /&gt;F5,&lt;BR /&gt;F6,&lt;BR /&gt;Row&lt;BR /&gt;where Row &amp;gt; '4';&lt;/P&gt;&lt;P&gt;LOAD F1,&lt;BR /&gt;F2,&lt;BR /&gt;F3,&lt;BR /&gt;F4,&lt;BR /&gt;F5,&lt;BR /&gt;F6,&lt;BR /&gt;rowno() as Row;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM `PathAndFile.xlsb`.`'SheetA$'`;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what am I doing wrong?&lt;/P&gt;&lt;P&gt;Also in addition is there a way to pass these headers into the script without writing them by hand (note - I can't change the source data format) - I know you can specify with a "standard" Excel import such as .xlsx or .xlsm?&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 15:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ODBC-removal-of-headers-with-preceding-load/m-p/1807403#M65716</guid>
      <dc:creator>chrismtb</dc:creator>
      <dc:date>2021-05-12T15:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC removal of headers with preceding load</title>
      <link>https://community.qlik.com/t5/App-Development/ODBC-removal-of-headers-with-preceding-load/m-p/1807404#M65717</link>
      <description>&lt;P&gt;I have also tried:&lt;/P&gt;&lt;P&gt;where Row &amp;gt; 4&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 15:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ODBC-removal-of-headers-with-preceding-load/m-p/1807404#M65717</guid>
      <dc:creator>chrismtb</dc:creator>
      <dc:date>2021-05-12T15:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC removal of headers with preceding load</title>
      <link>https://community.qlik.com/t5/App-Development/ODBC-removal-of-headers-with-preceding-load/m-p/1807406#M65718</link>
      <description>&lt;P&gt;Why are you using ODBC to load data from excel instead of just loading directly from the excel file? That would give you the option to skip a number of header rows.&lt;/P&gt;&lt;P&gt;Anyway, Rowno() returns the row number of the record in the table you're creating. If you use it the way you do then the first records gets value 1 and then the next preceding load doesn't add it to the target table. So rowno&amp;nbsp; 1 doesn't exists in the target table. Then the next record again gets rowno 1 and again is filtered out, etc, etc. So you get a result table with no records.&lt;/P&gt;&lt;P&gt;Try using the RecNo() function instead. That uses the record numbers of records read from the source table.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 15:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ODBC-removal-of-headers-with-preceding-load/m-p/1807406#M65718</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2021-05-12T15:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC removal of headers with preceding load</title>
      <link>https://community.qlik.com/t5/App-Development/ODBC-removal-of-headers-with-preceding-load/m-p/1807417#M65720</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18624"&gt;@Gysbert_Wassenaar&lt;/a&gt;&amp;nbsp; thanks for this which fixes my issue perfectly - in answer to your question my source is an XLSB file and I was under the impression I needed to use ODBC for the connection... is this not the case?&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 15:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ODBC-removal-of-headers-with-preceding-load/m-p/1807417#M65720</guid>
      <dc:creator>chrismtb</dc:creator>
      <dc:date>2021-05-12T15:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC removal of headers with preceding load</title>
      <link>https://community.qlik.com/t5/App-Development/ODBC-removal-of-headers-with-preceding-load/m-p/1807418#M65721</link>
      <description>&lt;P&gt;You're probably right about xlsb files. I've never encountered them.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 15:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ODBC-removal-of-headers-with-preceding-load/m-p/1807418#M65721</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2021-05-12T15:51:25Z</dc:date>
    </item>
  </channel>
</rss>

