Counting documents in a view

Hi,

Id like to be able to count the number of documents in a view. I cant seem to find any way to do this.

What Id like to see is this. If I group several documents by category in a view, Id like one column to display the total number in that category, and then a total at the bottom of the screen.

I know its possible, I just dont know how to do it!

Any ideas?

Mat
prenexusAsked:
Who is Participating?
 
AntonysinghConnect With a Mentor Commented:
Hi ,

In your view Create a column with Column value as 1, go to sorting property of column and make total option enable. If you want to see only the total of documents when collapsed (unexpanded), and you do not want to see details of total, mark "Hide details row" propery. I hope you have a categorised column in your view.


good luck,

Regards,
Antony.
0
 
ghassan99Commented:
go to the column properties, the second tab (sorting), then choose the method of counting from the 'total' drop down box.
0
 
prenexusAuthor Commented:
Ive tried the total column before, but either Im using it wrong or its not doing what I want.

When I choose a column to place the total in and make it a Total in properties, it always displays zero. No matter what I try!

Maybe some more explanation is in order.

I have a Tax database with a view categorised by Form status. I  want to place a count of all the documents with..say...Open as status, Closed as status, Pending etc. in a column.

Does that clarify a bit more?

Mat
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
sk5tCommented:
The @DocChildren function should return what you want, but I believe you'll have to use it in the categorized column--although I imagine this should suit your needs just fine.

For example, if your current column formula in the view lists the status field, try:

Status + " - " + @DocChildren + " documents"
0
 
sk5tCommented:
The @DocChildren function should return what you want, but I believe you'll have to use it in the categorized column--although I imagine this should suit your needs just fine.

For example, if your current column formula in the view lists the status field, try:

Status + " - " + @DocChildren + " documents"
0
 
prenexusAuthor Commented:
Good answer, but again its not quite what Im looking for.

I tried your solution and while it worked great, its not quite what Im after.

I want to put the total in a column off to the right so that when all the categories are unexpanded (closed) then the totals will be next to the categorie names, but in a column thats sortable.
(So you can rank the number of outstanding issues against the closed issues or something like that.)

Any more ideas?

Mat

0
 
prenexusAuthor Commented:
Thats it!

Thanks for everyones help - its easy when you know how!

Mat
0
All Courses

From novice to tech pro — start learning today.