Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone ,
How to load excel files having different format eg. Biff, ooxml dynamically?
excel files are either in biff format or ooxml format when I ran the code below I get this error for some excel files :
I have this code
I think the error occur because of the format qliksense read the excel file in.
You may just add the needed format-information here:
... ($(vFileType), no labels, header is 4 lines, table is [Comparative Holdings$]) ...
and this variable is set before in regard to EXT or the year-query in the if-loop or ... but EXT should be sufficient and then you may save the two redundant load-statements.
Beside this - by associating the date later with a calendar you could skip the year/month deriving and if they are needed for further script-logic you could simply the approach by doing it in a preceding-load, like: