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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
aheavy95
Creator
Creator

show number of rows in report

Hi all

I need to add to my report the number of rows that exist in it at any given time. 

I was asked to place this counter on top of the report as a kpi (near the date time)

any Ideas? 

thanks

 

aheavy95_1-1660203717100.png

 

Labels (4)
5 Replies
rubenmarin

Hi, hard to say witout knowing the dimensions and expressions used and the data model behind, but as an idea, you can try with Count(distinct Item_Code) and applying a set analysis that mimics the one(s) that the table does.

aheavy95
Creator
Creator
Author

I added a rowno() column

now all I need is to get the max (last) number which is 950 in this case and place it on top somehow

any ideas?

 

aheavy95_1-1660234673793.png

 

 

sidhiq91
Specialist II
Specialist II

@aheavy95  Just add rowno() function in the measure. And then totals function select Max, that would show the Max value at the top of the column. Please see the screen shot below:

sidhiq91_0-1660273572559.pngsidhiq91_1-1660273606643.png

 

MayilVahanan

HI

Try like below in KPI

=Sum(Aggr(1, urdim1, urdim2, urdim3))

or, if you have primarykey in the table, then 

=Sum(Aggr(1, urprimarykey))

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

do you mean as an additional column in the table? how do I view it as a kpi?

thanks