Percentage calculation according a result
Hi,
I have an issue with a percentage calculation in a query.
As rows I have Product Hierarchy 1, Product Hierarchy 2 and Material. I would like to show the sales for each material as a percentage of the result by Product Hierarchy 2 and in another colunm the percentage according the result by Product Hierarchy 1. I have used the option "Normalized according to the next level.." and it works to calculate the percentage according Product Hierarchy 2, but how can i manage to calculate the percentage according to Product Hierarchy 1( it is not the next level of the hierarchy, it would be the second next level)?
Thanks in advance.
Hi ,
check this link ..
http://help.sap.com/saphelp_nw70/helpdata/EN/ee/37e80557494542806a38498d99a463/content.htm
Hope this helps ...
Regards,
Shikha
Similar Messages
-
Percentage Calculation for result rows
Hi
I have problem with percentage calculation on result rows. I have 2 KFs A and B, the result is calulated by setting 'calculate result rows as' to 'summation'.
But in KF 'C' (which is calculated as A/B*100 ),
Now the probles is the systen picks up original values of A and B for calculation of C in result rows.
i.e. system picks up values of result rows for A and B for
setting 'calculate result rows as' to 'nothing defined'.
Any ideas on how to fix this.
Thanks
KarenKaren
I found something in Forum for you
Result Rows Calculation
Pradip's Solution should work. Try and if it is don't forget to award points.
Regs
Gopi -
Percentage Calculation using RKF and CKF
Hi,
I am unable to create a CKF which calculates % of a key figure (Net PO value). The % has to be calculated on the overall total of the column.
My scenario does not allow me to use formulas to do so. So I had to create a RKF which uses my key figure and I restricted it with Vendor (Constant Selection) which was in my rows. Then I created a CKF which calculates the percentage using this restricted key figure. But when I go into my query analyser and open this query and try to restrict the vendors to only a few, the percentage is still calculated to the entire vendors for that particular company code.
Is there another way to solve this problem where I could get the percentage values according to as many vendors I filter the report on?
Many thanks
IA
Edited by: I A on Jan 13, 2010 1:39 PMHello I A,
Go to Query Designer, select you key figure and in "calculations tab" select: Calculate individual values as--> Normalize after overall result (8th option).
I hope this helps! (in that case rewrd pts please )
Regards,
Jordi -
Percentage Calculation in 11g Upgrade
upgradin to 11g issue in % cal
The issue is as follows
In 11g I'm calculating "ESS Rate" percenatge which is derived as below:
ESS Rate=(ESS count/count)*100
have casted ESS count as double and also "Count" as Int. Both the columns aggregate rule defined in the column formula is "sum"
Edited by: 982333 on Jan 16, 2013 3:12 PMFor more info on the columns values defined in column formula:
ESS Rate =100*CAST(sum(CASE WHEN "Pr Audit Setup Tax Fed Fact"."Audit Oprid Nm"="- Identity".Name THEN 1 ELSE 0 END) AS double)/CAST(count(IFNULL("Pr Audit Setup Tax Fed Fact"."Audit Oprid Nm", 'NA')) AS int)
Result obtained:
ESS RATE| ESS Count | Count
86.46% | 121 | 135
while a simple calculation using calculator would clearly give you (121/135)*100= 89.63% and not 86.46%
Can some one please help me in resolving this issue i do not see an reason for the wrong calculation of "ESS Rate" Percentage calculation. -
Percentage calculation on query designer (7.0)
Hi experts,
I´m new on Query designer (7.0) and I´m trying to do a finnancial report, so for the lines I create and structure using G/L accounts and in the columns I got the amount for each level in my structure for a month. Now I´m trying to create an Integration percentage, it specifies how high the percentage in a level is in relation to next higher level but so far I couldn't make it...
My report must seem like this:
Structure.............................Amount ...... Int %
1. Assets................................1000 ....... 100%
1.1 Current assets.................... 600 ....... 60% -> (600/1000)*100
- Cash............................. 300 ........ 50% -> (300/600)*100
- Inventories..................... 300 ........ 50% -> (300/600)*100
1.2 Long-term assets................ 400 ....... 40% -> (400/1000)*100
- Property, plant and eq..... 150 ....... 37.5% -> (150/400)*100
- Investment property......... 150 ....... 37.5% -> (150/400)*100
- Intangible assets..............100 ....... 25% -> (100/400)*100
I try to use each Percentage calculation options (%, %A, %CT,%GT, %RT) but it didn't work. Can anyone help me in creating a formula to get this percentage?
ThanksHi,
check this notes and links to get an overview how to use:
III. List Calculations (e.g.'Calculate result as..'):Interesting facts about the OLAP Processor/Analytic Engine
SAP Note Number: [1151957|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31313531393537%7d]
If, in a structure element (key figure ID), you use the 'Calculate Results as' and 'Calculate Single Value as' properties with their additional fields at the same time, priority problems occur and the system behavior is not immediately clear.:
Calculate Results/Single Values as ... priority rules
SAP Note Number: [853058 |https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d383533303538%7d]
Regards
Andreas -
Error: The percentage of requests that resulted in internal errors
I am using grid control with a 10.2 database and I keep getting this error with my http server.
Currently the error says:
The percentage of requests that resulted in internal errors is 55.1%
The metrics are set as warning = 1% and critical =1.5% so obviously this is a little over what we expect.
I have done some searching and cannot find any info about this metric or the resulting error. I guess I am looking for any help in understanding what this error means and if there is a way to fix it. Any info about how this percentage is calculated would be of help as well.
thank youI've raised an SR on this, asking for more information on the following two Oracle HTTP Server metric alerts:
The percentage of requests that resulted in failures is 69.09%
The percentage of requests that resulted in internal errors is 409.09%
I have found a reoccurring error in my apache logs:
File does not exist: /app/ora/product/EM10GR2/oms10g/Apache/Apache/htdocs/favicon.ico
This seems to be something to do with IE 5, so not sure its related.
I will keep you chaps updated with what oracle come back with.
Bazza -
Why I can not find the percentage calculation %ct
Hi,
I m trying to use the Percentage Calculation %ct for a calculated KeyFigure. There are only two Functions: % and %A
Can anyone explain why it is so?
thanks and regardsHi,
Percentage Variance (%)
<Operand1> % <Operand2>
This gives the percentage variance between operand 1 and operand 2.
Percentage Share (%A)
<Operand1> %A <Operand2>
This gives the percentage share of operand 1 and operand 2. It is identical to formula 100 * <Operand1> / abs(<Operand2>) , if <Operand2> is not equal to 0 and the character for u201CDivision by 0u201D if <Operand2> is equal to 0.
Use
You use the following percentage functions as operators when you define a formula or a calculated key figure.
Features
NULL values are displayed as empty cells, not as 0. For more information about when NULL values occur and how they are displayed, see Technical Notes About the Formula Operators.
Percentage Variance (%)
<Operand1> % <Operand2>
This gives the percentage variance between operand 1 and operand 2. It is identical to:
Formula 100 * (<Operand1> - <Operand2>) / abs(<Operand2>) , if <Operand2> is not equal to 0 and the character for u201CDivision by 0u201D if <Operand2> is equal to 0.
Plan Sales % Actual Sales specifies the percentage difference between the plan sales and the actual sales.
Percentage Share (%A)
<Operand1> %A <Operand2>
This gives the percentage share of operand 1 and operand 2. It is identical to formula 100 * <Operand1> / abs(<Operand2>) , if <Operand2> is not equal to 0 and the character for u201CDivision by 0u201D if <Operand2> is equal to 0.
Character for "Division by 0" :See SAP Reference IMG u2192 SAP Customizing Implementation Guide u2192 SAP NetWeaver u2192 Business Intelligence u2192 Settings for Reporting and Analysis u2192 General Settings for Reporting and Analysis u2192 Display of Numeric Values in the Business Explorer.
"Fixed costs" %A "costs" expresses the proportion of the total cost of a product that is the fixed cost.
Percentage Share of Result (%CT)
%CT <Operand>
This shows how high the percentage share is, with regard to the result. The result is the outcome of aggregating the second highest results level (interim result).
Use
You use the following percentage functions as operators when you define a formula or a calculated key figure.
Features
NULL values are displayed as empty cells, not as 0. For more information about when NULL values occur and how they are displayed, see Technical Notes About the Formula Operators.
Percentage Variance (%)
<Operand1> % <Operand2>
This gives the percentage variance between operand 1 and operand 2. It is identical to:
Formula 100 * (<Operand1> - <Operand2>) / abs(<Operand2>) , if <Operand2> is not equal to 0 and the character for u201CDivision by 0u201D if <Operand2> is equal to 0.
Plan Sales % Actual Sales specifies the percentage difference between the plan sales and the actual sales.
Percentage Share (%A)
<Operand1> %A <Operand2>
This gives the percentage share of operand 1 and operand 2. It is identical to formula 100 * <Operand1> / abs(<Operand2>) , if <Operand2> is not equal to 0 and the character for u201CDivision by 0u201D if <Operand2> is equal to 0.
Character for "Division by 0" :See SAP Reference IMG u2192 SAP Customizing Implementation Guide u2192 SAP NetWeaver u2192 Business Intelligence u2192 Settings for Reporting and Analysis u2192 General Settings for Reporting and Analysis u2192 Display of Numeric Values in the Business Explorer.
"Fixed costs" %A "costs" expresses the proportion of the total cost of a product that is the fixed cost.
Percentage Share of Result (%CT)
%CT <Operand>
This shows how high the percentage share is, with regard to the result. The result is the outcome of aggregating the second highest results level (interim result).
If a characteristic has been drilled down in both the rows and the columns, this reference is not unique. The system displays a warning and the relevant symbol for Data Does Not Exist. For more information, see SAP Reference IMG u2192 SAP Customizing Implementation Guide u2192 SAP NetWeaver u2192 Business Intelligence u2192 Settings for Reporting and Analysis u2192 General Settings for Reporting and Analysis u2192 Display of Numeric Values in the Business Explorer.
Percentage Share of Overall Result (%GT)
%GT <Operand>
This shows how high the percentage share is with regard to the overall result. The overall result is the outcome of aggregating the highest results level. Dynamic filters (filters that were not specified in the Query Designer) also play a role in calculating the overall result.
Percentage Share of Query Result (%RT)
%RT <Operand>
This is the same as %GT.
Unlike the process for calculating the overall result, dynamic filters are not used in the calculation of the query result. This means that the calculation always normalizes to the same value, irrespective of the filter status and the navigational state.
Reg
Pra -
Percentage calculation in reprot painter
Friends,
When i am doing percentage calculation in report painter ex: A/B *100, it is giving rounded value like 28% instead of 28.5 or 28.6. Any idea where i need to make changes.
Points will be assigned
ThanksGo to the Formatting-->Columns link in GRR2 screen. On the pop up screen maintain the decimal places you want.
Regards,
Vishal Thakur -
Percentage calculation error?
Hi guys,
I must be missing something very basic - I can't get a simple percentage calculation to work in an applet:
float percentage = 0;
int amount,total;
amount = 4;
total = 10;
percentage = (float)((amount / total) * 100);
Instead of returning 40.0 in "percentage", this keeps returning 0.0...
What am I doing wrong? How do you calculate a percentage in Java?
Thanks!do the type casting of either of total or amount
Gaurav -
Percentage calculation based on subtotal in webi 4.0
Hi Experts ,
How do i calculate the % column in webi 4.0 so that % would be calculated by the amount of Primary channel / Subtotal ) in one block.
=[Amount Of promary Channel]/Sum([Amount Of promary Channel]) In Block - not giving correct output.
Thanks,
RajibHi Rajib, As per my understanding, you want to show percentage on the base of subtotal.
that means if you set break on the Compony then percentage column should contain the percentage calculated on the basis of compony subtotal.
like this...(just one block of break)
then just use the simple percentage function ( =percentage(amount) ), this will automatically calculate the percentage based on subtotal.
and if you want to show 100% in subtotal row also then you can use formula= (amount/sum(amount)),
i think we dont need to use contex operator here.
formula for AHW total row = amount/sum(amount)
Let me know if this will help you,
Thanks,
Nitin -
Bex Query - Specific calculation in query result
Hi experts!
I've received a requirement and I cannot find any way to delivery it using the stantard operation or configuration into Bex Query.
We have a query which have three KF with summarization in result. The new requirement is based in the KF "POND" to change the calculation in the result. Below are the actual result and the expected result.
The actual query result.
Line
OP
QTD
TMP
POND
A1
1614073
702
19
13338
Total A
702
19
13338
B1
1587949
840
235
197400
B2
1610938
4.240
28
118720
Total B
5.080
263
316120
Total A + B
5.782
282
329458
The expect result based on the new requerment
Linha
Ordem de Produção
QTD
TMP
POND
A1
1614073
702
19
13338
Total A
702
19
19
B1
1587949
840
235
197400
B2
1610938
4.240
28
118720
Total B
5.080
263
62
TOTAL A + B
5.782
282
57
Check out the "Total A" result for KF "POND", the new calculation is the sum of KF "POND" divided by the sum of KF "QTD" (13338 / 702 = 19)
The same to "Total B" result for KF "POND", the calculation is the sum of "POND" divided by sum of KF "QTD" ( (197400 + 118720) / (840 + 4240) = 62).
I've been using all recourses into Bex query, but I've haven't found any way to deliver this requirement, though.
I'd really appreciate if anyone could give me some suggestion to deliver this requirement.
Thank you.
César Sevilha.Hi Suman!
Thanks for your replay.
The collision options wont help me because I have calculation on the same structure.
I need to keep the division POND by QTD in the result. Check out the table below.
The Formula Bex Query (POND / QTD) is a simple division between KF POND by KF QTD, the result
is a totalization of lines A and B.
The requirement is to keep this division on the result. Check out the column Requirement, this is the result expected.
Line
OP
QTD
POND
Formula
Bex Query (POND / QTD)
Requirement
A1
1614073
702 KG
13.338 KG
19 KG
19 KG
Total A
Result
702 KG
13.338 KG
19 KG
19 KG
result (POND) divided by result (QTD)
B1
1587949
848 KG
197.400 KG
233 KG
233 KG
B2
1610938
4.318 KG
118.720 KG
27 KG
27 KG
Total B
Result
5.167 KG
316.120 KG
260 KG
61 KG
result (POND) divided by result (QTD)
Total A + B
Result
5.869 KG
329.458 KG
279 KG
56 KG
result (POND) divided by result (QTD)
I'd like to know how to keep the division in the result.
Example:
The result of Total B should be 61 kg which is the result of division between the result of KF POND (316.120) by the result of QTD (5167).The currently formula has as result the totalization of B1 and B2.
Thank you in advance.
César Sevilha. -
Crystal report 2011 percentage calculation(Urgent)
All,
I am working on a report which looks like the below.
product>>>>>>> revenue>>>>>>>>> growth percentage
a >>>>>>>>>>> 12 >>>>>> >>>> 48%
b >>>>>>> >>>>>>>13 >>>>>>>> 52%
c >>>>>>>>>>>>> 14 >>>>>>>>>
d>>>>>>>>>>>>>> 16>>>>>>>>>>>>
total >>>>>>> 25 >>>>> 100%
my requirement is to calculate the individual growth percentage of a and b with the total revenue of a and b only.
to be more specific 12 divided by 25 and then 13 divided by 25.
i want these growth percentages in growth percentage column in my report.
I achieved the selective summation of revenue for a and b in the report footer but i am not able to use the total revenue 25 (that i get in the report footer) in the body of the report(detail section) for growth percentage calculation.
I tried using shared variables and global variables but of no use.i am not able to assign the grand total in the footer to a variable in the detail section in order to calculate the growth percentage.
Is there any easy work around to achieve this? need urgent help.
I also tried running totals and stuff but of no use.
Any help would be appreciated.
Reji.
Edited by: reji2011 on Jan 22, 2012 7:32 PMHi Reji,
I'm not sure how you've added 'a' and 'b', however, whatever way it would be, I'm sure it would be a print time formula.
Meaning it is calculated a later stage after all the records are printed. So, you would never be able to use a value in the Report Footer or any Footer to calculate against a detail section value and show the calculation on the detail section itself.
The way I see it, you would need to insert this report as a sub-report, just to calculate a + b, store this value in 'shared variable' and use it for calculations in the Main Report.
So, in the sub-report, where you have your formula that calculates the addition of a and b, just create a shared variable and assign this value to it.
Place the sub-report on the Report Header and in the Main report create a formula that calls the shared variable. You can then use this formula/variable in Main-report's calculations.
Hope this helps!
-Abhilash -
Percentage based on two result of the columns
Hi all,
My report loos like
Type posting order Number of records Date diff %
A 1 1 1
A 2 1 1
A 3 1 1
Result 3 3 100%
B 1 1 1
B 2 1 1
B 3 1 0
Result 3 2 66%
As u can see that i need to calculate the percentage based on the result of two columns.
Can u please throw some light ..
Watin for reply
Thanks
BabuHi Babu,
I think your example is not totally clear. From what I understand, you need to calculate a result in percentage based on the result of two other columns. What you can do is to use the first result (from the two columns) as a CKF. And then, to this CKF, use the result calcultation options of the query desinger for percentage.
Hope this helps.
Regards,
Diego -
Revision: 10877
Author: [email protected]
Date: 2009-10-05 15:23:37 -0700 (Mon, 05 Oct 2009)
Log Message:
Fix a small syntax error in Path bounds calculations that could result in wrong bounds for edge cases involving MoveSegments.
Thanks go to Min for noticing the bug!
QE notes: None
Doc notes: None
Bugs: None
Reviewer: Deepa
Tests run: checkintests
Is noteworthy for integration: No
Modified Paths:
flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Path.asorangekay wrote:
That is absolutely unreadable.
I agree completely. How about also providing a link to a set of input files so that we could actually run the code ourselves? Otherwise, there is no chance to debug the source code, it is just a mess.
You might have better luck with an older version of the file. To quote the comments:
// Modified on March 31, 2005. Initialized maxchange in nonlinvoltra() as
// INFTY. Replaced crnmbr() by a similar, but faster routine interior().
// Many thanks to Stuart Anderson for pointing out this shortcut.
I suspect that the "interior" function is just plain incorrect. It doesn't matter if it runs on some other OS. Something about it is wrong and the code is so cryptic that it can't be deciphered. -
Production system editing of overhead percentage calculation
Hi,
We want to maintain the overhead percentage calculation in the live
production system through the T.code S_ALR_87008275.when we want to
change the percentage the following message appers "Client has status
not modifiable". Without changing the client status we want to change
the percentage in the live production server. Kindly guide us in this
regards....
Regards
SyamkrishnanHi
Refer to SAP notes 372620,374609,356483, 135028 and 77430
This will help you in achieving the same.
Good Luck
Hari
Maybe you are looking for
-
I sync my 2660 with Outlook 2007 using a blue tooth connection. I notice that some but not all calendar appointments on my 2660 start an hour earlier than they should (Outlook 2007 shows the correct start time). Has anybody else experienced this prob
-
I have OC4j server running on one box and the oracle database is on different server. We connect through JDBC. It looks like the application server does not close inactive sessions. Because of this temporary tablespace on database server gets filled
-
Having trouble accessing a bank website
The other day, I got a message saying that it could "not load information from this location". Now, the browser isn't giving me any message box at all - it just keeps trying to load without any success. My bank tells me their other members are having
-
I am creating a program to open a java file to the GUI I want to have a filechooser which will open the file to a text display of the GUI. How do i get to open the file and the display goes to the Text area (GUI).
-
How do I see the dates that the pictures were taken?*
How do I find the dates that each picture was taken? It would be like right clicking and seeing when the picture was taken or saved. I can't find this info anywhere.