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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how do I get qlikview to match certain file names

I am doing this: For each vFile in FileList('..\LooseDataFiles\*Capabilities.xlsx') however I dont want it to match the Capabilities.xlsx file only the filenames with stuff before it like 2010Capabilities.xlsx?

14 Replies
rustyfishbones
Master II
Master II

2014-02-27_1706.png

Here is an example where it worked for me on my example files

Not applicable
Author

Alan's solution is ideal. Just made a small change to it.

Load *

From *capabilities

Where FileBaseName() <> 'capabilites' ;

This wont read from capabilities table but from everything else.

rustyfishbones
Master II
Master II

Hi Ajay,

I have tried this method and it does not work for me.

FileBaseName gives you everything before the file extension.

Which in Christopher's case, he only wants files that contain text before Capabilities.xlsx

Capabilities.xlsx contains 17 Characters and therefore if Chris uses FileName()

Where the length of the FileName() is greater than 17 it will only load those files

Regards

Alan

Not applicable
Author

Oh.. In the example he provided some had numbers as well.

2013 capabilities

abscapabilities

a b s capabiltiies

12s capabiltiies

q22capabilities

I was of the opinion he wanted anything which had something before capabilities but not just capabilities.

Sorry if my interpretation was wrong.

But either way I think Chirs has a solution now.

rustyfishbones
Master II
Master II

I must try your solution again