Views Calc Table

This module adds simple calculations to a views table. Requires the Views module.

You can SUM, AVERAGE, COUNT, MIN, MAX, or AVG selected columns. A plug in theme makes the view look more spreadsheet-like (right justifies numeric fields, shades calculated columns and rows, and underlines calculated rows).

You can also create custom dynamic fields that can be used in any view using SQL snippets like CONCAT('field_first_name', ' ', 'field_last_name') or DATE_FORMAT(node.created, '%m/%%d/%Y'). The custom fields are set up in admin/settings/views_calc.

Known Issues

  • The complex queries created are not relationship-safe yet, so you can't do accurate calculations on fields coming from relationships.
  • Custom fields can't do anything intelligent with multiple value CCK fields. For now stick to single value fields in custom fields.
  • After Drupal 7 Core changed a lot with fields in the last days before final release, the previously working Views Calc needs complete overhaul again. We consider it broken now and there's a lot work needed to make it work again. Check the issue for more information. Queries without Drupal core fields should still work.

Credits

Views Calc is maintained by KarenS.
A partial resource-optimized rewrite, major cleanup (6.x-2.x), a Port for Views 6.x-3.x and a Port for Drupal 7 has recently been submitted by Miro Dietiker of MD Systems.

Project Information

Downloads

Recommended releases

Version Downloads Date Links
6.x-1.3 tar.gz (18.31 KB) | zip (22.77 KB) 2009-May-17 Notes
5.x-1.0 tar.gz (9.99 KB) | zip (10.7 KB) 2008-Feb-13 Notes

Development releases


Maintainers for Views Calc

  • miro_dietiker - 16 commits
    last: 36 weeks ago, first: 1 year ago
  • KarenS - 50 commits
    last: 2 years ago, first: 5 years ago

Issues for Views Calc

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 2 Dec 06
nobody click here