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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Finding out the file extension

Hi All,

Is it possible to find out the file extension of a file in the script?

Thanks,

Asma

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Like this:

Load *, fileextension( ) as Ext

from .....\abc.txt

View solution in original post

2 Replies
Not applicable
Author

yes.

Use

Subfield(filename(),'.',2) as FileExtension

to get file extension.

example:

tab1:

Load Subfield(filename(),'.',2) as FileExtension,*

FROM excel or database

Regards,

Uday.

tresesco
MVP
MVP

Like this:

Load *, fileextension( ) as Ext

from .....\abc.txt