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 ?
Thanks
Try this: on your Percentage column, change the aggregation rule to "server complex aggregate."
Similar Messages
-
So I am calculating the % change between two Quarters with the following formula:
((Current Qtr / Prior Qtr) -1) *100
my rows are calculating correctly but my column's grand total does a sum and it isn't correct. How can I get my grand total to calculate similar to my rows in my table?Hey Lacey - I followed your instructions and am able to calculate the correct total % change:
((SUM(Current Qtr) / SUM(Prior Qtr)) - 1) * 100
That is now displayed in it's own column (or I can hide it and don't see it at all). How do I get that value to display in the grand total of the standard % change column?
Thanks! -
Want Running / Grand Total excluding supressed values
Dear All,
I have made a report in Crystal Report where there is 1 Group which contains database fields as Document No, Document Date, Customer Name and Sales Order Document Total and in the detail section I have database fields as Row Status of Sales Order Line Items as Open or Closed.
Now I have put a formula in the Group database fields that if any row status which is in the detail section has 'C' means closed then it should supress it. The formula is - if {Command.LineStatus} = 'C' THEN TRUE ELSE FALSE. This is supressing and I am having the report as per the desired requirement. Now I want to have a Total of the report which should show me the rand Total of Only what is shown in the report but the problem is that if I am putting the running total then in the grand total the Document Total which are supressed also are adding up. How to resolve it.
Means I only want a running or grand total of what data is been fetched and not the supressed values.
Please help and advise.
Regards,
SwamyDear
No there seems to be still the problem.
I once again try to explain my report. I am trying to make a Sales Order which are open. Open for me means for Sales Order whose no Delivery or A/R Invoice is made. Meams all lines items are open. To check this I made a Group and placed the document numer, Document Total in the Group Header and used the supress formula in this field as in format > supress as if {Command.LineStatus} = 'C' THEN TRUE ELSE FALSE.
The field Command.LineStatus is in the detail section. By the above formula I am able to bring only the sales order whose target document is not made for any single line or in other words the sales order is open.
The SQL query is :
SELECT T0.[DocNum], T0.[DocStatus], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[DocTotal], T2.[LineNum], T2.[TargetType], T2.[TrgetEntry], T2.[LineStatus] FROM ORDR T0 INNER JOIN NNM1 T1 ON T0.Series = T1.Series INNER JOIN RDR1 T2 ON T0.DocEntry = T2.DocEntry WHERE T1.[SeriesName] = 'KSAPRJ' and T0.[CANCELED] = 'N' AND T0.[DocStatus] = 'O'
As per your advise I made a new formula field 'Total' and used If {Command.LineStatus} <> 'C' then {Command.DocTotal} else 0
and then placed it in the same Group Header beside Document Total and then run the report then its showing corectly the values but when I sum up the 'Total' field the Adding is wrong.
Can you advise is my report making process wrong or any advise.
Regards,
Swamy -
When Requested for a Grand Total the column values changes to zeroes
Hi,
I have a report with 2 dimensions and 4 facts. The report is showing the correct data when compared with EBS, but when we are applying grand total in Table View then for fact values are displaying zeroes. However the grand total is correct but for some dimensions the measures are displaying zeroes.
At this point i have modified the Aggregation rule of 1 measure from Default to SUM and when i clicked results Wonder, i can see grand total and the zeroes were replaced with actual values. When i have compared logical queries before applying the aggregation and after, the measure is surrounded with function REPORT_AGGREGATE and REPORT_SUM respectively.
Can anyone explain me why is this behavior occurred, i got the solution but i am not in stage to explain to client why it happened.
Kindly help and i will make sure it is definitely marked.Re: Bottom Line Grand Total
Use the Subtotal function instead of the Sum function for all totals.
The Subtotal function ignores other Subtotal functions in the column you are summing.
Your three "Sum" functions would look something like...
=SUBTOTAL(9,J3:J7) '300
=SUBTOTAL(9,J8:J14) '900
=SUBTOTAL(9,J3:J14) '1200
'--- Info
1 AVERAGE
2 COUNT
3 COUNTA
4 MAX
5 MIN
6 PRODUCT
7 STDEV
8 STDEVP
9 SUM
10 VAR
11 VARP
Jim Cone
Portland, Oregon USA
free and commercial excel programs at...
https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2 -
Grand total feeding from Multiple Subjects Area
Hi,
I have to create a report that displays Grand total = sum of values from one subject area + sum of values from another subject area. How do i achieve this.
ThanksCreate a prompt based on the report(incl criteria) from SA1, include the measure column in the prompt, the value of the measure is based on the 'contrain' of each column in the prompt and assign to Presentation variable.
Call Presentation variable in the report which is from SA2.
ex: Report 1 from SA1 is like: $amount by year, by prodcut,by org
Report 2 from SA2 is like: $OrderAmount by year, by prodcutType,by org
Report1 by Prompt: Year->constrain, PRoduct->Constrain, Org-Constrain, $Amount as PS Var 'amt'
Report 2 as reqular report, try to call @{amt} in the report for addition. -
Grand total level of the percentage column giving value from the first row of column
Hi Guys,
I have a requirement like to show the percentage value which the calculation of two columns , in the grand total level .
I think it can be achievaable by giving the aggregation rule for that column as Server complex Aggregate .
eg.
Fiscal Year Department subdepartment Total cost Sub Department cost % cost
2011 Edu Books 500 50 10
2011 Edu Note Book 200 100 50
2011 Edu Furniture 300 30 10
2011 Edu 1000 180 18
Grand Total
Ideally it should come like as above ..but the problem with me that ,it showing correct value for all the rows ,but at the grand total level it's taking the value of % cost from the first row . like below..
2011 Edu 1000 180 10
Grand Total
I have calculated the % cost column in the answer itself as (Sub Department cost /Total Cost )
where the
Aggregation rule for the columns given are
Total Cost - Sum ,Sub Dep Cost - Sum, % Cost - Server Complex Aggregate
So plz suggest me any Idea to achieve this ..Thanks in advance.Give the agg. as avg for % field.
Best of Luck,
Kashi -
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 -
How to hide % measure column Grand Total value in Pivot View in obiee 11g?
Hi ,
I am facing a issue in obiee 11g .I am using a Pivot table to display the grand total of 3 metric columns eg: A , B, C out of which B is percentage so I need to remove the grand total value of the percentage column. We have to stick to Pivot View only. Anyone can sugest me on this?
Thanks ,
ShrutiMove B to rows section or cast to char in Criteria tab by keeping the B in Measures section only.
cast(B as char) -
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 -
Percentage calculation at Grand Total Level
Hello,
I have issue in calculating the percentage at grand total level. I have three measures (A count, B count and Total count). These measures are defined in rpd with aggregation rule as sum. In answers i am calculating A % as 100*A count/Total Count. I have defined the aggregation rule for this percentage column as default. I am able to get correct % results for sub total level but getting wrong percentage values when Grand Total level is added. Going through some posts in this forum, people have suggested to enable this tag in instance config file.
<ReportAggregateEnabled>true</ReportAggregateEnabled>
After adding this tag, i am able to get correct results. The issue is when there is no data i am able to see table view with all columns having blank values even though i have defined the no result view.
Please HelpHI,
For your CKF set exception aggregation as summation based on the last most characteristic in the row in the reference(as per the example it is product)
Regds,
Shashank -
Percentage in Totals / Grand Totals
I have 2 columns on a report (in reports builder) that have numbers - total touched & total count. I am calculating the percentage done with the following formula: ROUND(((PP_TOUCHED / PP_TOTAL) * 100),2). This works fine for the detail lines, but I can't get the correct percentage in the grand totals.
Also, when I use the above formula and one of the numbers is zero, I get an error.
KrisI have 2 columns on a report (in reports builder)
that have numbers - total touched & total count. I
am calculating the percentage done with the following
formula: ROUND(((PP_TOUCHED / PP_TOTAL) * 100),2).
This works fine for the detail lines, but I can't
get the correct percentage in the grand totals.How are you calculating the percentage for grand total? Create a formula column at report level and use summary columns in the formula to calculate percentage.
Also, when I use the above formula and one of the
numbers is zero, I get an error.
It may help:
ROUND(decode(nvl(PP_TOTAL,0),0,((PP_TOUCHED / PP_TOTAL) * 100)),2) -
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 values are not matching with Detail report
Report has grand totals and when I drill to the detail report, grand total values are NOT matching with parent report totals, I did some analysis but I'm clueless on this issue.
Please provide your thoughts and insight on this issue..
Thanksis your summary and detail reports hitting different facts, like summary hitting aggregate and detail report hitting it's corresponding detail level fact..?
if then,
From Front-end:
Fix the filter values in detail report that are passing from master report then try delete each columns then check the grand total. If you found your values is matching by deleting particular column then you need to investigate what is the issue around with that dimension table..
From Database side:
1. check first aggregate table has proper aggregate data of it's detail..
2. Take the detail report obiee generated query and try to comment each dimension table and it's corresponding joins to the facts, (before, this delete all the dimensional columns and other measures from select statement and put only that measure where you are getting wrong value, so that you need not to comment all the select and group by columns which saves your time.. ). Need to check by commenting each dimensional wid and it's table from clause, if you found that values is matching then there is some problem with wid columns data population in your ETL.
Is that BI-Apps project?
btw, whtz ur name? -
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
Maybe you are looking for
-
My Safari crashes every time I do three fingers left-swipe
I am a new Lion user. I have just upgraded my machine from Snow Leopard to Lion yesterday. My Safari crashes whenever I use three fingers left-wipe to make it go back to the previous page. These are my settings image on trackpad.... Is there anyone h
-
Warning: -23 not understood. Ignoring.
I've ran into what I think is a simple problem but I don't know how to resolve it. I need to pass negative arguments to a Java application (i.e. java JavaApp -23). This works in Windows but no on RedHat 9. I think it doesn't work because Linux thinks
-
Validating a text field that has date in the format mm/dd/yyyy
How can I validate a text field such that it should be in the format mm/dd/yyyy and it should not be greater that a particular date. for example the date I enter should not be greater than 01/01/2007
-
Keep in table cell data permanently
Hi I have a table when i click on add button on the toolbar one empty row should be inserted in the table ok it was fine now i need to enter some data into the newly added row then i need to press save button of the tool bar that data should be saved
-
How to create this Hieararchical Tree?
Hi All, Please help me on this issue. I need DRILL DOWN functionality in forms. Im trying to Study / Create Hierarchi Tree Concept in Forms 6i, but couldn't able to manage /Understand how to create this. Please any one could help me. and im giving my