|
-
Apr 4th, 2001, 09:05 AM
#1
Thread Starter
Addicted Member
I don't know if anybody is really familiar with Crystal Reports Formula Generation, but I'll give this a shot.
I have a report, it displays a list of different cities in the United States and the cities are organized and group by state. (IE Charlotte, followed by Raleigh are under North Carolina). Now then, I have a total for each city listed next to that city, seperate by year. Like so..
NORTH CAROLINA
Charlotte 10,000
Raleigh 20,000
TOTAL FOR NC - 2001 XXXXXXX
Charlotte 15,000
Raleigh 5,000
TOTAL FOR NC - 2002 XXXXXXX
My problem is I can't seem to work the formula section right to generate just the total for that specific state in that specific year. I have all 50 states listed and when I try to get the sum of that Program Amount Field, I get the total for the entire united states instead of just that state. Can anybody give me a hand? 
-
Apr 4th, 2001, 09:12 AM
#2
Fanatic Member
I did something similar a while ago and the way I did it was to create a group by State in your case and then a total for the state in that group.
Don't know if this of any use to you.
Gary Lowe 
VB6 (Enterprise) SP5
ADO 2.6
SQL Server 7 SP3
OK I know my spelling and grammer is crap so don't quote me on it!
To err is human to take the P! is only natural !!
Click on the top section of image for Marcus Miller website and bottom section of image for 'Run For Cover' sound clip

-
Apr 4th, 2001, 09:27 AM
#3
Gary's right, you'll need to create a group for the states.
Insert menu > group
-
Apr 4th, 2001, 09:31 AM
#4
Thread Starter
Addicted Member
Oh no, I have the Group Sections for both the State and the Year. My report looks perfectly fine, I just can't get the subtotals for the particular State at a particular Year. You guys are saying get the total for the group, what I am doing is inserting a Formula Field and trying to use the Sum() function for that Program Amount field. That's just returning the Sum of all the Program Amount's and supplying them all to me.
-
Apr 4th, 2001, 09:53 AM
#5
Thread Starter
Addicted Member
I got it, I just right clicked on the Program Amount field and said, Insert Subtotal. Thanks for the help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|