<?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 dynamically identify header size in xlsx files? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-dynamically-identify-header-size-in-xlsx-files/m-p/765719#M664544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2016 10:19:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-10T10:19:14Z</dc:date>
    <item>
      <title>How dynamically identify header size in xlsx files?</title>
      <link>https://community.qlik.com/t5/QlikView/How-dynamically-identify-header-size-in-xlsx-files/m-p/765717#M664542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I received files with different header size. Sometimes data start from 10 row, sometimes from 13.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="146542" data-objecttype="13" href="https://community.qlik.com/servlet/JiveServlet/download/2061-149573-701198-146542/Header.png" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="Header.png" class="image-1 jive-image" src="https://community.qlik.com/servlet/JiveServlet/download/2061-149573-701198-146542/Header.png" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;In picture you can see part of my file.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;Part of my script:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;FROM&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;[\\449629-file1\Data - new\Current\MIS-IB004*.xlsx]&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;(ooxml, embedded labels, header is 6 lines);&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 10pt; line-height: 1.5em;"&gt;Header size in wizard now 6.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit;"&gt;So how dynamically identify header size? What should I change in my script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 14:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-dynamically-identify-header-size-in-xlsx-files/m-p/765717#M664542</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2015-01-26T14:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: How dynamically identify header size in xlsx files?</title>
      <link>https://community.qlik.com/t5/QlikView/How-dynamically-identify-header-size-in-xlsx-files/m-p/765718#M664543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The trick is to identify on what row you can find a recognizable column heading and then use that information to set a "Header is n lines" variable. Based on your picture, I'll assume we are looking for "StoreDC" in column A as the column header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FindHeaderTemp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD RecNo() as DataStart&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[foo]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;(biff, no labels, table is Sheet1$)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE @1 = 'StoreDC'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vHeaderSize = peek('DataStart') - 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP TABLE FindHeaderTemp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and now use vHeaderSize in your actual load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&amp;nbsp; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM [foo]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;(biff, embedded labels, header is &lt;STRONG&gt;$(vHeaderSize)&lt;/STRONG&gt; lines, table is Sheet1$);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com" rel="nofollow"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 18:14:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-dynamically-identify-header-size-in-xlsx-files/m-p/765718#M664543</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-01-26T18:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: How dynamically identify header size in xlsx files?</title>
      <link>https://community.qlik.com/t5/QlikView/How-dynamically-identify-header-size-in-xlsx-files/m-p/765719#M664544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 10:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-dynamically-identify-header-size-in-xlsx-files/m-p/765719#M664544</guid>
      <dc:creator />
      <dc:date>2016-06-10T10:19:14Z</dc:date>
    </item>
  </channel>
</rss>

