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 Database
Post 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.
Similar Messages
-
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 -
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" -
Running Totals and Formulas with Cross Tabs
Hi,
I'm using Crystal Reports 2008 and am having two issues using Cross Tabs.
The first is that I want to have two crosstabs. They both will have a common Y axis (Oppourtunity.Sales Rep), and on the Y Axis I want one to show all (Opportunity.Create Date) where (Opportunity.Staus = Won) and the other where (Opportunity.Staus = In Process), but I can't figure out how to contruct the formula to return this result.
The other issue, is that in addition to summarizing based on Sum (Opportunity.Expected Revenue), I would also like to create a running total to show the cumulative (Expected Revenue) Week over Week.
Any direction would be fantastic.
Thank you,
MichaelPlease go through the SAP Notes listed here which would help you how to create mannual running totals in crosstab
[https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=runningtotalin+crosstab&adv=true¬e_number=&component=&sdn_updated_on_comparator=GE&sdn_updated_on=&sortby=cm_rnd_rankvalue]
Regards,
Raghavendra -
Hi,
I am having some problems using Grand Total on calculated columns (presentation calculations) with a TOP 25 page filter.
I basically have my calculated columns filtered by the Current Week repository variable, and then I want to add a filter to show only the top 25. That all works fine, but the grand total on my report is showing the total of all records, not just the top 25. If I add a normal (non-calculated) column from my subject area, the grand total works fine with the top 25 filter.
Is there any explanation or workaround for this?Hello!
I had the same problem, and this fix solve one part of my problem with grand totals.
The other one is not solved:
We have a strong request to compare total_year measures against part_year measures (dinamicaly navigated with dashboard prompt).
I have a report in dashboard which includes 3 measures:
- plan_year_total (which is created in admin as measure of sales and at time_dimension logical level is year - and this works ok)
- sales_part_of_the year (which is navigated through dashboard prompt between)
- plan_part_of_the_year (which is navigated through dashboard prompt between)
Problem is when I want to show share in grand total row like:
plan_year_total / sales_part_of_the year
It gives out totaly wrong result.
Is there any other idea or workaround?
Gorazd -
Percentage of Grand Total Per Detailed Row.
Hi All,
New to BI Pub and I am trying to go through the blogs and forums.
I have a question about how to insert % of grand total in a table.
I have the following requirements....
Group by: State
City | Sales | % of Grand Total Sales
Albany 100,000 10%
Buffalo 500,000 50%
New York City 400,000 40%
State Total <NY> 1,000,000
so on so forth....
Grand Total Sales 1,000,000
The summing of sales by state and grand total, i got so far.
I'm having trouble on % of Grand Total Sales by City.
For each city, i need % of the total sales.
How do I do that in an RTF template?Hard to say without seeing some sample XML data. In principle...
<?SALES div sum(//SALES)?>
But you might want to use the ratio_to_report function in your query instead. -
I have two facts : Income & Forecast
I have two dimensions : Date & Organisation
I have a report for 2007 that shows the following data:
Week Income Forecast
Week1 100 100
Week2 100 100
Week3 100 100
Week4 100 100
Week5 100 100
GTotal 10000 10000
I know that the grand total is wrong as I have NOT selected the report based total, so it is totaling for all years, not the year that I have filtered for.
When I change to report based totals I get:
Week Income Forecast
Week1 100 0
Week2 100 0
Week3 100 0
Week4 100 0
Week5 100 0
GTotal 500 0
The foreign keys and joins for income and forecast are the same.
Any ideas ?
RossYour forecast values rollup properly if you do not have the grand total? Add another criteria which would basically do the summation of the forecast and the amount values(add filters depending on what you have in the first criteria). Combine it with the first criteria using union all. Check whether this produces your output properly(if the grand total gets interspersed with the data, add some logic to make it appear at the place you want). This will help us understand where it is going wrong.
Thanks,
Venkat
http://oraclebizint.wordpress.com -
Grand total (Report footer) issue in a Report with Group selection.
Hi,
The case is simple, i have to summrise the NetValue field of a report at the Group level and at the Report level(Grand Total).
I also use a Group selection filter (I have grouped my records by MaterialDesc) to keep the desired groups.
As you already guessed, my group totals are fine but the grand totals(report footer) contain both filtered and non filtered group records. Is there any way to avoid this problem and get a Grand Total from the filtered group records?
Thank you.You can not use standard summaries with Group Suppression you must use either Running Totals or variables.
In Running Total evaluate click theformual button and eneter reverse condition to your group suppression.
If you can not do that then you must use a Var
In group footer where total is currently correct place a formula like this and suppress it
@eval
whileprintingrecords;
global numbervar RepTot;
If ..whatever your suppression condition is not true... then reptot:= reptot + sum( valuefield, groupfield);
In report footer
@display
whileprintingrecords;
global numbervar RepTot;
Ian -
Printing Grand Totals in Footer along with page total
Hi
I have a report which prints PO Header and PO Lines. For each page while iterating thru PO Lines I print page total in the footer.
Once all PO Lines are printed with page totals in the footer of each page, I want to print Grand total in the last page in the footer along with last page total. Currently my XML data has pre-computed grand total in the PO Header block.
The problem
I have wrapped header and lines inside <?start:body?> and <?end:body?> which allows me to print page totals outside the <?end:body?> tag.
I print page totals and "Continue" next to it in the footer. But
Finally when grand total comes into picture in the outer loop I want to replace "Continue" text with grand total value in the last page and print it as footer.
I tried to use xdoxlt:set_variable() function to flag a variable value to 1 when iteration happens in HEADER block and set it to 2 in inner loop of lines block. But the scope of the variable is confined between <?start:body?> and < ?end:body? and is not visible outside the <?end:body?> tag.
The logic I want to accomplish is
if var = 1 then
print page total and "Continue"
elsif var = 2 then
print page total and Grand Total.
end if
This logic doest work as the value of var is not visible outside the body tag.
I want to use this variable value to print footer which lies outside <?end:body?> tag with grand totalor page total
Please suggest if there is any other way I can accomplish this functionality. Can we use parameter and update it. Syntax for update parameter value is not clear in user guide.
Any help would be appreciated.
thanks
sukarnathanks for the info, i was trying to avoid this but had already reached the same conclusion.
everything else seems to be very time consuming and may not work correctly in the end.
we're on Oracle Applications : 11.5.10.2 which has just been converted to utf-8 and is an Oracle On-Demand installation.
do you know if 5.6.3 of the publisher is supported and any ideas on how difficult it is to get it installed?
cheers
ellen -
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 -
How to add one column value with grand total
hi,
this is my perform.i am just here multipling menge and gpres value and stores into G_total variable and displing into output.
this is my output in main window.
ex:mat. 1 77.00(g_total value)
mat 2 55.00(g_total value)
now the requirement is to add the column and display the output as grand total ex: 77.00 +55.00 = 132.00
how to do the syntax please help me......???
FORM get_total TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
DATA: lv_menge(20),
lv_gpreis(20),
g_total(20),
g_total1(20).
DATA:lc1 TYPE string,
lc2 TYPE string,
ls_tab TYPE itcsy,
l_tabix TYPE sy-tabix.
READ TABLE in_tab WITH KEY name = 'RESBD-MENGE'.
IF sy-subrc EQ 0.
lv_menge = in_tab-value.
ENDIF.
READ TABLE in_tab WITH KEY name = 'RESBD-GPREIS'.
IF sy-subrc EQ 0.
lv_gpreis = in_tab-value.
ENDIF.
REPLACE ',' INTO lv_gpreis WITH ''.
CONDENSE lv_gpreis NO-GAPS.
READ TABLE out_tab WITH KEY name = 'G_TOTAL'.
IF sy-subrc EQ 0.
g_total = lv_menge * lv_gpreis.
out_tab-value = g_total.
CONDENSE g_total.
lc1 = g_total+0(2).
lc2 = g_total+2(3).
CONCATENATE lc1 lc2 INTO g_total SEPARATED BY ','.
out_tab-value = g_total.
CLEAR ls_tab.
LOOP AT out_tab INTO ls_tab.
l_tabix = sy-tabix.
CASE ls_tab-name.
WHEN 'G_TOTAL'.
ls_tab-value = G_TOTAL.
MODIFY out_tab FROM ls_tab INDEX l_tabix.
ENDCASE.
ENDLOOP.>
asissahu wrote:
> hi.
>
> nobody is replying my question???
>
> please help me
Hi, Asissahu
Because may be some one have problem to read your code
Please have a look at the following link and past code this way.
[How to post code in SCN|How to post code in SCN, and some things NOT to do...;
@Naga Please you too
Regards,
Faisal -
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 -
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 -
Post Author: eshwar_polawar
CA Forum: Formula
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
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 -
OBIEE 10g - Unable to see data in the report view with grand total applied
Hi,
We're facing with a strange issue.
We're working on a report view.
We're able to see data when Grand total is not applied on the report. The moment Grand Total is applied, it's showing either an empty table with NULL values or "No Results" page.
Please help.
Thanks in advance.
-RamaHi Dpk,
Thanks for your reply.
I included it in the instanceconfig.xml, but the issue still exists.
Couple of Observations
#1 - We noticed this issue when we drill down to the level which has really sparse data.
It works fine when we look at the enterprise wide report.
#2 - Works fine with few dimensional attributes and facts on the report
When we add a fact that doesn't have any value at that level, the issue starts to appear.
Thanks in advance.
-Rama
Maybe you are looking for
-
How to achive table column header style (vertical text)?
Hi, Can we show adf table column headers with vertical text, and with rotation. For eg. "Dept Id" lable should show up as similar to what the below HTML does: <html> <div style="float: left; position: relative; -moz-transform: rotate(1000deg); /* FF3
-
hi experts i have a problem with my code: SORT i_data by lifnr grund. loop for summing quantity for each vendor and reason for movment: LOOP at i_data INTO wa_data. if i_data-shkzg = 'H'. i_data-erfmg = i_data-erfmg * -1. modify i_da
-
I run Windows-XP SP3 and I can't get the image from a Siemans Gigaset cam. There is an error in the cam code (a lacking rutine) . IE8 ignores this and displays the image anyway. Is it possible to get a notification like Ignore/Abort/ Continue ???
-
Hi Friends, Please can anybody detail integration points b/n MM Module and SD Module? (also specify the underlying databse table names and fields with detail) . Regards Srinivas
-
Running Health Checks Manually in 11g
tell me the procedure of generate HTML report using DBMS_HM PL/SQL package. Regards Sachin