Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Grouping question??? Post Reply Post New Topic
Author Message
Bondo
Newbie
Newbie


Joined: 05 May 2009
Location: United States
Online Status: Offline
Posts: 3
Quote Bondo Replybullet Topic: Grouping question???
     Posted: 05 May 2009 at 2:14pm
I would like to do a grand total on the report footer, based on the 3rd and final group.  In other words, collapse the first two groups and grand total the last group.
 
Example:  Sales transactions; summarized as:
  (Grp 1)                Product Line
        (Grp 2)                  State
             (Grp 3)                    Fiscal Year
 
                  
Then on the report footer, summarize the data for each fiscal year, without regard to the product line or state.  I am new, so please be simple and explaine fully.  Thanks.
Donnie
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 05 May 2009 at 3:42pm

If I understand you correctly you want a summary of a numeric field. If so you can do a SUM on that field and place it on the report footer. To do this highlight the field you want to summarize click on the SUmmary function button. Make sure you have it set as summarizing at the report footer.

For each FY you will need to do seperate running totals.
Add a new running total and name it the FY09 (or whatever you want).
The field to summarize is the numeric field you want a total from.
Set it as a SUM.
YOu will need to create a formula for evaluate as:
since i don't know your data you will have to adjust that to make sense for your set up but it will either be a date field seperating the year and = 2009. Or something like this.
Reset as never.
Place it in the report footer.
Repeat a new Running Total for each FY you want to include.
IP IP Logged
Bondo
Newbie
Newbie


Joined: 05 May 2009
Location: United States
Online Status: Offline
Posts: 3
Quote Bondo Replybullet Posted: 05 May 2009 at 4:07pm
Sorry to be less than clear; I don't think I'm summarizing on a numeric field, but on a specific group subtotal.
 
My file consists of sales transactions, which are invoices with fields such as: date, item #, item class, customer, qty, revenue, cost, etc.  I am hiding the actual transactions in the detail section.  I have three groups, the first subtotals quantity, revenue and cost based on the item class, the second subtotals (qty, rev, cost) based on the state in the customer's address file within each item class, and the third subtotals (qty, rev, cost) on the fiscal year within each state.  The fiscal year is a formula field that first separates the year and month from the date field ({year}, {month}, then determines the fiscal year with an if/then/else that creates a fiscal year field, upon which the 3rd group subtotals.  I would like to have a totaling of each fiscal year in the report footer, with no regard to the item class or state.
 
Is your answer the same? 
Thanks,
Donnie
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 05 May 2009 at 4:32pm
Unless you have some other  formula process imbedded to only count certain records to get your totals yes it is the same. YOu can use your formula field for the FY as your condition for each of the distinct FY running totals.
e.g. {@Fiscalyear}="2009" (or whatever the formula name is = however you are presenting your results).
IP IP Logged
Bondo
Newbie
Newbie


Joined: 05 May 2009
Location: United States
Online Status: Offline
Posts: 3
Quote Bondo Replybullet Posted: 05 May 2009 at 8:05pm

Hate to be such a bother, but one more question.  Will this work if the fiscal year is dynamic?  I have a parameter set to allow the user to select the beginning and ending dates for the report.  Any given report may have any number of years, from 1 to n.  Thanks,

Donnie
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 06 May 2009 at 7:50am

Only if your created a process for every conceivable FY that could be selected in the run time parameter then conditionally suppress them.

Not a good solution.
You might be better off placing a subreport in your footer that links on the record ID and is grouped by FY formula (recreated in the sub report) and placing your summaries in there. This would dynamically change as the dates change.


Edited by DBlank - 06 May 2009 at 7:51am
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum