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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
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

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

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.

tresB
Champion III
Champion III

Like this:

Load *, fileextension( ) as Ext

from .....\abc.txt