Skip to main content

FileSize - script function

The FileSize function returns an integer containing the size in bytes of the file filename or, if no filename is specified, of the table file currently being read.




  • filename: The name of a file, if necessary including path. If you don't specify a file name, the table file currently being read is used.
    • absolute

      Example: c:\data\

    • relative to the QlikView document path.

      Example: data\

    • URL address (HTTP or FTP), pointing to a location on the Internet or an intranet.


Examples and results:  

Examples and results
Example Result

LOAD *, FileSize( ) as X from abc.txt;

Will return the size of the specified file (abc.txt) as an integer in field X in each record read.
FileSize( 'xyz.xls' ) Will return the size of the file xyz.xls.

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: