Views Calc

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by karens on May 17, 2006 at 7:57pm

I have a views_calc module in my sandbox that allows you to total a table of views fields across by row or down by columns. You can choose to SUM, COUNT, or AVERAGE the total. It includes a plugin theme that is more spreadsheet-like (right justifies numeric data, highlights and underlines the total columns, etc.)

I have it on a production site now at http://www.everbloom.us/home/results/views. On that page you see a summary view of cck nodes that contain fishing tournament results. When you select one, you see a view filtered by the argument for that date that totals the number of fish caught and the weight.

If anyone else is interested, you can find it in my sandbox at http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/karens/

If it seems useful, I can set it up as a project for further enhancement.

Comments

You are a champion. This

Posted by gordon on May 18, 2006 at 12:07am

You are a champion.

This gives me a real incentive to get the views intergration complete in E-Commerce.

Thanks.

--
Gordon Heydon

Nice

Posted by sime on May 18, 2006 at 2:06am

If it seems useful...

Nice understatement, KarenS. :-)

I've just dusted off my BusinessObjects/COGNOS hat. Is that drill-down/through behaviour easily configured?

.s

The drill down comes from

Posted by karens on May 18, 2006 at 1:07pm

The drill down comes from creating a view that uses arguments for whatever value you want to filter on. Set up the argument to show a summary listing when you create the view. That will give you the effect you see on the page I pointed you to.

Views Calc doesn't get involved in any of that, that is all standard views stuff. Views Calc jumps in right after the views query has been executed and manipulates the results to calculate and format the totals, so you need to first create a view that produces the results you want to calculate.

Tabs

Posted by Anonymous on November 20, 2006 at 10:49pm
Anonymous's picture

All right, so I get the arguments bit, but how did you have it filter by date? Or are you using a custom date field, as opposed to event?

And how did you create the tabs to have multiple filters?

Thanks for any info you can provide!

Whoops

Posted by hairylunch on November 20, 2006 at 10:50pm

Whoops, that was me who posted the above question . . . forgot to login!

hmmm i'm having trouble

Posted by mrtunes on June 25, 2007 at 1:37pm

hmmm i'm having trouble figuring out what sort of argument i should be using to get rid of displaying all the values before they get summed. i just want to show the totals cause the finer math is done on another page. great project btw!

timesheet

Posted by edrex on May 18, 2006 at 11:16pm

Thanks Karen, I can use this for totaling timesheets on my project management site.

More calculation types

Posted by Rosamunda on May 1, 2008 at 2:45am

Can be added more calculations?
ie. percentage?, interest rate?

Excellent module BTW!

Only total

Posted by pareen on December 4, 2011 at 11:21am

like mrtunes, I also want to show just the sum and not the entire table / values.

Is there a way to accomplish that with Views calc?

Ubercart order: Total

Posted by awsfanboy on January 30, 2012 at 10:22am

hi there i want to use this for calculate the SUM of "Ubercart order: Total" please help me how to do it

thanks

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /