Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikconsultant
Creator III
Creator III

Count loaded files?

I load files with:

Table:

LOAD *;

SELECT *

FROM ../../QVD/*DATA.qvd (qvd);

Can I count how many files i have loaded in the report?

2 Replies
MK_QSL
MVP
MVP

Don't know about files but tables you can count as below

NoOfTables()

marcus_malinow
Partner - Specialist III
Partner - Specialist III

One way to achieve this would be something like this:

Table:

LOAD

    filename() as filename,

    *

FROM

[../../QVD/*DATA.qvd] (qvd);

FileCount:

LOAD

    Count(DISTINCT filename) as FileCount

RESIDENT Table;

LET vFileCount = peek('FileCount', -1);

DROP TABLE FileCount;