How to avoid aggregation on a key figure
Hi SDN,
Is there a way to avoid aggregation on a key figure? We have a situation where we have multiple records for a particular order/item. So a key figure like Net Price simply adds up which is wrong. We just want to repeat it and not aggregate.
Any solution?
Thanks for the help.
SM
Hi,
Try this,
in InfoObject Aggregation Tab:
Aggregation :SUM
Exception Aggregation: No Aggregation (X, If more than one records Occurs).
else try with more than one value
Regards
Reddy A
Similar Messages
-
How to avoid negative values of key figure
Dear all,
I have to create one query based on ODS, in which i will use one key figure, which has negative as well as positive values. In report, i want to avoid all negative values or make them zero. Is it possible? Please guide me for the same.
I cann't make any modification to the ODS.
Regards,
Pravin.Hi,
To make negative values as possitive you can use the formula abs().
ie: abs(key figure)
You can also create a condition in the query to show only values greater than or euqal to 0. Make it active, then you will get all values greater than or equal to 0.
Now if your intention is to show the negative values as 0 then use the formula as stated above.
Regards
Govind. -
Exception aggregation for calculated key figure
Is it possible to have exception aggregation for calculated key figure in BW 3.5? As per Note 1151857, it is possible, however this note applies to BI 7.0.
As per note 152638, it is possible in older version only simple ckfs like 'CKF = Base key figure'.
Is there any workaround to define exception aggregation for complex CKFs in BW 3.5?
My requirement is like this -
CKF = (sales quantity - forecast) %share (sales quantity).
Aggregation for CKF over time should be sum whereas, for all other characteristics calculation of CKF should be done after aggregation(normal scenario).
So, defining exception aggregation of CKF as 'Summation' over time should fulfil my requirement.
I can not use calculate result as 'summation' setting for CKF because of following design of report.
Report contains structure(characteristic)
Elements of structure are -
Last 3 months(April - June)
Last 3 months - 1 (Mar - May)
Last 3 months - 2 (Feb - Apr)
and so on...
When data is aggregated for each element of structure, base KFs will be aggregated and calculations will be done on that.
Changes in the backend are also not possible because, normal aggregation of CKF-alike in backend will be summation for all characteristics.
Is there any way in BW 3.5 to model such a scenario?
Thanks and Regards,
Anup KulkarniSum of individual values of CKFs is not same as the Calculation on 'sum of basic key figures(result of basic key figures)'. - Yes, you are right.
I need to aggregate CKF over time as SUM. However, calculation for result of all other characteristics should be based on results of basic key figures and not the 'Sum of individual values of CKF'. -
What i understood is that whenever the time char is in row, then result should be simple on the sum what ur getting but when other char are there then it should go for calculation based on the sum of key figure.
If im not wrong in getting ur point.
How can two differenct activites be perofrmed on same key figure depending on the characteristic .....!. For this u have to think some other possibility or let somebody else update the thread. -
How to write conversion routine for key figure?
Our customer has this requirment:
we need to know the last time of some TV program in BEx report, If a TV program last 500 seconds, we need show the key figure like this: 00:08:20, If a TV program last 100000 seconds, we need show the key figure like 27:46:40 (27 hours and 46 minitues and 27 seconds), If we define a key figure as time, BW system will report a error that say it is not acceptable time. If we want to define a integer, but we need display it like hhmmss format. We know we can write conversion routine for char. but I don't how to write conversion routine for key figure. Please give me any hint if any other solutions?
Edited by: SY DONG on Dec 2, 2010 3:36 AMIf you want to do in Transformation Layer :
You can use routine ...break up the seconds into minute hour and seconds
you will have to handle few cases in this:
let say your variable lv_seconds holds the number of seconds you want to convert to hour min and seconds
DATA: lv_seconds type i,
lv_hrs type i,
lv_sec type i,
lv_min type i.
lv_hrs = lv_seconds / 3600
if lv_hrs >= 1.
lv_min = (lv_hrs - trunc(lv_hrs))*60
here again handle seconds if min >60.
else.
lv_hrs = '00'.
lv_min = lv_hrs*60
It is just hint ..how you can manipulate the seconds to get it...you will have to think about the complete algorithm
Regards,
RK -
How to create a non-cumulative key figure & How to make a info cube as so
Hi Experts,
How to create a non-cumulative key figure & How to make an info cube as non-cumulative cube?
Can any one kindly provide me the steps we need to performe?
Thanks in Advance,
RajHi Azael,
In the How to Papers, you will find a Guide on how to take a Sanpshot view of the Stocks(How To Handle Inventory Management Scenarios in BW). Basically if you implement the Guide, you will have another cube called ICSNAP1, which will contain stock quantities /values at the end of each month. You will therefore have to take stock at the end of the last month from that cube and add up the relevant receipts and issues to arrive at the current Stock or Stock as on a particular date.
Hope this helps!
Regards
Sriram -
How to create Variables for the Key Figures
Hi All,
How to create Variables for the Key Figures
Thanks
BhaskarHi,
It is not possible to create the variables on Key figures directly. But we can create a formula variable with processing type 'User Entry' ,SO that the user entered value can be used in the calculations of the query.
With rgds,
Anil Kumar Sharma .P -
Use of Aggregation tab of key figure
Hello Gurus ,
Please tell me use of Aggregation tab of key figure , and where it affects ?hi,
check the below links for aggregation and with examples..
http://help.sap.com/saphelp_nw04s/helpdata/en/47/607899dcce6834e10000000a421937/frameset.htm
To enable the calculation of key figures, the data from the InfoProvider has to be aggregated to the detail level of the query and formulas may also need to be calculated. The system has to aggregate using multiple characteristics. In regard to a selected characteristic, the system can aggregate with another rule for each key figure (exception aggregation).
During aggregation, the OLAP Engine in BI proceeds as follows:
1. First, standard aggregation is executed. Possible aggregation types include summation (SUM), minimum (MIN) and maximum (MAX). Minimum and maximum can, for example, be used for date key figures.
2. Aggregation using a selected characteristic occurs after standard aggregation (exception aggregation). The available exception aggregation types include average, counter, first value, last value, minimum, maximum, no aggregation, standard deviation, summation, and variance. Application cases for exception aggregation include warehouse stock, for example, that cannot be totaled over time, or counters that count the number of characteristic values for a certain characteristic
assign points if helpful
regards
vadlamudi -
Aggregation in Calculated key figures
hi Experts,
Can anyone explain me how aggregation(normal and exception) works in calculated key figures.Plz cite some eg if possible.Hi,
You need Service Market ID.Ask your PL/Basis guy to get it.
https://websmp206.sap-ag.de/notes
With rgds,
Anil Kumar Sharma .P -
How to use a non cumulative key figure in a multi planning area
Hi
I'm new to bps, my problem is
I need to read the last stock quantity and value at plant and material level to do further calculations in a fox formula, so i made a planning area for the cube 0rt_c36 and another for my tc cube where the results should go, then i combine these areas in a multiplanning area.
problems arise when selecting the key figure in the ratios tab of the multi area, the ratios 0CPTOTSTOBU (last stock) and 0CPTOTSTOPV (last stock purchase value) are not available, only the inflow and outflow ratios are 0CPTOTREBU and 0CPTOTREPV.
I know when reporting, the actual value for stock is calculated by bex, namely, there is no data store at database level, so the question is:
How to obtain last stock for using in bps??
thank you for any help
regards
A. GarduñHi Azael,
In the How to Papers, you will find a Guide on how to take a Sanpshot view of the Stocks(How To Handle Inventory Management Scenarios in BW). Basically if you implement the Guide, you will have another cube called ICSNAP1, which will contain stock quantities /values at the end of each month. You will therefore have to take stock at the end of the last month from that cube and add up the relevant receipts and issues to arrive at the current Stock or Stock as on a particular date.
Hope this helps!
Regards
Sriram -
How to calculate the value of key figure by considering other char or kf
Hi
My requirement is like this:
I have a key figure which gives me the planned issues and receipts but i know that if only from locaton is blank and to loc is filled then that are receipts and if both the from and to location values are filled then it is issues,
can you pls let me know how i 'll put this logic in th reporting bex and how i achieve this by user exit or any other way
thx
rubaneCreate two RKF, restrict first with [ from = '#' ] to get the planned receipts, and restrict the second with [ from <> '#' and to <> '#' ] to get the issues.
-
How to add Characteristic text to Key figures in Bex report?
The result set of a report is like this
Q1 Q2 Q3 Q4
Payment amount Payment 2000 4000 1200 1400
Recovery 1200 1400 100 200
Commission Payment 4000 5000 2000 2000
Recovery 2000 2000 100 100
Total Payment 1500 1200 5000 4000
Recovery 600 200 1000 200
The first Column Payment amount, Commission and Total are key figures.
Payment and recovery are text of a Characteristic Infoobject ( Flag type : X = Payment, # = Recovery ).
Now the requirement is not to have Characteristic Infobject as Column but to have them as text beside keyfigure.
LIike this
Q1 Q2 Q3 Q4
Payment amount (Payment) 2000 4000 1200 1400
Payment amount (Recovery) 1200 1400 100 200
Commission (Payment) 4000 5000 2000 2000
Commission (Recovery) 2000 2000 100 100
Total (Payment) 1500 1200 5000 4000
Total (Recovery) 600 200 1000 200
How to achieve this kind of result?Create Restricted Keyfigures to achieve this requirement.
create 2 RKF for Payment Amount Keyfigure
Create RKF1 with Payment Amount keyfigure and restrict flag type with "X" and then
Create RKF2 with Payment Amount keyfigure and restrict flag type with "#".
And use the RKF's in the query.
Similarly create two RKF's for each Keyfigure used in the query and restrict it with flag type.
--- Thanks... -
How to calculate percentage based on key figure maximum value
Hello everybody!
I need your expertise on a query 'issue' I'm facing. Let's say I have a query getting me the Number of Open Items per Week (starting from billing document's Issue Date).
My client wants to be able to see the percentage per week and not the actual number.
So, what I have is below:
<b>Wk</b><b>"OI Nr"</b>
1 "68.801"
2 "66.288"
3 "59.344"
4 "50.506"
5 "20.950"
And what I want is below (in italics):
<b>Wk</b><b><i>"OI %"</i></b>
1 "<i>100% </i>" (i.e. 68.801 / 68.801 * 100)
2 "<i> 96,34% </i>" (i.e. 66.288 / 68.801 * 100)
3 "<i> 86,25% </i>" (i.e. 59.344 / 68.801 * 100)
4 ......
5 ......
Is it possible to achieve sth like this by altering some key figure properties or in any other way?
Thanks in advance.First u need to create a calculated Key Fig globally. You can do this at the extreme left end of the query Designer. Just right click on the Calculated key Fig and say <b>New Calculated Key Figure</b>
Give the description of the Key Fig and in the formula section just put the the key fig . <b>'OI Nr'</b> in you case
When u say ok it will open the properties of the key fig there u can see <b>Enhance>></b> at the bottom. Click on that make the <b>exception aggregation</b> to <b>maximum</b> and <b>refernce characteristic</b> for the one which u are having the values 68.801, 66.288, 59.344, ..
Save this calculated key fig
now in the Columns create a <b>new selection</b> under the key fig.
drag the newly created calculated key fig in this <b>new selection</b> and say ok.
Now right click on this <b>new selection</b>, go to the <b>Calculated Single Value</b> as drop down and make it <b>Normalize-Sub Totals</b>
Tick the checkbox <b>Also Apply to result</b>
and select <b>Calculate Along Columns</b>.
Save the query and execute. This should solve youe issue
Hope this helps. -
How to add unit to calculated key figures in BEx
How to add unit to BEx calculated key figures in SAP BW BEx?
I would like to add a unit to a calculated key figure in SAP BW BEx, so that it gets visible on the end user level. Currently the unit field is empty. I calculated the value from various key figures with different units and removed the units with the NODIM()-function. Is there an inverse function to NODIM() with which you can add a specific unit (like EUR or TAG).
The "How tou2026 Report Data in Alternate Units of Measure" does not seem to cover the point.
"Quantity Conversion Guide for SAP Business Intelligence" refers to the "Conversion" tab.
I suppose you have to add a conversion routine, which is 1:1 and sets the target unit defined in BEx.
Has anyone tried this? Is there a more simple solution?
OLAP-Quantity Conversion:
http://help.sap.com/saphelp_nw70/helpdata/EN/27/b65c42b4e05542e10000000a1550b0/frameset.htmHi,
if your CKF will have always same unit and you have one KF in you inforpovider with this unit, you can try to do this trick
create a new hidden CKF as new CKF = KF / KF (with this equale new CKF = 1 unit)
change your old CKF as old CKF = old CKF * new CKF
let me know if it works. -
How to create a variable for key figure (value will be entered by the user
I want to create one query, where the user has to entered a max value when the query is started, so that only the query rows will be listed, where the key figure value (integer) of the row is smaller than the max value given.
How can i define that variable which has to start at the begin of the query; and also the restricted key figure iin consideration of the KF variable.
Thanks for helping
Ar.Hi Arnaud,
Go to Conditions-> Right click -> New Condition -> Edit -> NEw -> Selct the KEy figures from the dropdown( the KFs that are used in the rows/columns) -> Select Less than from the operator drop down (less than is for you case) -> Values, there is an option to create a variable -> Select the variable -> transfer. It will appear on the top.
Save & Execute, you will find it in your selction criteria.
Regards
Sunil -
How to redefine the width of key figure through ABAP CLASS
Hello experts:
I encounter a problem when using table interface.
I make a wad with two table(two query).The two queries have same characteristics, but different key figures in row.Now i want to adjust the format to make all the cell aligh. I have realize that when i keep the column header of the tables. But if i hide the second column header of table, it's failed. I don't know where i can adjust the width of the key figure cell without column header.
For example: query1: zmodel qty01
aaa 100
query2: zmodel qty02
bbb 200
how to make the width of qty01 the same as qty02
look forward to your answer.While populating the value in the cell use the following command.
c_cell_td_extend = 'style = "width:200px"'.
Maybe you are looking for
-
This is the second time I've encountered this issue with Time Capsule using Time Machine automatic backup. I haven't found the following specific error message in the list of troubleshooting issues: "Time Capsule cannot complete the backup. The backu
-
How to upload a PDF document to a website
Using my iPad and Safari Browser I'm trying to upload a PDF document to a website. When I click on the website's button to "Choose File" I only get the options to select "Camera Roll" or "Photo Stream" or a video. I have the PDF document saved in iBo
-
Collaboration using web server for many pdfs
I manage an online repository of pdfs for multiple clients. Clients can log in and search all their pdfs by keyword to find what they are looking for and view it in their web browser. They want me to take this service to the next level by allowing
-
Download Folder Can't Be Emptied
My wife no longer can get downloaded files out of her download folder. It appears to be too full. When you go to the folder the items are grayed out. At this point I would like to clean everything out of there so that it is usable again. Does anyone
-
No ringtone for incoming email
I have a ringtone set for incoming email but it doesn't activate when an email has come in. What am I doing wrong?