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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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?

Labels (1)
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;