If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Other PC Databases > sum on foxpro9 report

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-26-07, 16:36
Werner700 Werner700 is offline
Registered User
 
Join Date: Dec 2005
Location: Lancaster PA, USA
Posts: 33
sum on foxpro9 report

I'm fairly new to foxpro reporting and I'm having some trouble. Here's what i'm trying to do:

Joe $54 38%
Jim $21 15%
Nancy $67 47%
Total owed: $142


I've calculated the total for column2 correctly but i'm having trouble using the SUM command to calculate the total in column3 so that I can use it as the divisor. My formula for the percentages is currently just (lineitem/Sum(lineitem))*100 and I keep getting an error for the sum. Can the SUM command even be used on a foxpro report outside of the calculate tab for the field? Not sure what I'm doing wrong so any help would be greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 10-01-07, 12:58
Werner700 Werner700 is offline
Registered User
 
Join Date: Dec 2005
Location: Lancaster PA, USA
Posts: 33
solved

I did manage to get this squared away using some temp tables to store the calculated sum value in. Still not sure if there's any way to perform this calculation on the report itself, there doesn't appear to be.
Reply With Quote
  #3 (permalink)  
Old 10-03-07, 11:09
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
How did you calculate the total for column2?
__________________
George
Twitter | Blog
Reply With Quote
  #4 (permalink)  
Old 10-15-07, 23:10
byrman byrman is offline
Registered User
 
Join Date: Oct 2007
Posts: 2
you can use variables in the report. This variables can sum the fields and in the foot of the group, you can used.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On