Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How can I count the records loaded into my table ?

Hi,

I am loading a QVD file into my application. How can I count the total number of records loaded ? Is there a script statement which can do this ?

Thanks

MV 

1 Solution

Accepted Solutions
sarvjeet
Contributor III
Contributor III

use statement below and after loading data from qvd 

let vRecordPre =NoOfRows('tablename');

// Load data from QVD

let vRecordPost =NoOfRows('tablename');

diffrence of two variable will give you new records

View solution in original post

7 Replies
Anonymous
Not applicable
Author

Create text box

In the Write the expression like

=Count([Field Name])

IAMDV
Luminary Alumni
Luminary Alumni

Try

QvdNoOfRecords(filename)

Cheers,

DV

www.QlikShare.com

Anonymous
Not applicable
Author

Hi,

COUNT() function can help you to achieve this.

Thanks

Not applicable
Author

Just take the maximum rownumber from the data you are loading. Use the rowno() function and then fetch the max rownumber from the resident table.

T1:

Load *,Rowno() as RowNumber from Table1;

T2:

Load Max(RowNumber) resident T1;

sarvjeet
Contributor III
Contributor III

use statement below and after loading data from qvd 

let vRecordPre =NoOfRows('tablename');

// Load data from QVD

let vRecordPost =NoOfRows('tablename');

diffrence of two variable will give you new records

Not applicable
Author

Hi Deepak,

Where does this statement go ? In a text object ? In the script ?

I've tried both and it didn't like it.

MV

Not applicable
Author

It should go in the script.