<?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 Identify if first row is BLANK in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165649#M898796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regardless of first row is blank or not blank the load will still work. For an example please take a look at the attached example where I loaded three excel files where two of them has a blank row and one which do not have a blank row. Hope this helps..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 14:11:10 GMT</pubDate>
    <dc:creator>trdandamudi</dc:creator>
    <dc:date>2016-07-28T14:11:10Z</dc:date>
    <item>
      <title>How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165644#M898787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a csv file that some times has 1st row blank and sometimes has it filled. how do I identify when 1st row in csv file is blank. can I use rowno().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165644#M898787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165645#M898789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What kind operation you want to do if you know first row is empty????&lt;/P&gt;&lt;P&gt;Yes you can use rowNo() it will return row number.&lt;/P&gt;&lt;P&gt;You can also try with &lt;STRONG&gt;first&lt;/STRONG&gt; in load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 05:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165645#M898789</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-07-28T05:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165646#M898791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you should simple use WHERE not(isnull(FieldName) clause in your loading state.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 05:47:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165646#M898791</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2016-07-28T05:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165647#M898793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="empty header.PNG" class="jive-image image-1" src="/legacyfs/online/132857_empty header.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where does not work because the first row before the header is empty. I have multiple files. some have headers from row 1. some have it from row 2. how to identify the two?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 13:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165647#M898793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-28T13:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165648#M898794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it cannot be handled in qlikview because qlikview by default fetches the first row. I think you need to rectify and correct the format for excel file itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 13:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165648#M898794</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2016-07-28T13:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165649#M898796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regardless of first row is blank or not blank the load will still work. For an example please take a look at the attached example where I loaded three excel files where two of them has a blank row and one which do not have a blank row. Hope this helps..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 14:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165649#M898796</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-07-28T14:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165650#M898799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #800000;"&gt;@1&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FIELD1&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;@2&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FIELD2&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt; [Cartel1.xls]&lt;BR /&gt; (&lt;SPAN style="color: #0000ff;"&gt;biff&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;no&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;labels&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;is&lt;/SPAN&gt; Foglio1$)&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Where&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Len&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Trim&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;@1&lt;/SPAN&gt;)) &amp;gt; 0 &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;@1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;lt;&amp;gt; 'FIELD1'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;'FIELD1' is Label in Excel File&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165650#M898799</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2016-07-28T15:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165651#M898800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; I am not sure what Thirumala has suggested in the above qvw file. I am not able to open the file, since I'm using personal edition. You can try something like below,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vChkTable:&lt;/P&gt;&lt;P&gt;Load A&lt;/P&gt;&lt;P&gt;From &lt;/P&gt;&lt;P&gt;Excel.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, no lables, table is sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vChk = Peek('A',0, 'vChkTable');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table vChkTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If&amp;nbsp; Len(Trim($(vChk) ))&amp;gt;0 Then &lt;/P&gt;&lt;P&gt; Do some action&lt;/P&gt;&lt;P&gt; Else&lt;/P&gt;&lt;P&gt;Do something&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is just a concept for one file. You can easily adapt this code in a loop to load multiple files. There are plenty of loop code available in the forum. If you have any difficulties, let us know. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165651#M898800</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-07-28T15:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165652#M898802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Tamil, Thanks for replying&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;so here is more details:&amp;nbsp; I am loading all files at once (csv). excel files automatically deletes first blank row in QV. but with csv, there is an option of choosing header is 0 or 1 line as u can see below from the script. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Temp1:&lt;/P&gt;&lt;P&gt;LOAD [Field A],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Field B],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Field C],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Field D],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileName() as Filename&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\Data Quality\*July28*.csv]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq, header is 0 lines);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trying to create a table that lists types of data issue. 1st Expn'July28_3' - if fieldD is null, bad or else good.&lt;/P&gt;&lt;P&gt;Here is the Real Question: My 2nd Expn 'Header Issue':- if a filename has 1st row empty(before header), i want a label Good, if it does not, 'Bad'. In the sample, 28_3 has a blank row. so header issue sud be good for this and bad for rest. how to make this possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="data issues.PNG" class="jive-image image-1" src="/legacyfs/online/132936_data issues.PNG" style="height: 165px; width: 620px;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[..\Data Quality\*July28*.csv&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq, &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG&gt;header is 0 lines)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;HINT: when header is 0 lines, it will not load if there is a blank row correct? same rule when header is 1 line. so how do I set it to accept both....may be??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 01:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165652#M898802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-29T01:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165653#M898804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/people/qlikdash"&gt;qlikdash&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got it. Here is the code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1469759081139132" jivemacro_uid="_1469759081139132" modifiedtitle="true"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;Load '' as Dummy AutoGenerate 0;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Sub ScanFolder(Root)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each FoundFile in Filelist( Root &amp;amp; '\*.' &amp;amp; FileExtension)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD @1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [$(FoundFile)]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (txt, codepage is 1252, no labels, delimiter is ',', msq);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vHeaderSize = If( Len(Trim(Peek('@1',0, '&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Check&lt;/SPAN&gt;')))&amp;gt;0,0,1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop Table &lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Check&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concatenate (Data)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD [Field A],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Field B],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Field C],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Field D],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileName()as Filename,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If ('$(vHeaderSize)'=0, 'Good','Bad') as FileStatus&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [$(FoundFile)]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (txt, codepage is 1252, embedded labels, delimiter is ',', msq, header is $(vHeaderSize) lines);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next FoundFile&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Call ScanFolder('..\&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Data Quality&lt;/SPAN&gt;')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Field Dummy;&lt;/P&gt;



