Skip to main content

FileBaseName - script function

The FileBaseName function returns a string containing the name of the table file currently being read, without path or extension.

Syntax:  

FileBaseName()

Examples and results:  

Examples and results
Example Result

LOAD *, filebasename( ) as X from

C:\UserFiles\abc.txt

Will return 'abc' in field X in each record read.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!

Join the Analytics Modernization Program

Remove banner from view

Modernize without compromising your valuable QlikView apps with the Analytics Modernization Program. Click here for more information or reach out: ampquestions@qlik.com