Views Calc

Last modified: March 29, 2009 - 06:00

Turn a normal table like:

into this:

Instructions:

  1. Create a view and add fields to it as you normally would. Start by creating a normal table and make sure that works as you expect.
  2. Change the style type from 'table' to 'Views Calc table'.
  3. In the Views Calc table settings, mark which fields need calculations.

  4. Save the view.

Field...

sherabdorje - April 30, 2009 - 14:55

What may I do to have fields like the examples:
Content: Date
Content: Rank
etc.

I've tried to add a kind of field "content" but i didn't find it ¿?
It may be obvious but i don't know how to do it.

Show details

mylesorme - May 3, 2009 - 00:02

I assume by content you mean the body of the post...

The style options include the tick box "show details"

Totals by group

mylesorme - May 2, 2009 - 23:55

How do we create sub-totals by group

Lets say we have a table showing: school; number of volunteers

This is grouped by 'programme'

How do I get a sub-total for each programme - at the moment it just repeats the totals at the end of each group?

Great Question...

LiveLoveWorkPlay - June 18, 2009 - 16:31

Wondering the same thing ..
Looking into going about an approach here: admin/settings/views_calc

Any progress on your end mylesorme? (or anyone else?)

warning: Invalid argument supplied for foreach()

kk-mini-pw - May 23, 2009 - 13:45

Hi I have a table with several fields and grouping option. When I switch to Views Calc Table I get:
warning: Invalid argument supplied for foreach() in .....sites/all/modules/views_calc/theme.inc on line 178.

Is there any patch for this?
Thanks,
K.

Similar - seems specific to Date fields

SiteMaster.Serv... - August 14, 2009 - 06:31

Hi there.

I seem to get a similar error - when using a Date field. (might be Date-specific ?)

Echo that

Ryan Weal - August 28, 2009 - 07:00

I get the same error. I think I had enabled a relationship in one view and later took it out but the error remains.

Same thing for me...

shaynl - September 3, 2009 - 13:40

"warning: Invalid argument supplied for foreach()"…
Is it working with computed fields?

foreach() error

MikeBC - September 15, 2009 - 01:01

it went away for me once I created a calculated field in the view

 
 

Drupal is a registered trademark of Dries Buytaert.