<?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 scripting help need with rowno() when loading bulk files ? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/scripting-help-need-with-rowno-when-loading-bulk-files/m-p/1912160#M75179</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;i have 100 files which I need to load -&lt;/P&gt;
&lt;P&gt;The file is like below -&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_0-1648678013760.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75796i5EC3C1645136188C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_0-1648678013760.png" alt="ashmitp869_0-1648678013760.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created a script to load the file -&lt;/P&gt;
&lt;P&gt;HCW:&lt;BR /&gt;LOAD&lt;BR /&gt;Date(Date#(left(FileName(),6),'DDMMYY'),'D/M/YYYY') as _Date,&lt;BR /&gt;if(rowno()=1, 1,0) as count_active,&lt;BR /&gt;if(rowno()=2, 1,0) as count_total_isolation,&lt;BR /&gt;if(rowno()=3, 1,0) as count_total_community,&lt;BR /&gt;Nursing,&lt;BR /&gt;Medical,&lt;BR /&gt;"Allied Health" as AH,&lt;BR /&gt;"Scientific/Technical" as scientific,&lt;BR /&gt;"Admin/ Corporate" as admin_corporate,&lt;BR /&gt;"Other",&lt;BR /&gt;FileName() as HCW.FileName &lt;BR /&gt;FROM [lib://NSLHD HWC Exposures/*.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [LHD Summary]);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the count_active,count_total_isolation and&amp;nbsp;count_total_community is not working because I am taking RowNo() .&lt;/P&gt;
&lt;P&gt;Its working when I will load one by one file ?&lt;/P&gt;
&lt;P&gt;Do anyone suggest , any way how to load the files at a time and the rowno() also works ?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 22:10:04 GMT</pubDate>
    <dc:creator>ashmitp869</dc:creator>
    <dc:date>2022-03-30T22:10:04Z</dc:date>
    <item>
      <title>scripting help need with rowno() when loading bulk files ?</title>
      <link>https://community.qlik.com/t5/App-Development/scripting-help-need-with-rowno-when-loading-bulk-files/m-p/1912160#M75179</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;i have 100 files which I need to load -&lt;/P&gt;
&lt;P&gt;The file is like below -&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_0-1648678013760.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75796i5EC3C1645136188C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_0-1648678013760.png" alt="ashmitp869_0-1648678013760.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created a script to load the file -&lt;/P&gt;
&lt;P&gt;HCW:&lt;BR /&gt;LOAD&lt;BR /&gt;Date(Date#(left(FileName(),6),'DDMMYY'),'D/M/YYYY') as _Date,&lt;BR /&gt;if(rowno()=1, 1,0) as count_active,&lt;BR /&gt;if(rowno()=2, 1,0) as count_total_isolation,&lt;BR /&gt;if(rowno()=3, 1,0) as count_total_community,&lt;BR /&gt;Nursing,&lt;BR /&gt;Medical,&lt;BR /&gt;"Allied Health" as AH,&lt;BR /&gt;"Scientific/Technical" as scientific,&lt;BR /&gt;"Admin/ Corporate" as admin_corporate,&lt;BR /&gt;"Other",&lt;BR /&gt;FileName() as HCW.FileName &lt;BR /&gt;FROM [lib://NSLHD HWC Exposures/*.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [LHD Summary]);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the count_active,count_total_isolation and&amp;nbsp;count_total_community is not working because I am taking RowNo() .&lt;/P&gt;
&lt;P&gt;Its working when I will load one by one file ?&lt;/P&gt;
&lt;P&gt;Do anyone suggest , any way how to load the files at a time and the rowno() also works ?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 22:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/scripting-help-need-with-rowno-when-loading-bulk-files/m-p/1912160#M75179</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2022-03-30T22:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: scripting help need with rowno() when loading bulk files ?</title>
      <link>https://community.qlik.com/t5/App-Development/scripting-help-need-with-rowno-when-loading-bulk-files/m-p/1912166#M75180</link>
      <description>&lt;P&gt;How about Recno(), you may try that.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 00:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/scripting-help-need-with-rowno-when-loading-bulk-files/m-p/1912166#M75180</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-03-31T00:11:14Z</dc:date>
    </item>
  </channel>
</rss>

