Crystal report page footer formula field not summarized and not display in insert summary.
I have created a Report to generate Sales details, below picture
report
above report I need to display Actual Profit field on each invoice row and finally summarized and get sum of Actual Profit on Page footer.
I have created Actual Profit formula field, blow picture its working fine.
created formula
Problem is when i right click report footer section and insert a summary to get Sum of each invoice "Actual Profit" Not viewing formula field "Actual Profit" and also I tried to create a formula to get Total summary of (Sum of) Actual Profit field i'm getting error "This field cannot be summarized." below picture
summarized error
How can I add summary of Total "Actual Profit" on page footer?
An easy option would be to make a hidden Running Total of the Net Profit per Invoice and show this at the page footer.
Related
I have a formula field in a group footer that gets some of its information from another summary field in the same group footer. Report works great, just can't figure if I can get a grand total of the individual footer totals.... I can't use any of the Detail line fields because they need to be subtotaled first (in the group footer) so that the formula field can do its job. Is this an un-solvable circular problem? I could dump the results into excel if needbe.
thanks for any advice
My SUM of a field result in REPORT FOOTER section by grouping in formula does not work. In the following pictures you can see the flow. What I am doing wrong? Regards.
Picture 1.
Picture 2.
Picture 3.
I created a account wise group and i want to find the maximum date accroding to the group so i created a summary field. I want to add the summary field in the formula.how can i do that help me.
try this
go to formula workshop and double click Maximum summary field which is most effective way.
go to formula workshop and write as below
Maximum ({Attendance.Date})
The syntax changes if its a group footer I have given it for report footer
I use crystal report, my report have 2 fields : man=3 and woman=4. I want to calculate % man? with formula field. I try count({person.sex},"man")*100/count({person.sex}) but show Error "A field is required here"? Help me!
Take 2 running total variable, put into the group footer or appropriate section (preferable on any footer- report footer will display total percentage, not group wise) and give condition as you want or check below links.
Using a Running Total in a Formula in the Details Section of a Crystal Report
How to sum running total field for each group in crystal report?
http://community.spiceworks.com/topic/117306-crystal-reports-won-t-summarize-or-running-total-my-formula-field
please check this link
http://crystalreportsblog.com/crystal-reports-running-totals/
http://www.experts-exchange.com/Database/Reporting/Crystal_Reports/Q_28044491.html
I was be able to output a crystal report and this is about accounting logic.
some of the column appear in my crystal report is eg.
accountname debit credit
cash..........1000...300
I want the column debit minus column credit (1000-300)
if the result is positive (+) then 700 will appear in that debit column
If the result is negative (-) then the value appear in credit column and i wan to remove the negative sign. So above value 1000 and 300 is not what i wan to show and debit or credit will be 0 eg
accountname debit credit
cash...........700......0
Above case is ok so far and now i end up like this
In crystal report formula editor i have #creditbalance, and inside it has formula:
if Sum ({Entries.Debit}, {Entries.AccountName})>Sum ({Entries.Credit}, {Entries.AccountName}) then
formula= Sum ({Entries.Debit}, {Entries.AccountName})-Sum ({Entries.Credit}, {Entries.AccountName})
end if
So it can give me as i wanted to show (the 700 and 0 part)
The problem is i create another formula
#TotalDebitBalance
Sum ({#DebitBalance})
It error said "This field cannot be summarized", Then how to sum up the value i get from #debitBalance.
Note: #TotalDebitBalance i plan to put it at report footer section where all grant total usually placed there, where #debitbalance i put it at Group Header section.
Right click the report.
Insert.
Summary Fields.
Select the formula you have done on the field and change from max to sum
Change Location to Group Footer
Do the same again and this time select the Report Footer
You will have two fields, one for the group footer and other for report footer, hope this helps.
It doesn't say but I'm assuming the report is grouped by {Entries.AccountName}. In addition to Waqar's solution, I'd replace the formula with something easier.
{#DebitBalance}
IF {Entries.Debit} > {Entries.Credit} THEN
{Entries.Debit} - {Entries.Credit}
ELSE
0
{#CreditBalance}
IF {Entries.Debit} < {Entries.Credit} THEN
ABS({Entries.Debit} - {Entries.Credit})
ELSE
0
In the details section, replace the {Entries.Debit} and {Entries.Credit} with {#DebitBalance} and {#CreditBalance} repectively. This will give you the
cash...........700......0
Then do as Waqar mentioned to summarize the formula. It's easier to use the Group... and Summary... features than to do it manually in the formulas.