Exception aggregation with two characteristics
hi:
I need get the average value of a KF, based on the unique combinations of two characteristics.
material and color are two characteristics.
The base data is
m1 c1 $
m1 c2 $
m1 c3 $
m2 c4 $
m2 c1 $
Now there is 5 unique combination of mtl and color. but when I average the $ it is averaging it with dividing the $ sum by 4 as there is only 4 unique colors (with except.aggr. for color char). How can I make it to consider all the unique combinations of mtl and color and get the average even with duplicate colors?
thanks.
What is going to be record count for unique combination?
If its going to be 1 then you can create a pre query which will give only unique combination (record count =1 using condition), further sum of those record counts will give you the total unique combinations.
Further it can be used for averaging purpose w/o using exception aggregation.
Hope it helps.
Abhijeet
Similar Messages
-
Document splitting with two characteristics Business area & Profit Center
Dear Experts,
is it possible to split the document with two characteristics .
Business area
Profit center
Can anyone suggest!!
Regards,
NaruHi,
Thanks for you immediate response...
i tried with this it is splitting only profit center and not splitting for business area, Please correct if i am wrong.
Amount
Business area
Profit center
Vendor A
4000
Expense
2000
A
A
Expense
2000
B
B
Should split like below
Vendor A
2000
A
A
Expense
2000
A
A
Vendor A
2000
B
B
Expense
2000
B
B -
RE: Report Writer Report with two characteristics
Hi,
I have created a Report with two characteristics - Profit Center and Internal Order(Order) as columns(some columns have Profit Centers and others have Orders). When I run the report, I get the values correctly for Profit Center columns, but the Order columns are empty.
Why do the Order columns not show any values?
Thanks.
S.VijayI have given the Record Type and Version in General Data Selection and both are 0.
-
Hierarchy with two characteristics
Hello All,
I have a hierarchy to create in SAP BW on GL account.
Total Revenue
---> Sales to Customers
> 400050 - 400060( GL Account interval)
for above type of nodes i don't have any problem. problem is with below type of nodes.
Total Manufacture Costs ( Only for costcenters 10001 to 10010)
> fixed costs
>100040 - 100050 ( GL Account interval)
Total Administrative Costs ( only for Costcenters (20001 to 20010)
> Fixed costs
>100040 - 100050 (GL Account interval).
in the report they want to see the entire hierarchy like above.
for the above requirement, i kept costcenter infoobject in GL account as external characteristics in hierarchies still
i am getting the total value for all costcenters in the node. can you please help me.
Thanks,
Snehawhen u say u can get only one group, does it mean you use filter on costcenter?
the way I see your report is, you have a GL characteristic and you restrict it by a hierarchy, now in there you want to have costcenter restrictions.
you can create structure elements on the same hierarchial elements and use restrictions by costcenter.
Gokul -
Exceptional Aggregation Option at Query Level in BW 3.5 Query Designer
Hi all,
I want to use Exceptional aggregation with reference char 0CALDAY,on Formula keyfigure in the Query designer(BW3.5).
But I am not getting that option when I went into Properties of that Keyfigure.So please Suggest me where I will Find that Exceptional Aggregation option & Ref.Char at the Query level.
Thanks,
Kiran ManyamHi
In the Key Figure Properties dialog box, choose Enhance >>. The Aggregation Behavior field is added to the dialog box.
You can make settings for the aggregation of the calculated key figure and the time that the calculated key figure is calculated here. Depending on the complexity of the formula, you can select various settings in the enhanced properties of the calculated key figure. The following types of calculated key figures with the corresponding formula complexity are available:
http://help.sap.com/saphelp_nw04/helpdata/en/6f/56853c08c7aa11e10000000a11405a/frameset.htm
Hope it helps -
FBL5 FIAR - exception aggregation - count customers with open items at key
Hello gurus,
I have read the information about counting all values in reference to a characteristic. I manage to count how many customers have a FIAR open item 'billing status' = Open in my FIAR cube.
Now I am asked to replicate transaction FBL5 of R3. This transaction will give you open items at a given key date by adding
the items with
A) Item status = 'O' and posting date <= key date
and the items with
B) Item status = 'C' and posting date < =key date and clearing date > key date.
I calculate the net value by creating 2 restricted key figures and then adding them in a CKF.
But for counting I have a problem. I can count how many customer make up the open items (case A)
and how many customers makeup items that where cleared between key date and today.(case B).
But I cannot sum the two numbers as there might be customers that are counted in both cases.
For example I have 4 customers that correspond to case A : 1000 1011, 1012 and 1014
And I have 3 customers that correspond to case B 1000 , 1011 and 1013
I would like to get 5 as the number of customers that verify either case A or case B (or both).
Is there a way to do this with the exception 'aggregation 'and 'count all values' property of CKF ?
ClaudioHi,
The logic given in the above post may be a bit confusing to you. Check out this explanation and try to understand what I mean.
Posting Date - PD
Key Date - KD
Clearing Date - CD
PD--KD--
CD
-O(Status)-C--O-----C
-5107-----8
Let me explain the above table.
Between PD & KD there are 5 count with status'O' and 10 counts with status 'C'.
Between KD & CD there are c counts with status 'O' & 8 counts with status 'C'.
This means 5 with status 'C' becomes 7 between KD & CD.
Similarly, 10 status with 'O' becomes 8.
The logic I am trying to say is..
If you don't want to get counts with status 'C'(repeated) as I understood) 7-5 = 2. Show this 2 as count for status 'C' between KD & CD.
So the table will become like this now.
PD--KD--
CD
-O(Status)-C--O-----C
-5102(7)---2(8).
In braces shown are the total with status 'O'/'C' for the dates.
I hope this will solve your problem.
Message was edited by: AVR - IGA -
Non Cumulative KF VS Normal KF with exception aggregation
What is the purpose that is served by "non-cumulative key figures" and is not served by "normal key figures with exception aggregation"?
Inflow and Outflow can also be mapped into a single key figure at update rules level.
Why un-necessary complications like two additional KFs and marker update etc?
Why can't we store actual inventory value on daily basis in a NORMAL key figure with exception aggregation on time?
Also, I heard that data amount will be huge if you don't use non-cumulative key figure. I am not able to understand why?
I HAVE ALREADY GONE THROUGH ALL THE HELP DOCUMENTATION AND ALL THE PREVIOUS THREADS. I DID NOT GET ANSWER TO THESE QUESTIONS.
THANKS IN ADVANCE,
AnupAnup,
Q1: Why can we not store the actual inventory against the person -
In this case you will end up storing day wise information of stock for the person / material - this will lead to increase of your data volumes depending on the scenario.
Example :
Day Level stock only
Record Structure :
Material | End of day snapshot Stock| date
pipe | 100|20.2.2008
pipe|100|21.02.2008
pipe|100|22.02.2008
pipe|80|23.02.2008
Here you can notice that the material pipe has been sold on 23.03.3008 and no sale has happened previously - however since your extractor will give you end of day stock for all materials you will get 2 additional records
In an opening and closing stock scenario
Opening stock
Marker|
pipe|100|20.02.2008
opening stock|closing stock
pipe|100|100
pipe|100|100
pipe|100|80
Here the values will get overwritten and compared with the marker and calculate that the stock is 80 or 100 depending on the date. I am not able to give a proper example but hope I have addressed it in part.
Also it is a Non *** KF because if you look at stock for pipe over 3 days you will get 300 in the first scenario - this is wrong
and for the next scenario with opening and closing stock
it will ideally be
100 ( your marker) -100100-100100-100+80 = 80
this calculation is done at runtime and gives the right output.
In the other case you can check stock only on a date basis and with the assumption that the stock data is current for that day.
Hope it addresses youor question.
Arun
Day 1: -
Query Problem With Exception Aggregation
Hello,
I have two I/O 0Customer and 0Cont_Acct and also I have a Infoset made out of both. Here is the problem i am trying to solve,
I want to figure out the customers who has more than five contract accounts associated with each customer number.
Here is the solution I approached....
1) Created a formula variable counter on the KF # of data records (which is provided in the Infoset automatically ) with exception aggregation total while referencing the contract acct I/O.
2) Kept my customer # and Contract acct on my rows area.
The results I am getting is less than satisfying. I am expecting this output below.
Customer # Cont Acct Total No of Cont.acct
A 1001 1
1002 1
1003 1
3
B 1007 1
I would appreciate anybody's help in this. Thanks a lot.
-AHi,
We have the same problem and raised an OSS ticket. They replied us with the note 1257455 which offers all ways of improving performance in such cases. I guess there s nothing else to do, but to precalculate this exception aggregated formula in data model via transformations or ABAP.
By the way, cache can not help you in this case since exc. agg. is calculated after cache retrieval.
Hope this helps,
Sunil -
Query issue with exception aggregation
Dear all,
I have to solve the following reporting issue with BEx:
Cube Structure:
Cube A:
Characteristics: Company Code, Article, Distribution Channel, Customer, FiscalYear/Period
Key-Figures: Sales Val., Sales Qty.
Cube B:
Characteristics: Company Code, Article, FiscalYear/Period
Key-Figures: COGS
I simply want to multiply: Sales Qty@COGS = NODIM(Sales Qty) * COGS,
but this calculation should be valid for all characteristics of my cube A, even if I do not have them available in Cube B (like Customer and Distribution Channel). Additionally the calculated totals of my characteristics must be correct so that I can apply in second step a Margin Calculation: Sales Val. - Sales Qty@COGS which is valid on single level, as well as on total level.
I started to setup calculated key-figures
COGS1 = NODIM(Sales Qty) * COGS with Exception aggregation TOTAL by Company Code
COGS2 = COGS1 with Exception Aggregation TOTAL by Article
and this worked fine for both characteristics. If I use COGS2 in my report I get correct figures in a drilldown by Company Code and Article.
I enhanced the calculation by
COGS3 = COGS2 with Exception Aggregation TOTAL by Distribution Channel, but the result in this case is 0. I guess the result is 0, as the characteristic Distribution Channel is not availble in Cube B.
Any ideas how to solve this? Is there probably a different (more elegant) approach, as I fear that having all the exception aggregations my query runtime/ressource consumption will be awful.
Thanks for any idea,
AndreasHi,
You should define a new selection for COGS having Constant Selection on DC as defined in following link for PRICE with CUSTOMER.
[http://help.sap.com/saphelp_nw70/helpdata/en/46/91f0f090ea13e8e10000000a155369/content.htm]
and then apply your formulas....
hope it will solve the problem...
Regards. -
Exception aggregation based on two characteristic
Hi Guys
i have enhanced the datasource i.e 2lis_12_vcitm for sales order qty
now i have to get the unique qty based on order no and item no to devide it to get a ratio
how can i do the exception aggregation to take one value based on two characteristics that is order no and item no
Regards
Amiyahi
Exception aggregation based on 1 characteristics i know very well but my requirement is different i have to get unique data based on two characteristics i.e
order item qty
100 10 5
100 20 3
100 10 5
100 10 5
100 20 3
200 10 15
200 10 15
now i want to get 5 for order 100 and item 10
and 3 fro 100 and 20
i think by exception aggregation its not possible is there another way? -
Forumla Variable with Exception Aggregation
Hello,
I've CKF in BEx, in this CKf there is replacement path Formula variable calculating number of documents.
Formula variable is replacing the value of Document number infoobject.
So definition of CKF is -> Replacement path Formula variable *1
Ckf is restricted to summation with Exception aggregation on Document number.
This implementation is working fine but issue is its taking lot of time in query ,like while checking RSRT olap :data transfer(Event ID) is taking lot of time,majority of the query execution time and counter is going somewhere around 100K.
Do you know is there a way we can implement this count in transformation?
Thanks in Advance!Hi,
Doing SUM in transformation takes a long time as you need to read all the content in target.
So it is better to fine tune the query.
1) Is query running long time for small selections ?
2) Trace the query in RSRT and check where it is taking long time like Data base level , Application level
Thanks
Jagan -
Problem with Exceptional Aggregation
Hi Gurus
I have problem with Exceptional Aggregation.I have a cube which as following data
Plant , Fromcostcenter,ToCostcenter, g/l,fiscalyear/period, allocation %,amount
1 101234 102355 888881 001/2006 10 1000
1 101234 102355 888881 002/2006 10 1000
1 101234 102345 888882 001/2006 10 1000
1 101234 102346 888893 001/2006 90 1000
1 101234 102346 888893 002/2006 90 1000
1 101234 102346 888984 001/2006 90 1000
I need summarized report as follows
Fromcostcenter tocostcenter allocation%
101234 102355 10
101234 102346 90
But iam getting report as follows
101234 102355 30
101234 102355 270
The allocation% keyfigure should not be accumulated, so for this i specified Exceptional aggregation but not worked.
Any Suggestions,please help me.
Thanks
RaghuHi
I am also having same problem. Did you get a solution for your problem? Can you please tell me how did u manage to display 10 and 90 instead of 30 and 270?
I also tried exceptional aggregation if more than one value. but not working.
Thanks -
'Average Weighted with Calendar Days' in Exception Aggregation
Dear specialists,
I have created a query with a lot of calculated keyfigures.
One of my calculated keyfigures shows percentage values.
When I select a calendar day, my report shows correct results
for the percentage values.
But when I execute the report without selecting a calendar day,
I get strange results like 3,21 % instead of 97,49 %.
There is a new functionality with version 7.0, where we can set
Aggregation properties like 'Average Weighted with Calendar Days' .
But when I select this with Ref. characteristic 'calendar day',
my report does not show any value or any result.
Are there any other properties to set in Aggregation or Calculations.
Please give me more information about this issue
regards Osman AkuzunHi,
When you define an Exception aggregation on number of work days. There might be some reference characteristic defined in your Bex.
For exmaple, take a scenario like below. Your BW data is like below
0Employee StockIssued
XXX 50
XXX 10
YYY 20
YYY 30
YYY 40
ZZZ 50
ZZZ 100
ZZZ 30
Suppose the first row which has values like XXX and 50 is not a working day and remaining all are working days then the exception aggregation applied using AV2 on the characteristic 0Employee will be caluclated in your Report as below
For XXX, it will 10/1 = 10 (because only 1 working day for the employee XXX)
For YYY, it will 90/3 = 30 (because all 3 are working days for the employee YYY)
For ZZZ, it will 180/3 = 60 (because all 3 are working days for the employee ZZZ)
This is how the exception aggregation works. Try to see the similar kind of example in your system and try to relate in the same lines explained by me. You can understand.
Regards
Sunil -
More than one reference characteristics Exception Aggregation
Hi All,
Is it possible to use more than one reference characteristics in reports for Exception Aggregation?
Thanks In AdvanceHi PPMM,
Did you resolve this issue?
Thanks,
Pam -
Query Performance with Exception aggregation
Hello,
My Query Keyfigures has exception aggregation on order line level as per requirement.
Currently cube holds 5M of records, when we run query its running more than 30min.
We cont remove exception aggregation.
Cube is alredy modeled correctly and we dont want to use the cache.
Does anybody can please advice if there is any other better approach to improve query performance with exception agg?
ThanksHi,
We have the same problem and raised an OSS ticket. They replied us with the note 1257455 which offers all ways of improving performance in such cases. I guess there s nothing else to do, but to precalculate this exception aggregated formula in data model via transformations or ABAP.
By the way, cache can not help you in this case since exc. agg. is calculated after cache retrieval.
Hope this helps,
Sunil
Maybe you are looking for
-
Subform instances and data missing in email submitted pdf
I have created a form in which a user can add instances of a subform, enter data, and submit it to an email address as a pdf. When I receive the form the instances are missing. What steps do I need to follow to ensure that all of the data that is ent
-
Error in creating record in custom Z BAPI
Hi I have added some fields in the BAPI as append structure. But when adding record to it, it is showing the following error in the very first custom field added. [code]java.lang.ArrayIndexOutOfBoundsException: -1 at com.sap.mw.jco.JCO$MetaData.
-
Hello !! Can anybody please let me know as to how should i make my java program compliant with proxy sever (in other words ...what changes are required in a java program so that it becomes compatible with a proxy server)....what i want to do is....i
-
Upgrade, migrating oracle application. Which is better way?
We have oracle application 11.5.5 run on Window NT 4 Server. We want to upgrade Window NT4 to Window 2000 advanced Server or Window 2003 advanced Server. We also want to upgrade oracle application 11.5.5 to 11.5.9 or 11.5.10. Since we have a new serv
-
How can I edit original e-mails from friends?
I've been able to do this w/Firefox 3.6.2 on my previous computer & present one ever since my first install. I would open e-mail, click on it & was able to delete or add text. Two days ago I was using backspace to remove text & decided to highlight a