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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

i have loaded a table and i want calculate the records without using count function?how in ui level?

i have loaded a table and i want calculate the records without using count function?how in ui level?

6 Replies
MayilVahanan

Hi

Try like this

1. Load *, 1 as Records from tablename;

Sum(Records) as expression

2. Load RowNo() as Records from tableName;

     Max(Records) as expression

3. There is a system fields, u can use it that also.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
MarcoWedel

NoOfRows()

ashfaq_haseeb
Champion III
Champion III

Or use this macro

Sub CountRow

set chart = ActiveDocument.GetSheetObject("CH01")

set v = ActiveDocument.Variables("RowsNum")

v.SetContent chart.GetNoOfRows,true

End Sub

Regards

ASHFAQ

ecolomer
Master II
Master II

=Max(RecNo())

=Max(RowNo())

Not applicable
Author

Hi Manoj

you can perform below steps

Load *, Number = take as the Table records

Sum(Records) use as expression

2. Load RowNo() as Records from TableName;

     Max(Records) as expression

jagan
Partner - Champion III
Partner - Champion III

HI,

Try like this

TableName

LOAD

*

FROM DataSource;

LET vRowsCount = NoOfRows('TableName');

Now in UI just use vRowsCount.

Hope this helps you.

Regards,

Jagan.