Percentage function
Hi experts,
Purchased Qty 100000002 10
100000004 23
Purchased % 100000002 10/33
100000004 23/33
For above mentioned scenario i am using %CT function in purchased %,
but report shows 'X' in Purchased % field
Thanks in advance
bhaskar.....
In some cases you are having a denominator zero that is why it is showing X. Like 100002/0 which actually invalid. There is a function to handle div by zero and you could use that.
thanks.
Wond
Similar Messages
-
How to use percentage functions in BEx with structures
Hi, I need a help.
I have a query with a structure in the rows: two characteristics at left then the structure.
Plant, Year/Month and a structure with 3 lines (Line A = movement type = 1, 2, 3, Line B types 4, 5, 6, Line C types 7, 8, 9).
In the rows just a quantity.
I'm trying to use percentage functions CT or GT in the rows, but it's not working.
The idea is something like:
Plant 01 07/2010 Line A 30 30%
Line B 20 20%
Line C 50 50%
Result 33%
08/2010 Line A 40 20%
Line B 60 30%
Line C 100 50%
Result 66%.
When I do not use the structure percentage function works well, but with the structure results are completely wrong.
Any help will be appreciated.
César MenezesYou either have to use exception aggregation to give you the total per plant and use that in your percentage calculation, or you could define a formula in the cells. Here you can reference the specific cells you want to use as inputs.
-
Percentage Function in a report
Hi,
I am new to BO and was trying to use percentage function. The function is working fine, but I have created a break on one dimension and hence the percentage is calculated according the break. I want to calculate the percentage for the entire data. I know I can remove the break and calculate it, but i do not want to remove the break. please let me know how do I do that.
Thanks,
MVHello,
You should be able to use the "in" operator, such as "in block" in your total formula to get this.
Thanks -
Percentile & percentage function in SQL or PL/SQL ?
Hi all,
I was wondering if there is any
Percentile or percentage functions in SQL or PL/SQL to calculate ??
I came across percentile_rank , but i didnt find really good example online .... so i wasnt sure if thats right function for calculating percentile Any example will be great !!
THank you so much !!!Thank you so much frank and tubby !! It just amazing to see so many powerful aggregate and anlytic functions are available in 11g.
Here is the example data i was working on
with x as (
select '100' value_amt, '6' cnt from dual union all
select '200' value_amt, '5' cnt from dual union all
select '500' value_amt, '10' cnt from dual union all
select '700' value_amt, '12' cnt from dual union all
select '900' value_amt, '14' cnt from dual )
select * from x;
I m trying to calucalte the column called "avg_value" by dividing " value_amt / cnt ". I was just wondering if i need to use any function to calculate
Here is the column "avg_value" look like
with y as (
select '100' value_amt, '6' cnt, '16' avg_value from dual union all
select '200' value_amt, '5' cnt, '40' avg_value from dual union all
select '500' value_amt, '10' cnt, '50' avg_value from dual union all
select '700' value_amt, '12' cnt, '58.33'avg_value from dual union all
select '900' value_amt, '14' cnt, '64.28' avg_value from dual )
select * from y;Thank you so much!! I really appriciate it !! -
Error in Percentage function - %GT
Hi,
Im using Percentage function %GT like:
%GT 'Key Figure'
But when i execute my query i am getting below error:
Exception in BI runtime
The formula operation %GT is not allowed here (formula 488YAHA2EN2SD4JL3TM9LQDJI)
Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
Query ZSD04_GRP_CONTRI could not be opened.
Log ID: 00144F2D7956005500000F09000006720004428E85AE70BD
Initial cause
Message:
Termination message sent ABEND BRAIN (429): The formula operation %GT is not allowed here (formula 488YAHA2EN2SD4JL3TM9LQDJI) MSGV1: %GT MSGV2: 488YAHA2EN2SD4JL3TM9LQDJI MSGV3: 482PMQCW7PKQWGESLYU7IA3V2
Im not getting whats the cause.
Help me in this regard.
Thanks !You are trying to use Formula function %GT in CKF. First of all CKF is a global formula which will be used in all the queries where same infoprovider is used. So while creating CKF these formula functions like SUMCT, SUMGT, SUMRT, %GT, %RT and %CT are not available for CKF.
If you want to use these formula fucntions %GT ....then create local formula instead of creating CKF.
In short, Formula functions like SUMCT, SUMGT, SUMRT, %GT, %RT and %CT are created only locally.
Regards,
Mona
Edited by: Mona Kapur on Jan 5, 2008 4:54 AM -
%CT percentage function in Calculated Keyfigure missing
Hai,
I want to use the %CT percentage function in Calculated keyfigure.
But I can only find % and %A function under the PERCENTAGE FUNCTION. Am using BW 3.5. Why is it so?
Regards,
Neha SolankiHi neha,
This will be not available in CK's u have to use formula to get this.. Just try to create the Formula in the querry instead of CK...
Khaja -
Missing results when using percentage function %GT
Hi all,
I'm using the percentage function in BEx. As you can see in the left two columns, it works fine when the results are higher then 0,4. All the results less than 0,4 are set to 0. In the last column I calculated the results with an Excel formula.
Any Idea, what the problem can be?
4.392,080 1,5635 % 1,563481163
997,440 0,0000 % 0,355066085
4.761,680 1,6951 % 1,695050405
1.260,000 0,4485 % 0,448531508
469,600 0,0000 % 0,167166981
280.916,720 100,0000 %
280.916,720 100,0000 %
Many thanks in advance!Dear Daya sagar,
Iam tried with taht functionality the query it self it is showing wrong and iam getting below error as result.
Diagnosis
The query contains a formula with the operator %RT. Therefore, the query cannot be released for OLE DB for OLAP.
The operators %GT, %RT, %CT, SUMGT, SUMRT, SUMCT and LEAF depend on the display of the list in the BEx Analyzer. If you used OLE DB for OLAP or MDX, this formula would deliver unexpected values.
Procedure
Do not release the query for OLE DB for OLAP, or do not use the operators %GT, %RT, %CT, SUMGT, SUMRT, SUMCT or LEAF. You may be able to achieve the desired result by selecting constants.
and report output is not coming.
Thanks & Regards,
Sathish -
Break and Row syntax in Percentage function
Hi All,
I want to know how Break and Row syntax work in Percentage function. As shown in the attached image, I'm able to get results ONLY using Percentage function, and hence NO NEED to add the syntax Break or Row to the formula. Can someone please explain how Break and Row syntax work in Percentage function?
Basically, in the attached image =Percentage ([Actual Sales $]) can be used instead of =Percentage ([Actual Sales $]);Break) function. Likewise, =Percentage ([Actual Sales $]) can be used instead of =Percentage ([Actual Sales $]);Row) in the cross table. So why there's a syntax for Break and Row in the Percentage function?
Thanks,
Suranjith FernandoHi Suranjith ,
Each operator posses different behavior when we work with Cross tabs / sections / Breaks .
For ex:
In a cross tab : Find result
% =Percentage([G4];Col) ,Number format Percentage .
% =Percentage([G4]) -
Percentage function in Calculator
Why is there still not a % button in the Calculator?
Blimus! Even winbloze can manage percentages
Ian
Message was edited by: ianmoff
Message was edited by: ianmoff'Some of us actually now how to calculate a percent without a percent button.'
I can never remember that though
But you could also argue that some of us know how to add or work out square roots.
The point remains the same. Even the most basic child's calculator has a % button. Apple calculators should too.
This is a thing that's bugged me since I got my first Mac - a Mac Portable running System 6.0! -
Regarding Percentage Functions in formula
hai
can anyone explain about the "Percentage Share of the Result(%CT)" and "Percentage Share of the Overall result(%GT)with example please....
I got this example from the sap help for %CT . But here im unable to get how the '%CT Sales' are came??
Year Region Sales %CT Sales
1999 North 30 50
South 30 50
Result for 1999 60 33.3333
2000 North 60 50
South 60 50
Result for 2000 120 66.6667
Overall Result 180 100
I got this example from the sap help for %GT . But here im unable to get how the '%GT Sales' are came??
Year Region Sales %GT Sales
1999 North 30 16.6667
South 30 16.6667
Result for 1999 60 33.3333
2000 North 60 33.3333
South 60 33.3333
Result for 2000 120 66.6667
Overall Result 180 100
So please tell me , how the '%CT Sales' and '%GT Sales' values are come ??????? urgentlyy.
bye
abdulhi Abdul,
as the name %ct - percentage share of the <b>result</b> and %gt - percentage of <b>overall result</b>
from your sample
%ct sales for year 1999 region north = 50%, came from 'sales' / 'result' for year 1999 = 30 / 60 = 0.5 = 50%
%gt sales for year 1999 region north = 16.6667, came from 'sales' / 'overall result' (both year 1999 and 2000) = 30 / 180 = 16.6667
result -> sub total
overall result -> grand total
hope this helps. -
Percentage Function in BEx Formula
Hi matez,
I have defined a Formula as below :-
Operating EBITDA Margin = 'Operating EBITDA' / 'Operating Revenues'
How can I display this value as a <b>Percentage </b>???Hello John...
Normally when u create a FORMULA it shows a Formula symbol but if u want the Description to show or Dispay
%EBITDA its just u have to type % in the Description....
Cheers
Preethu -
How does the Percentage Share of the Result (%CT) and Percentage Share of the Overall Result (%GT) work?Help.sap.com is not clear...
Look at this:
http://help.sap.com/saphelp_nw04/helpdata/en/e2/16f13a2f160f28e10000000a114084/content.htm
Hope it helps.
Regards -
Use percentage function in pl sql
Hi,
I want to get the employees that their salary are in top 13% of salaries.
I learned in this forum that I can get the 10% of top salaries in HR schema by this query:
WITH got_tenth AS
SELECT last_name, salary
, NTILE (10) OVER (ORDER BY salary) AS tenth
FROM hr.employees
SELECT last_name, salary
FROM got_tenth
WHERE tenth = 10
ORDER BY salary DESC
;Output:
LAST_NAME SALARY
King 24000
Kochhar 17000
De Haan 17000
Russell 14000
Partners 13500
Hartstein 13000
Greenberg 12000
Errazuriz 12000
Higgins 12000
Ozer 11500There is no "TOP" keyword in Oracle.I wondered, What if I want to get, for example, the employees who are in the top 12% of the salaries? here we cannot use deciles (maybe we can but it won't be very nice).
Thanks a lot to helpersCUME_DIST can help:
http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions035.htm
WITH tbl AS
SELECT last_name, salary
, cume_dist() OVER (ORDER BY salary DESC) AS cumulative_pcnt
FROM hr.employees
SELECT *
FROM tbl
WHERE cumulative_pcnt <=0.12;Tie values always evaluate to the same cumulative distribution value, so if you need exact 12% of the rows you can add employee_id in the ORDER BY list.
Edited by: 1006646 on 19.05.2013 10:14 -
Percentage function in Bex?
Expert's,
There is % caluculation.But I am getting X for that calculation.Where as for other column I am getting correct value. what could be reason.
I have created formula."Please explain what is this formula collisions? "
Hi Vasu,
As Stefan and Oliver suggeted, have you checked the Formula Collision property of that KY. When you right click, and select properties, you'll see Formula Collision property. If you are using 7.0, for the KF, there is a tab for Extended ( on right side), there you'll see formula collision property. Formula Collision can happen, if you are one formula in teh calculation of another formula.
http://help.sap.com/saphelp_nw04s/helpdata/en/5b/30d43b0527a17be10000000a114084/frameset.htm
Hope this helps. -
Need to display a percentage sign '%' in the query field
hi all
I know that this might be very simple..
but it has bugged me for a while now..
i need to display ''%" in a particular field alongwith the number in the query for
1. when field is having a percentage calc of two KF.
2. when field is a mixed containing amount type KF & i need to display it only for certain records not all .
Please help me.
best regards,
ramesh1 - if you are using a percentage function in a CKF/Formula, it should by default come with a % sign in your report.
2 - You can't mix and match (have '%' only for some rows) unless you want to use some vb macro or table interface class to do it.
For any number that is a percentage but doesn't appear with %, you can always create another CKF ( = 100 % ckf_minus_perc ), or a variant of it and that should get you the same value with a % sign.
Maybe you are looking for
-
Is there a way to set up automatic form fill-in on iPad 2
Can anyone help me with my question? Thank you.
-
Problem with Exchange rate in PO
Hello all, We have created a new exchange rate in SAP System. When we are creating a PO, the system is calculating the price by considering the new customized exchange rate which is correct. But while doing the goods receipt, the system is taking the
-
For privacy I want to be able to control where and when my messages appear on my other Apple devices?
-
Purchase net price condition - Upper, lower limit!
Hi SAPients, Please help me on this one. While creating a PO, I want the system to throw an error when the net price entered in the PO is 10% more or 20% less than the price I have maintained in the Purchasing info record. Is there a way of configuri
-
I need to update my ipad2 to ios5 and it has never been updated since original purchase in 2012. There is no button available for updates when i select general.