how to calculate a total

H

hermie

Hello
in the footer of my report i made a calculated textbox
=IIf([tipotarea]="1",Sum([points])) this works but shows the total of all
points. What I want is only the total of point where tipotarea is 1
e.g.
tipotarea points
1 23
1 29
1 32
2 45
2 39
So in my case i like that the calculated field show 84 and not 168
Is this possible?
herman
 
R

Rick Brandt

hermie said:
Hello
in the footer of my report i made a calculated textbox
=IIf([tipotarea]="1",Sum([points])) this works but shows the total of
all points. What I want is only the total of point where tipotarea is
1
e.g.
tipotarea points
1 23
1 29
1 32
2 45
2 39
So in my case i like that the calculated field show 84 and not 168
Is this possible?
herman

=Sum(IIf([tipotarea]="1",[points],0))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top