Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

How to display number of row of my table at Top left conner ?

Hi All

I hv a table , and i like to display number of row on Top left conner.

Paul

14 Replies
tresesco
MVP
MVP

Hi Paul,

Did you try =Count( Distinct PART_NO_)  ?

Is the number greater by one you are getting? If so, may be that is because of null, Don't you want to supress null values?

Not applicable

are you using same expression to get count both places... if possible could you please post both expressions.

Not applicable

Paul,

First you have to modify your data model.

You never count null value.

Garry

tresesco
MVP
MVP

Hi Paul,

I thought that the solution would be easier. But your's is a bit complex. I got it using a macro and variable. See attached solution.

Sub CountRow

set chart = ActiveDocument.GetSheetObject("CH230816")
set v = ActiveDocument.Variables("RowsNum")
v.SetContent chart.GetNoOfRows,true

End Sub


Cheers.

paulyeo11
Master
Master
Author

Thank you very much.