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?
Thanks
Hi,
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
Similar Messages
-
Moving avg calculation in query designer
Hi,
I know we can do a mov avg in the query designer as " single value " of all the data that is in query.
How can I get a mov avg for a specific period, say 50 day, 10 weeks or 12 months.
Can you all help.
Thanks.hi Venkat,
Can you eloborate your query with an example ??
Regards
Raj -
Percentage Calculation in Query
Hi Gurus,
Hope you are all doing good! I have an issue in my query. I have calculated the summation of Profit for 05 and 06 . In the properties these are the specification i have given :
1.Scaling Factor : 1,000,000
2.Number of Decimal Place : 0.0
3.Calculate Result As : Summation
I get the summation for both 05 and 06 correctly. I computed the percentage for
both and seems to be fine.
Formula used for computing percentage : ' / Profit 06' / ' / Profit 05' * 100
My issue being the Over all percentage seems to be high.
Any idea Gurus?
Points would be surely assigned.
Regards,
Sunitha.RHi Norris Silva,
As per your scenario total questions = 11
persons (c1, c2, c3, c4, c5) = 5
c1 answered questions = 5
c2 " " = 5
c3 " " = 1
here to calculate the percentage of answered questions
for each person. This can be calculated as below with use of
calculated key figure
c1's % ---> ci1 answered questions/total questions * 100
5/(551)*100= 45.45%
like write formula in calculated key figure for each person.
Hope it helps you...
Regards,
Ramki. -
About Local Calculations in query designer
Hello Gurus,
please illustrate how to use following setting by example:
1. Calculate Result As.
2. Calculate Single Values As..
3. Also Apply to Results.
4. Cumulative
5. Calculation Direction
Many thanks,
FrankHi Frank,
Check the following links for examples on each of these
1. [Calculate results as|http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm]
Say if you want to see the minimum revenue collecte in a company code.
Set calculate results as to minimum. Then the report output would be as shown below
CoCode...............Plant..................Month........Revenue
A........................A.........................01.............200
A........................A.........................02.............100
A........................A.........................03.............300
Result.............................................................100
If Calculate result as 'min' was not set. the result would have been 100 + 200 + 300 = 600
2. [Calculate single values as|http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm]
3. [Also apply to results|http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm]
The way the single values are calculated is also applied to results. ie if the single values are calculated as a maximum value, the same is applied to the results, instead of the conventional aggregation(sum).
If you are displaying single values as rank and also apply it to results you will see the results also are denoted by ranks.
As soon as I am embedding data(table) the post looses its format. Can you please share your contact details. I can send an exmaple if required.
4. [Cumulation and calculation direction|http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm]
Using cumulation the values would be as displayed below. The calculate result as is empty
CoCode...............Plant..................Month...........Revenue
A........................A.........................01..................200
A........................A.........................02..................300....not 200
Result..................................................................300
B........................A.........................01..................200
B........................A.........................02..................550...not 350
Result..................................................................550
Hope this helps,
Best regards,
Sunmit. -
How to display 0 Percentage in BEx Query Designer
The BEx queries which I'm doing are ported to EP & client views all charts & data in portal only.
I have a small requirement. My client requires to display 0% in the data output.
Sample data is like
Mon/Grade A | B | C | D | E | F " These are headings
April | | | 3 | 5 | 4 | | " These are data I got in BEx
Required O/p
Mon/Grade A | B | C | D | E | F " These are headings
April | 0 | 0 | 3 | 5 | 4 | 0 | " These are data I got in BEx
My current formula is like
> NODIV0( ( TEST1 * 12) %A TEST2 )
What changes must I make so that 0% is displayed in the O/p? Please let me know earliest.
P.S . The values TEST1 and TEST2 are 'Selections', which holds no data for those displaying values.Hi Kavitha,
The problem is I'm viewing the data in Web based BEX & not in BEX Analyser. So only.
> GROUP E GROUP D2 GROUP D1 GROUP C2
>APR 6.0 46.0
>MAY % 14.3 48.0 11.4 16.9
>JUN % 11.6 16.2
As you can see there's no data for the months-grade (Apr-GroupD1 etc).. Now, how to view it in portal with 0s for all the ones with no data? -
Formula Evaluation in Query Designer
Hi
In query designer I have Complex formula which is having lot of variables.
My users are saying some values are incorrect in report output
Can any one help how can we find the value is calculated in report output for this formula.
Thanks
Sudhakar.Hi Sudhakar,
One more way which you can try to find out how the particular Key Figure is been calculated in query designer is as given below:
1) Go to RSRT
2) execute your query with option for Query Display As "List"
3) You will get the query output
4) In this screen, you will get the button "Key Figure Definition" on the top
5) Click on this button and there will be a pop up screen to select "Structure Element 1" and "Structure Element 2"
6) Here for "Structure Element 1" please select the KeyFigure name for which you want to see the calcuation
7) and click on the "Continue" (Here its blue colored icon)
8) After this you will get a screen showing KF value that is calculated by query
9) Drill down the key figure to see "Fixed Fliter" which will show the data selection used to calculate this value. These are nothing but the global filters defined in query
10) Drill down the KF to see the dynamic filter values i.e. selections with which this KF is restricted in query designer
With above analysis you can easily trace out how the particular KF is calculated in query designer.
Regards,
Geetanjali -
Calculated quantity evolution in Query Designer
Hello,
I have a few short questions regarding ways of calculating a quantity evolution key figure in Query Designer:
I have a sales figure, let's say an order quantity. I'd like to have it's evolution calculated and displayed (based on another variable with a time period selection) next to it.
- Is there any other way of entering the following formula for the calculation then: (figure A - figure A(N-1)) / figure A (N-1) * 100 ?
- I would like to have a positive sign when this calculated evolution is positive as well as the percentage symbol next to it (eg: +15%). Is there a way to do this?
- Is there a way to automatically fill the time period selection for the variable (using for example a current week - 1)?
Thanks for your proposals.
Best regards,
OlivierHi there:
I think i understand what you are asking for. I just did a similar calculation myself after lot of research. Hope i can save you that trouble.
We calculated Change from prior week key figure this way.
In our Open Sales Order Position Report we have Open Order as of a particular day. But users want to know how their open order position changed from last week as of sunday of last week.
We came up with a solution to create an open order position snapshot InfoCube and store the Open Order value in that cube as of every sunday. The data will be delieted every sunday and reloaded via APD from the current open order position InfoCube.
We run a query on the open order InfoCube to get the total open order position based on different characteristics of interest.
Then load it to a DSO with direct update using APD.
Then we load it from this DSO into the prior week infocube.
Then we have a MultiProvider which puts the current open order InfoCube and the Prior Week Open Order InfoCube.
We created a query on this MultiProvider which gives both the current open order position and last week's open order position and we make a cacluation to subtract the two to give us the change from prior week.
If we need a percentage we can calculate from this difference using percentage function.
When we load to prior week open order InfoCube, we use System Date function available in the transformation by formula to calculate the 0CALWEEK to store the week of the prior week data.
In the query i have a key figure for current open position and another key figure for prior week open position each restricted by InfoProvider.
If you are not deleting the prior week data every week, you can add a restriction in the prior week open position as (0CALWEEK -1) so it will always get only last weeks data.
Hope this makes sense.
Good Luck.
MP. -
BW query designer - create formula using percentage variable
Hello BW Experts!
I am using Business explorer query designer 7.x (based on 7.2) and I want need to create a formula based on 1 KF and a variable that the user would be able to enter when running the query. The variable I want to pass is a percentage that will change each time they run the report and then I will multiply that percentage by the desired KF. Any ideas?
Thanks in advance,
Jimhi Jim,
you can achieve this using formula variable. This variable is going to be user entry variable and you can use that variable for further calculation, in your case for formula.
thanks.
Wond -
Difference between aggregation and calculation tab in BEx Query Designer
HI,
I am using BEx Query Designer for my report, for the key figures in the coloumn area i slected one numeric key figures, in the properties tab i found aggregation tab and calculation tab.
I need to sum up the total values for that particualar coloumn, when i used calculation tab i found to sum all the values for a particular coloumn, then what is the use the aggreagation tab?
I not able to used that Aggregation tab it is showing as a hidden fields...
can any one tell me whats the exact difference between these tabs and when we need to use which tab?
With Regards,
Thanesh Kumar.Hi Thanesh Kumar,
I moved this thread from forum Data Warehousing to Business Explorer since it is a query related question (as SDN moderator).
I could explain to you the difference between these two tabs.
For "calculation" tab, it changes the display of result and does not change the calculation logic.
It means that, if this key figure is used further in formula, still the original number (without "calculation" tab setting) is used for further formula calculation.
For "aggregation" tab, it changes the real calculation logic.
The system takes the setting as the aggregation rule for records.
The most common aggregation rule is of course summation. If you set to e.g. Average here, the system does the
Average instead of summation when aggregating records. And the Average value will be taken for calculation
in further formulas or other calculations.
For "aggregation" tab, you could only use it for CKF (calculated key figure) or formula and you could not use it for
a basic key figure. That should be the reason why you see it greyed-out.
Regards,
Patricia -
Issue with calculating Top 20 % in Query Designer
Hai
I am working on Query designer 7.0 where I need to design a report which has 4 parts. The first 3 parts displays the Items with Top 20 Inventory Value with 3 respective divisions for 6 months . Now the 4th part is to display Top 20% of inventory Value.
So in this report I need to take the Total Inventory and calculate the Top20 % of the items. Hence in this report I need to refer to the top 20 value of 3 divisions. So I cant jus give one condition. So I tried the replacement path for Items with restriction to other queries and created the variables. But I cant use these varaibles in the structures of rows or columns. It gives an error that this variable cant be used in Structure.
Please do help me in refering the top 20 values of 3 divisions for 6 months and do a calculation to display the % in my 4th report.
I will assign points for any kind of help providedIf you can design all those in One query than you can have it...
It seems now your aim is just to take result for 3 queries and use it in 4th query...
But if you can figure out defining all 3 Divisions and restriction in Same Query and then put the DISPLAY OPTION = HIDE = do not display
and then use their result to display you will achieve what you want to....
for e.g.
Jan 07-----Feb 07 -
Mar 07 -
Dec 07
Division 1-- Item 1 -
Inv 1 -
Inv1.........................DO NOT DISPLAY
Item2 -
Inv2 -
Inv2..........................DO NOT DISPLAY
Item3 -
Inv3 -
Inv3..........................DO NOT DISPLAY
<i><b>----
Item20 -
Inv20 -
Inv20</b></i>........................DISPLAY ONLY
Division 2-- Item 1 -
Inv 1 -
Inv1......................DO NOT DISPLAY
Item2 -
Inv2 -
Inv2........................DO NOT DISPLAY
Item3 -
Inv3 -
Inv3........................DO NOT DISPLAY
<b><i>----
Item20 -
Inv20 -
Inv20</i></b>....................DISPLAY ONLY
Division 3-- Item 1 -
Inv 1 -
Inv1</b>.......................DO NOT DISPLAY
Item2 -
Inv2 -
Inv2.......................DO NOT DISPLAY
Item3 -
Inv3 -
Inv3.......................DO NOT DISPLAY
<i><b>----
Item20 -
Inv20 -
Inv20</b></i>.........DISPLAY ONLY
THEN you will have result
Division -
Jan07 -
Feb 07 -
Marc 07
div1 -
Total inv/sum(top20) -
Total inv/sum(top20) -
Total inv/sum(top20)
div2 -
Total inv/sum(top20) -
Total inv/sum(top20) -
Total inv/sum(top20)
div3 -
Total inv/sum(top20) -
Total inv/sum(top20) -
Total inv/sum(top20) -
Question about calculation example with Query Designer
Hi guys,
I have to calculate within columns and rows and I am not familiar with the settings in Query Designer that could be done to achieve the results.
For example:
Payments----
Delay -
Weighted Delay
1000USD--10 days--
10000
2000USD--20 days--
40000
3000USD--xxx--
50000 (this is the sum row)
The column marked with the xxx is calculated with the sum of weighted delay divided by the sum of payments (50000 / 3000).
Has anybody an idea how the sum row can be calculated separately?
Thank you for suggestions!
Edited by: saplaz on Jul 13, 2010 8:47 AM
Edited by: saplaz on Jul 13, 2010 9:08 AMHi,
Assuming you have the Payments Infoobject in the rows and WD Infoobject in the columns; Delay as a formula object.
> Payments----
Delay -
Weighted Delay
> 1000USD--10 days--
10000
> 2000USD--20 days--
40000
> 3000USD--xxx--
50000 (this is the sum row)
> The column marked with the xxx is calculated with the sum of weighted delay divided by the sum of payments (50000 / 3000).
You may try this workaround of using
NODIM( SUMCT(WEIGH_DELAY) / SUMCT(PAYMENTS) )
on a formula variable. (In this case, the assumption is you have not static type-restricted the rows/cols) If you find any hinderances in the default approach, you may check this out as a formula & insert this at the cell editor level.
If not, use a simple formula variable; here define the replacement path as 0(N) for your Payments. (N being the # of digits)
Use a simple calculation:
SUMGT(WD)/FV
But you may not get an result o/p in the last row, as the values are not linked (sans relation with Payments). as it will return a X for the delay in the Result row.
Pls. let me know know if this works or some sample o/p if the initial assumption was wrong.
Thanks,
Arun Bala -
Sap query designer (calculation of profit N-1 from an input year N entered by a user)
hi,
on the query designer i have a variable where the user fills in the year N, and In the query i need to calculate a profit of a year N-1 according to a year N entered by the user.
here is my code abap in exit function where CA_N_1 is my variable BEX customer exit, and YEARN_1 is the variable bex that takes the year entered by a user :
DATA: LS_T_VAR_RANGE like rrrangeexit,
LV_CALYEAR type T009B-BDATJ,
LV_FISCYEAR type T009B-BDATJ.
WHEN 'CA_N_1'.
IF i_step = 2.
READ TABLE i_t_var_range INTO LS_T_VAR_RANGE
WITH KEY vnam = 'YEARN_1'.
LV_CALYEAR = LS_T_VAR_RANGE-low.
LV_CALYEAR = LV_CALYEAR - 1.
l_s_range-low = LV_CALYEAR .
l_s_range-opt = 'EQ'.
l_s_range-sign = 'I'.
APPEND l_s_range TO e_t_range.
ENDIF.
a copy of how i defined my variables and my ratio profit_N-1 is attached, when I compile the code with in input 2013 for example I can see that my variable Yearn-1 takes 2012 at the end, but in the query my ratio ^ profit_N-1 doesn't bring anything.
Please help me i can't find where is the problem...
Thank you for your help.Hello !
Thks for your quick reply,
I'm from France sorry for my bed english but i hope u're understanding me, I'm new consultant in BW and like u know woman are not very comfartable with IT so i'm going to ask u 2 others questions about hierarchy and saving query in roles if u don't mind
1) I want to change some hierarchy node position in production system, do i change directly in rsh1 by adding a node to another level ? or i must to change in a file source or ECC system ? if i change just on rsh1, i will lost all i have changed when Info package will be executed (in daily process chain)...? that's right?
2) I have a query already published in rôle, but i have to move it to another one, how can i do that in query designer please?
PS : i can't send you direct message, is it possible to follow me ?
Thks in advance have a nice day ! -
Calculated Key Figures in Query Designer - translation
Hello Experts,
I created a few Caclulated Key Figure in the Query Designer. They have a GUID and a text description.
I would like to know:
1) How these CKF are represented in ABAP on the system and where I can find them - some database table ?
2) If I want the description to be available in many languages how can I handle this ?
Thanks a lot
RadoCheck this
Tables analysed by analyze_rsz_tables
Khaja -
% Calculactions in Bex Query Designer
Hi Experts,
Could you please on how can i perform the below % Calculactions in Bex Query Designer.
Vendor No line item Not = L category =A status =RFQ :for items
Example : I have 8 items for vendorNo 200274 and only 4 as above condition and 5 items as not L(delete)
requament: % RFQ Without Response:
Percentage of Quotation response ={(No. of RFQReponses Received/ No. of RFQ items sent)*100},
( 4/5 * 100= 80%)
Percentage RFQ without response= 100 - Percentage of Quotation response
= 100-80 = 20%
How can i perform the % Calculations in Bex Query Designer.
Vendor
Purchasing document
Indicator: Line Item
Purch. doc. category
Purch. doc. status
Item
Number of Records
category A item L
200274
V-LINE EUROPE EXPORT MARKETING
6000003778
L
A
Not assigned
10
1
20
1
30
1
6000003779
Not assigned
A
Not assigned
40
1
9000000046
Not assigned
A
RFQ
10
1
1
20
1
1
30
1
1
40
1
1
Result
8
4
thank youHope you have done some groundwork you have done on this requirement. Have you tried to create New Formula and put the required formula in it to calculate Percentage of Quotation response ?
Your formulas seems to be straight forward.
Keep in Filter: item Not = L category =A status =RFQ
You may start working on it and get back with if you are struck. -
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
Maybe you are looking for
-
Hello! I am trying to print from my iphone 4 to my LEXMARK printer. When trying to select my printer in my phone it comes up and says that there are no printers available... I dont know what to do at this point. Can someone PLEASE HELP??? I also can
-
Program Error in new install w/FontAgent Pro
Just built a new Leopard 10.5.4 system on my new 2008 Mac Pro 8 core, got my CS3 apps installed & activated. Opened up my first file in Photoshop, fooled around a bit & closed it. Everything fine, but the file needed a font that was not installed. So
-
Hi Friends, I am new to the Business objects. I got one requirement on business object. My SAP version is ECC 5.0. Here is the situation: I am attaching customer and claim documents through OAOR transaction (Business Document Navigator) . Attaching f
-
Unable to install grub to usb hdd
Hello everybody. For 3 whole days I have been searching and trying to make this work but I am unable so, as my last resort, maybe someon here can give me a hand. I am trying to install arch to and old 30G ipod classic in order to use it as a portable
-
I have a mac osx 10.8.3 and the magnetic cable no longer attaches to the computer. Is it possible for the computer or cable to just lose its magnetic attraction and any suggestions on what to do(or do I need to buy a new cable). Thanks