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: 
abhi90
Creator II
Creator II

How to know RowCount of a file

I have a file with the below data.How to get the exact rowcount of the file i.e 13?
EMPNO,EMPNAME,DEPTNO
10,A,1
11,B,2
12,C,3
13,D,4
14,E,1
15,F,1
16,G,2
17,H,3
18,I,4
19,J,2
20,K,3
21,L,1
22,M,2

Labels (2)
6 Replies
abhi90
Creator II
Creator II
Author

Hi Shong;
Can anyone help me out in this case?
Anonymous
Not applicable

Hi Abhi,



In above mention screenshot, the global variable "Number of Lines" of tfileinputdelimited components will give you exact row count of the file.
abhi90
Creator II
Creator II
Author

Hi swabhosa;
Can you elaborate more on this below context?how to use it?
Anonymous
Not applicable

Howdy Abhi,
What is the dilemma?
abhi90
Creator II
Creator II
Author

Hi dudedoe;
I didn't get you.can you elaborate me further?
Anonymous
Not applicable

Hi Abhi,

I have created a demo job to show exact row count of records from source file.

I have 100 records in my source file. Job design is simple as given below :- 




When you drag and drop the variable associated with tfileinputdelimited component "Number of Line(After)" in tjava component as show in below image :-




You will find that variable repository box (refer below image) 




My output is shown in below image :-




Hope everything is clear to you.

Regards
SB