Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ashmitp869
Creator II
Creator II

scripting help need with rowno() when loading bulk files ?

Hi there,

i have 100 files which I need to load -

The file is like below -

ashmitp869_0-1648678013760.png

 

I have created a script to load the file -

HCW:
LOAD
Date(Date#(left(FileName(),6),'DDMMYY'),'D/M/YYYY') as _Date,
if(rowno()=1, 1,0) as count_active,
if(rowno()=2, 1,0) as count_total_isolation,
if(rowno()=3, 1,0) as count_total_community,
Nursing,
Medical,
"Allied Health" as AH,
"Scientific/Technical" as scientific,
"Admin/ Corporate" as admin_corporate,
"Other",
FileName() as HCW.FileName
FROM [lib://NSLHD HWC Exposures/*.xlsx]
(ooxml, embedded labels, table is [LHD Summary]);

 

But the count_active,count_total_isolation and count_total_community is not working because I am taking RowNo() .

Its working when I will load one by one file ?

Do anyone suggest , any way how to load the files at a time and the rowno() also works ?

Thanks

 

Labels (1)
1 Reply
Digvijay_Singh
MVP
MVP

How about Recno(), you may try that.