Hi, well done and great job really.
The module is sort of a great addition to views IMHO.
The thing I would like to see soon in views_clac:
More calculation types: difference? product? Or a more generic way to specify calculations.
Also I would like to see a feature to specify the oprtation name, i.e. sometimes I want to show the user an average of some fields and let's say calle them Volume Weighted Average Price (in stock market) or Total order price (in a order list page).
Thanks.

Comments

goose2000’s picture

Yes, adding more of our own calculations would be great. Is there a way to do that now?
Say I wanted to convert work hours submitted into days. How could I add the math
to divide hours by 8 (8 hours being a working day ) ?

It is a great, trouble free module to start using - thanks !

John A

karens’s picture

Version: 4.7.x-1.x-dev » 5.x-1.x-dev

New features will only go against 5.x and up. the 4.7 version is bug-fix only.

What calculations would be desired? I'm assuming that the column calculations are sufficient (and I don't know what you could do for those other than SUM, COUNT, or AVERAGE), it's the row calculations that could be more flexible.

karens’s picture

One way to do this would be to implement http://drupal.org/node/128788 where you create a custom computed field that has the calculations you want, then use that field in the view. I'm not sure if it would work or if it would solve the issue, but that's one direction to take this.

karens’s picture

Title: Sum, Count, Average, Average (all) » Custom Calculation Fields
Status: Active » Fixed

Changing the name to better describe this. I just committed some code to the development branch which allows you to create custom Views fields with little SQL snippets to do calculations, like (%MyField1 + %MyField2) or (%MyField1 / 100).

The code is in the development branch until it get some testing.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.