&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 02:27:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165653#M898804</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-07-29T02:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165654#M898805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tamil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your prompt reply. I will test it and get back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 03:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165654#M898805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-29T03:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165655#M898807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tamil, I tried your soln. it is calculating $(vHeaderSize) as having 0 value and thus loading the file without a blank row only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;&lt;STRONG&gt;vHeaderSize&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('@1',0, 'Check')))&amp;gt;0,0,1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;in the code above it seems it is resulting only one value based on "if it is &amp;gt;0". can we make it consider less than 0 as well? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;how can we pass both 'data types' so that they become avail on the front end to distinguish which file has a blank row and which one does not.&lt;/P&gt;&lt;P&gt;Thanks again. I really appreciate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 05:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165655#M898807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-29T05:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165656#M898809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikdash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #808080;"&gt;&lt;EM style="font-weight: inherit; font-size: 10.6667px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10.6667px; font-family: inherit;"&gt;vHeaderSize&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;('@1',0, 'Check')))&amp;gt;0,0,1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Actually, we are storing the header size either 0 or 1 in the above variable for each csv file. The above script should load both the csv files along with file status. I did a test and it's working fine. I have attached the same for your understanding, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 05:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165656#M898809</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-07-29T05:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165657#M898811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;see attachment&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 07:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165657#M898811</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2016-07-29T07:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165658#M898812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tamil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for sending that. I tested yours and it works but it did not work in my qvw. it might be the folder structure I don't knw. I will update.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 16:16:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165658#M898812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-29T16:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165659#M898813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bro, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use debug mode to check whether the files are taken properly. Especially the line "FoundFile In FileList". You can also check log file to identify the path and file names.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 34.875px; color: #000000; font-size: 25px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-style: inherit; line-height: 1.5em;"&gt;Just remove the ..\Data Quality from the below line and paste your absolute path and try again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-style: inherit; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-style: inherit; line-height: 1.5em;"&gt;Call ScanFolder('..\Data Quality') &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jul 2016 01:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165659#M898813</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-07-30T01:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify if first row is BLANK</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165660#M898814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tamil, Thank you so much for your help. It took me a while because I was investigating why it was not working. Your code works in the sample but did not work in my actual csv data files. One reason was the cell below @1 had len =1 from a white space. this was being treated as having a populated row. Below is the code that worked for me. I have the major changes in Blue highlight&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In summary, I am first forcing the csv files with 0 header lines which also gets 'bad' file status. if there is an error it will load the remaining files which have 1 header lines and will have 'good' as header status. need to notify one thing which is I am not using &lt;STRONG&gt;$(vHeaderSize) &lt;/STRONG&gt;functionality, which would have been more dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load '' as Dummy AutoGenerate 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ScanFolder(Root)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each FoundFile in filelist( 'C:\Users\DataIssue\*.csv')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vChkTable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD @1&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [$(FoundFile)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (txt, codepage is 1252, no labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vHeaderSize = Peek('@1',0, 'vChkTable');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vHeaderSize = If( Len(Trim(Peek('@1',0, 'vChkTable')))&amp;gt;0,0,1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop Table vChkTable;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concatenate (Data)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD C1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileName()as Filename,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;'Bad' as FileStatus&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [$(FoundFile)]&lt;/P&gt;&lt;P&gt;&amp;nbsp; (txt, codepage is 1252, embedded labels, delimiter is ',', msq, &lt;SPAN style="color: #0000ff;"&gt;header is 0 lines)&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;if ScriptError=11&amp;nbsp; then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Concatenate (Data)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD C1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileName()as Filename,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt; 'Good' as FileStatus&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [$(FoundFile)]&lt;/P&gt;&lt;P&gt;&amp;nbsp; (txt, codepage is 1252, embedded labels, delimiter is ',', msq, &lt;SPAN style="color: #0000ff;"&gt;header is 1 lines);&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next FoundFile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vPath='C:\Users\DataIssue\*.csv';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call ScanFolder('$(vPath)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Field Dummy;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 17:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Identify-if-first-row-is-BLANK/m-p/1165660#M898814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-05T17:53:38Z</dc:date>
    </item>
  </channel>
</rss>

