I'm working with Drupal version 6.13 and views_calc

I'm working on making a table sporting a team sum points in every game
This made each team is a content type , TEAM1, TEAM2. Every game is a new node for each.

The content type had a field integer (Points) , in which accumulates the points gained in each game

Manage Field
add
Field Type -> integer
Label Points

Now try to make a view which shows a table of positions, the points for each team is the sum of the points scored in their games.

Set

Grouping field: Team
Points Display calculation -> Points

TEAM POINTS MATCH

TEAM2 2 Match1
TEAM2 2 Match2
Total sum 8

TEAM POINTS MATCH
TEAM2 3 Match1
TEAM2 1 Match2
Total sum 8

But in all cases views_calc sum all the values in the field points,
Is there any way to do that SUM is the number field for each team

Example

Type: TEAM1
TYPE DATE
2 Date 1
2 Date 2
Total sum 8
Type: TEAM2
POINTS TYPE DATE
TEAM2 3 Date 1
TEAM2 1 Date 2
Total sum 8

Sorry about my English
thanks

Comments

doknet’s picture

Title: sum values in a field, with content-type separately subtotal » sum values in a field, with content-type separately subtotal, retract example

Sorry
I want do is to show the results of the follows

Example
TEAM POINTS MATCH

TEAM2 2 Match1
TEAM2 2 Match2
Total sum 4

TEAM POINTS MATCH
TEAM2 3 Match1
TEAM2 1 Match2
Total sum 4

Thanks

jeffschuler’s picture

Status: Active » Closed (duplicate)