Grand Total on Formula
I have a quantity field in my main report that I passed off to my subreport. In the subreport I took the quantity field and placed it in a formula ({@Valuation Material Costs}*{@Qty from Main Report}). This is placed in the Group Header. Now I want to setup a grand total of this formula but I can not figure out how to get there. Any ideas?
If your formula already contains any summarized fields then you cannot summarize that formula. Try creating a mannual running total like this
whileprintingrecords;
numbervar i;
i:=i+@formula;
Now place this formula in group footer or header and suppress this formula. Create a new formula like
whileprintingrecords;
numbervar i;
Place this in report footer which shows the grand total.
Reagrds,
Raghavendra
Similar Messages
-
Inserting a Grand Total on formulas with variables
Post Author: MikeA-ICE
CA Forum: Formula
I'm working on a subreport that displays the amounts of items 1-4 in the details band. They contain a quantity and I am performing a calculation where I multiply the quantity of those items by the total of the main report. The main report passes its Grand Total to the subreport via the "Store/Fetch" function and the calculation works perfectly. However, when I try to get a Grand Total of those items, that option isn't available. I tried to build a standalone formula to do this (SUM (Markup$) but it didn't work. How can I get the total value of items 1-4 so I can send it back to the main report to do more calculations on?
Thanks for the help,
Mike
Edit - (per the Forums Usage Tips)
Crystal 11 (11.0.0.1994)
Latest Monthly Hot Fix installed
Windows Vista (Business Edition)
Access DatabasePost Author: MikeA-ICE
CA Forum: Formula
Thanks Jagan. I'll check that out. I've been using the Store/Fetch function for years and it works well. My problem is generating a total to send back to the main report. Basically, I'm trying to send a value from the main report to the subreport to use in a calculation, then send send the total of that calculation back to the main report from the subreport. But I can't get Crystal to allow me to insert a subtotal on the 1st calculation in the subreport. -
How to summarize the formula field for grand total
Hi All
Iam desinging a report in which iam facing a problem to summarize the formula field . This formula field contains sum calculation like
formula name is @sales
Sum ({@DTM200}, {@SaleMan})+Sum ({@DTM500}, {@SaleMan})+
Sum ({@TM500}, {@SaleMan})+Sum ({@TM1000}, {@SaleMan})+
Sum ({@HTM500}, {@SaleMan})+Sum ({@HTM1000}, {@SaleMan})+
Sum ({@WM500}, {@SaleMan})+Sum ({@WM1000}, {@SaleMan})+
Sum ({@CURD}, {@SaleMan})+Sum ({@Buttermilk}, {@SaleMan})+
Sum ({@BULKWM}, {@SaleMan})+Sum ({@BULKTM}, {@SaleMan})
the fields are summary fields and iam calculating all these fields to get the final result . Upto this it is working fine but finally i want to calculate the grand total of this formula '@sales' how should do this
Thanks in advanceHi,
If your formula name is @Sales you click the @Sales formula then Click Insert from Menu bar and click Summary.
Then click Grand Total.
Regards,
Clint -
Grand Total formula different from Subtotals
Hi,
i've a question. Suppose i have a normal table (No pivot) with 2 columns: Month and Salary percentage on Month.
In addition i have subtotals on Month column and a Grand Total. I have a situation like this:
Month Salary percentage on Month
30
January 20
50
January Subtotal 100
20
February 70
10
February Subtotal 100
Grand Total 200
In Salary percentage on Month field I have as aggregation rule Sum because i want that subtotals are the sum of single rows of the month.
But i don't want this for grand total. It should be 100 (max of subtotals).
Is it possible specify a different formula for Grand Total respect to that used for Subtotals?
Thanks
GiancarloIf your formula already contains any summarized fields then you cannot summarize that formula. Try creating a mannual running total like this
whileprintingrecords;
numbervar i;
i:=i+@formula;
Now place this formula in group footer or header and suppress this formula. Create a new formula like
whileprintingrecords;
numbervar i;
Place this in report footer which shows the grand total.
Reagrds,
Raghavendra -
Formulated Grand total as percentage value
Hi,
Here is my sample data
Val1 Val2 Percentage( Val2/Val1 )
59 16 27%
19 4 21%
78 20 26% (now instead of getting 26% i'm getting 48%). How to get formulated grand total value based on previous two columns ?
ThanksTry this: on your Percentage column, change the aggregation rule to "server complex aggregate."
-
Obiee 11G - Show grand total in chart
I have three measures in my table.
Measure 1 - Rolling balance from the current and previous month.
Measure 2 - PeriodRolling revenue for the last three months including current month
Measure 3 - Calculation using measure 1 and measure 2 and the number of days.
I have created all three measures in the RPD.
The table is by state. So it could be Texas, New York, Illinois and so on.
Month
State
Measure 1
Measure 2
Measure 3
1
Texas
17565
9898989
45
1
New York
97848
8748575
43
2
Texas
85768
8734874
33
2
New york
94855
3234442
23
The chart shows the trend of Measure 3 by time for each state. I need a line on the chart to show the total by month. Do I have to create a sum() formula in the RPD? Appreciate any ideas that you can throw at me.I created a new group in the selection step and included all the states in it. That seemed to work. The Graph shows a line for grand total. Thank you for your help.
The requirement is to create a line chart. I don't think a bar would work as well here. -
Operations on Pivot Grand Total
Hello experts,
is it possible to have different operations on Pivot Table's grand totals summations?
For example I want one of the columns to show
Grandtotal1/Grandtotal2 instead of summing up that column.
Thank You
RegardsGo for Union request..
and add your 2nd request as Grand Total by keeping the static Text for column formula. And, here your measure part should calculate a/b as you desired.
Regards
Kishore Guggilla -
How to get sub and grand total
Dear all, I have a report which combines the two totals together and and makes one formula. This formula then is filtered according to Group2 (Reason Code).
Group 1 is the same Reason Code however with Specified names. Group2 is the same reason code however with ascending order.
My question is how to make the sub total and grand total of this formula.
Detailed Information:
1: Total One - DistinctCount(Order_no),GroupName2 -- In this Total, the records are counted when Linetype = F
2: Total Two - DistinctCount(Order_no),GroupName2 -- In this Total, the records are counted when Linetype = S
Formula
Whileprintingrecords;
Numbervar x:=0;
Numbervar y:=0;
Numbervar z:=0;
x:={#FOCTC};
y:={#CREDITTC};
z:=x+y;
z;
Now this formula is placed in the footer of the Group2 (Reason Code).
What I would like to do is to have a Group2 Sub Total and Finally Grand Total.
I have tried the Following however it doesn't seem to be working.
I created another formula exactly like above and placed it into the same Group footer however removed the "Numbervar o:=0;" (The numbervar z:=0; in the above case however when I created another formula I created named the variable "o" instead of "z") so that it does not reset it.
Then I placed another formula into the Report Footer with the following code
Whileprintingrecords;
Numbervar o;
Any ideas?
Many thanks
Regards
JehanzebOk sorted, I used another formula like this.
Whileprintingrecords;
Numbervar TJGs;
Numbervar TotalJobs=0;
Numbervar CAvg=0;
TotalJobs := {@TotalFOCCR};
CAvg:= TotalJobs;
TJGs:=TJGs + CAvg;
CAvg
It sorted the issue. -
Crystal Reports Grand Totals and int not working
I am new to Crystal Reports, I am using the Visual Studios version. I have a couple of different questions. My report is a cross tabs report. In one of the cells I want to include a name and the total number of records for the person. To make it visually appear how I want it, I have chosen the Cross-Tab Group Options - Use a Formula. This is what I have entered:
{SP_GET_QATPADJ.AJNAME} + ChrW(13) + ToText(Int({SP_GET_QATPADJ.CNT})) + " Claims", the problem is the .CNT field still shows the .00 after the number. I want it to be a whole number. I have tried several different functions in place of the Int, but it still shows the .00.
My second question, is there any way to modify just one grand total? Within each person of the report there are three rows, number correct, number possible and percent (all of these are returned in the stored procedure). The total column on the right totals the correct & possible okay, but for the percent I would like it to be the percent of the total correct & total possible. LIke the total correct is 13 and total possible is 20, I would like the percent to be 65 (it is showing 234 the sum of the percents for all the columns).Inorder to remove .00 for an integer try this
ToText(Int({SP_GET_QATPADJ.CNT}),"##")
For the other question
Right click on Total Correct value and go to format field and write the suppress condition by clicking on X+2 corresponds to suppress like this
whileprintingrecords;
numbervar TC:=currentfieldvalue;
false;
Now again Right click on Total Possible value and go to format field and write the suppress condition by clicking on X+2 corresponds to suppress like this
whileprintingrecords;
numbervar TP:=currentfieldvalue;
false;
Now right click on percent value and go to format field and click on X+2 corresponding to DisplayString
and write the formula like this
whileprintingrecords;
numbervar TC;
numbervar TP;
totext((TC/TP)*100)+"%"
Hope this would deffinetly help you!!!!
Raghavendra.G -
How to show Grand total values in Chart view....
Hi,
I have a crazy req. like i need to show grand totals values also on the chart view along with the normal metrics.
column Metric1 Metric2
AAA 10 20
BBB 30 15
CCC 20 15
TOTAL 60 50
so here i need the values 60 and 50 also also to be displayed in a line graph
cheersPretty simple to achieve :)
In your Pivot view, under Rows section where you have column dimensions like AAA,BBB etc...create a new calculated item say Grand Total with function as 'formula' and formula as sum(*). This will give you a new row with totals. Now Chart Pivoted Results and you are done.
Hope answered -
Problem with Grand total in Crystal report xi
Post Author: eshwar_polawar
CA Forum: Crystal Reports
Dear all,
I am facing the problem with Grand total field in Report footer.Please advise me how should we resolve it.
My report design as follows
Report Title
Page Header section:
charged date fee_ description charge_ amount currency_code
Group Header #1(Group by bank_ref)
Group Header #2(Group by Currency code)
Details
charged date fee_ description charge_ amount currency_code
Group Footer#2
(Sub Total )
Running Total field(Fields to Summarize on Charge_amount, Evaluate on "Group2# change of currency code) ,Sum of Charge_amount,Currency_ code
Report footer:
Sum of (charge_amount) currecy code
Example of data:
charged date fee desc chrage amount currencycode
0000000060129
CAD
10-Oct-2007 Transfer 200 Cad
11-Oct-2007 comm 150 cad
Sub total 350 Cad
0000000060129
CAD
10-Oct-2007 Transfer 100 USD
11-Oct-2007 comm 150 USD
Sub total 250 USD
Grand total should 350 CAD but it is showing all total amoun 1000 CAD ,Group by Curreny code in the table
250 USD but it is showing all total amount 1200 USD
Please provide the solutions like:
1).About Running total in Report footer section
2).Formula on While printing records for grand total
3).How will send links with subreports
Thanks and Regards
EshwarPost Author: eshwar_polawar
CA Forum: Crystal Reports
eshwar_polawar:
Dear all,
I am facing the problem with Grand total field in Report footer.Please advise me how should we resolve it.
My report design as follows
Report Title
Page Header section:
charged date fee_ description charge_ amount currency_code
Group Header #1(Group by bank_ref)
Group Header #2(Group by Currency code)
Details
charged date fee_ description charge_ amount currency_code
Group Footer#2
(Sub Total )
Running Total field(Fields to Summarize on Charge_amount, Evaluate on "Group2# change of currency code) ,Sum of Charge_amount,Currency_ code
Report footer:
Sum of (charge_amount) currecy code
Example of data:
charged date fee desc chrage amount currencycode
0000000060129
CAD
10-Oct-2007 Transfer 200 Cad
11-Oct-2007 comm 150 cad
Sub total 350 Cad
0000000060129
CAD
10-Oct-2007 Transfer 100 USD
11-Oct-2007 comm 150 USD
Sub total 250 USD
Grand total should 350 CAD but it is showing all total amoun 1000 CAD ,Group by Curreny code in the table
250 USD but it is showing all total amount 1200 USD
Please provide the solutions like:
1).About Running total in Report footer section
2).Formula on While printing records for grand total
3).How will send links with subreports
Thanks and Regards
Eshwar -
Rank on column-level Grand total column in pivot table - Need help
Hi ,
I have developed the report, which is having a pivot view. In pivot view i have a column level grand total. I need to apply the rank for the grand total column..
will that be possible.. if possible let me know..
Thanks
KishoreMAY BE IT IS NOT POSSIBLE IN PIVOT VIEW< AS WE DONT HAVE FORMULA EDIT OPTION FOR COLUMNS IN PIVOT VIEW.......
Thanks & Regards
Rushi -
Grand total of calculated column and case function in the same calcultd col
Hi Gurus,
In 9.0.4, the Grand total of the calculated column is not working as per the CASE function. It is taking the ELSE formula for all records. Is there a way to correct it.
Thanks,
PoojaHi Pooja,
In the totals ,which u mentioned try using cell sum function instead of sum function.
Manikandan
GKB Consulting Inc., -
Grand Total Not working on Materialized view based table ??
Hi all,
I have a complex report report by using sum and decode function. I precalculated my requirment in database and then create a materialized view based on my sql statement. I import this view in physical and BM model and its results very fine and efficient. But the problem create when I implement Grand Total on my report in table view it did'nt work means (Grand Total is not working on this MV based table) Any idea why ??
any reply would by higly appriciated.
RegardsHi Zishan,
Check the Aggregation Rule and set it to sum in the table view.
That is go to the "edit formula" tab of the column for which you want grand total and set that to sum.
Hope this will help.
Thanks
Ashok -
Grand total on table with variance
!http://img17.imageshack.us/img17/4070/resulta.jpg!
hi, I set the column formula of variance to be: ("Current Value" - "Last Value) / "Last Value" * 100
when I enabled the "grand total" of the table, it gives the grand total of variance = 0%.
but actually it should be 3.3%
how to achieve my goal.
thank you very much!("Current Value" - "Last Value) / "Last Value" * 100.00
Change "100" to "100.00"
Maybe you are looking for
-
I now have no access to any mac now, and the old mac while it still has my old information freezes immeadiatley upon starting. I am therefore switching to PC laptop that has be graciously given to me. My question is how do I get my information off my
-
Raw device for oracle 8.1.7 on AIX 4.3.3
Hi there, I am trying to use a raw device on AIX 4.3.3 for ORACLE 8.1.7. I have created a raw device /dev/or_system brw-rw---- 1 oracle dba 54, 1 Mar 04 10:44 or_system but it is not possible to create a datafile on it : SVRMGR> create database "GLM"
-
Email freezes up when I click on links
I have multiple email accounts hooked up to my Iphone 5 (gmail, microsoft outlook work account, etc.) and no matter which account I am looking at emails in, when I click on a link the whole email viewer freezes up and I have to force shut the program
-
The error message in iTunes says: "iTunes could not sync calendars to the iPhone "XXXXX's" iPhone because the sync server failed to sync the iPhone." Relatively new iPhone, sync was working fine until I installed updates, how bad an idea is that? At
-
Extension Manager 1.7 - not seeing Flash 8
I searched on this problem and only came up with very, very old posts. I have Studio 8 - DW, FLash, FW etc. The ONLY application that the E.M. displays is Fireworks 8. I cannot load any extensions for Flash (or DW either), it keeps telling me that Fl