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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
HPW
Contributor II
Contributor II

Count rows in a table

Hi,

While downloading tables from our ERP into qvd files I want to count the number of rows for each table.  The number of rows and a timestamp are added to a separate table as log file.  I'm working with variables for the download. Each table is having different columns. Which function can I use to count the rows of the ERP table not having a column name?

 

SET vtable = CONTRCLASS;
$(vtable):
SQL SELECT *
FROM admin.$(vtable);
STORE $(vtable) INTO $(vtable).qvd (qvd);

Concatenate(ImportLog) LOAD
'$(vtable)' as Table,
????????????? as RowNumbers,
Now() as Timestamp
AUTOGENERATE(1);

DROP table $(vtable);

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

HPW
Contributor II
Contributor II
Author

Worked well. Thanks!