Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
riyazasma1009
Creator
Creator

Help with FileBaseName() function

Hi All,

I want to load just the base file names of all the files present in a folder. This folder contains different types of files such as qvw, txt, xls,xlsx, doc,docx, pdf, png etc.

I am aware that FileBaseName() returns the file name excluding the file path and file extension.

I am using the below script :

The problem is it is not giving the file base names for all the files. The base file names of files in xls, xlsx, png and some doc files are not being returned.

Can anyone please help me with the same?

Thanks,

Asma

6 Replies
ajsjoshua
Specialist
Specialist

Anonymous
Not applicable

joshua solomon

Already shared, Go through it

riyazasma1009
Creator
Creator
Author

Thanks Balraj and Joshua Solomon for the quick reply!!

But my doubt here is all the files present in the folder are not being read by the FileBasename() function. Some files are being ignored i.e. even though they are present in the folder, they are not being read.

ajsjoshua
Specialist
Specialist

Hi,

What type of files are ignored.

riyazasma1009
Creator
Creator
Author

Some qvw files, all xls files, all png files. After each reload, the list of files being ignored by the FileBaseName() function changes.

marcus_sommer

It looked for me that you didn't want to list the filenames of files which you are loading within qlikview else you want list all files which are in certain folders, right? Then you need to use flielist like in example from the link above and not filebasename().

- Marcus