3

I am trying to get a total count of the results using Views. Looking at this link, Count results in Views using aggregation, I use aggregation, but Views counts each row as 1. For example, this is what I get:

TITLE         Results
"A title"     1
"A title2"    1
"A title3"    1
etc...

I want it to be

Title
"A title"
"A title2"
"A title3"

Results: 3

Any way to do this in Views? If not, is there a way I can weak the current Views SQL or its output instead of having to write my own module and SQL query from scratch?

13

Add a Global: Result summary field to the footer. There is no need to turn on aggregation.

  • 1
    I think you mean Global: Result summary not "Global: results" in list of things offered in Footer. So, in the View edit screen, select 'Add Footer' (middle column of the settings) then choose Global: Result summary And then choose from the various @ prefixed variables regarding what you'd like to display. – therobyouknow Apr 1 '14 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.