Multi Characteristic average aggregation in BEX

Hello,
I have a query with one formula that should consider always 3 characteristics for the calculation.
Example
P1 M1 I1  Formula
P1 M2 I2  Formula
is working for all types of drill because I set Formula aggregation Average by P
P1 M1 I1  Formula
P1 M1 I2  Formula
is not working if  I remove I or M dimensions from the query
P1 M1 I1  Formula
P2 M1 I1  Formula
is not working if I remove P dimension
Basically I would like that the formula result is always calculated as the P, M, I dimension by this order were there all the time.
I also try to fix the 3 dimension in the layout but without success.
Can you help me out? Thanks

Hi,
Read this:
Why Calculated Key figure instead of New Formula?
Reference: help.sap.com
The replacement of formula variables with the processing type Replacement Path acts differently in calculated key figures and formulas:
If you use a formula variable with u201CReplacement from the Value of an Attributeu201D in a calculated key figure, then the system automatically adds the drilldown according to the reference characteristic for the attribute. The system then evaluates the variables for each characteristic value for the reference characteristic. Afterwards, the calculated key figure is calculated and, subsequently, all of the other operations are executed, meaning all additional, calculated key figures, aggregations, and formulas. The system only calculates the operators, which are assembled in the calculated key figure itself, before the aggregation using the reference characteristic.
If you use a formula variable with Replacement from the Value of an Attribute in a formula element, then the variable is only calculated if the reference characteristic is uniquely specified in the respective row, column, or in the filter.
Once again give a try we made formula variable in formula instead of that make use of CKF.
It may work.
Regards,
AL

Similar Messages

  • Aggregation in Bex

    As a novice in BI, I have some questions about the aggregation in BEx.
    1) As you guys already known, everthing in the tab Calculation of KF properties is justed used in displaying the result. I want to set the result value in this tab , and then use this value to calculate others. Is there any solution?
    For example, I set the 'Calculation Result As' = 'AVG' and I want the average value to calculate others.
    2) I really hate the limitation of aggregation that SAP provides. I want to customize my own aggregation. Is there any user exit to serve my requirements?
    Thank you very much. These problems always disturb my life!!!

    hi
    1) You are correct...i hve also faced enough problems reg aggregation...but I think some of might be solved in BI 7.0 bex designer..
    as of old versions: you can write VB code/macros to get desired results...
    2) I m not sure which scenario you rae talking abt....aggregtaion would be dependent on lots of factors.....
    thanks for any points

  • Aggregation order DOES matter for average aggregation

    I left a comment on chapter 9 of the OLAP User's Guide 11g (http://download.oracle.com/docs/cd/B28359_01/olap.111/b28124/aggregate.htm). In this chapter you can find the statement that the aggregation oder does not matter for the average aggregation. This is not true, if you have any NULL values in your cube. Just take a simple example like that of figure 9-5 in the above mentioned chapter and you see that aggregation order matters.
    I left a comment for that chapter more than a week ago, unfortunately this comment does not appear anywhere until now.
    Whoever is responsible for that chapter, please correct!!

    One more thing, which just comes into my mind:
    How exactly are the average values calculated? Do you take all leave nodes belonging to a higher level node or do you take the child nodes?
    Example: Assume you have a calendar dimension (year, quarter, month, day). The average value for a quarter is the sum of all day values divided by the number of days or is it the sum of all month values divided by the number of months? As far as I remember from a prototype we implemented last year it is the first option, but this is not really documented. Could you please confirm and maybe add some note to the documentation.
    Thanks!

  • Before Aggregation in Bex

    Hi,
    My query is at a Calmonth level but I have to do the calculations at the Calday level.
    OverTime = Actual Hours - Planned Hours
    I have Cal Day in my MultiProvider. How can I use Before Aggregation in the query so that I can achieve the calculations at a day level.
    Thanks
    Deepthi.

    Hi Deepthi,
    Use Exception aggreation for the key figure calculating OverTime.
    with reference characteristic as 0CALDAY.
    If you are in BEx 3.x, you may creat a new calculated key figure , with the original key figure and in the properties of this calculated key figure, you can exception aggregate using enhanced properties...displayed with a button below...
    In BEx 7.x.. you can create a new selection and in aggregation tab in the selection properties mentione the exception aggregation as Sum with reference characteristic as 0CALDAY.
    Hope this helps,
    Best regards,
    Sunmit.

  • Aggregation issue Bex report

    Hi all,
    I am facing the following aggregation issue at reporing level. BW system 3.5
    Cube1
    Material, Company code, Cost center, Material, Month,   Volume KF
    Cube2
    Material, Company code, Cost center, Material, Month,   Price KF
    Multi provider
    Material, Company code, Cost center, Material, Month,   Volume KF, Price KF
    Report
    - Global Calculated key figure 'Value' is  based on basic KF's  Volume KF, Price KF
    - Time of aggregation is set to " Before aggregation" in propery of Calculated Key Figure.
    -  There is only one characteristics 'Company code' is used in report.
    When, I execute this report, Calculated KF is not working (No values), If I change Time of aggregation " After aggregation" in propery of Calculated Key Figure, then It works but wrong values.Price gets aggregated(add ups) and multiply with Volume which is wrong.
    Can you please give me a Ideal solution to resolve this.
    Thanks,
    Harry

    Hi all,
    Can I assume that there is no solution for this issue ??
    Thanks,
    Harry

  • How to Hide Compounded Characteristic Infoobject Results in BEx Queries.

    Hi All,
    I searched for the solution but didn’t find any. Am new to BW and BEx query designing.
    I have a compounded characteristic Info object Val1 which is compounded with Val2
    Val1 has Text Table.
    Val1 + Val2 gives unique Text values as mentioned below:
    Eg:
    Val1
    Val2
    Text (From Text table)
    1
    2
    Abc
    1
    8
    Xyz
    1
    In the BEx query I have to use Val1 as a Free Characteristic. So when there is no value for Val2 but has a value for Val1 (as shown in third row) it is displaying as 1/Not Assigned. Other Text are displaying as desired.
    Am displaying Text as mentioned above in the report for this compounded Info objects. I want to display it as Not Assigned Instead of 1/Not Assigned or even blank. I tried all different ways of No Display etc. nothing is working.
    Any help is much appreciated.
    Cheers
    Sandeep

    Hi,
    Assuming as Val2 is primary info object and compound object is Val1.
    Drag Val1 into rows, properties --> display as --> No display
    Drag Val2 into rows, properties --> display as --> you can choose as you need, key or text.
    Thanks

  • Aggregation in BEx query

    Hi Gurus,
    I am stuck in a peculiar problem. I would try to explain with the scenario. The below is how I get the data from our cube to my Bex query
    Date                PO Number    PO Line Item    PO Count     PO Line Item Count
    01.01.2011     X1                  10                    1                  1
    02.01.2011     X1                  10                    1                  1                                       (Line item was changed on this date)
    01.01.2011     X1                  20                    1                  1
    01.01.2011     X1                  30                    1                  1
    01.01.2011     X1                  40                    1                  1
    Result                                                           5                   5
    Whereas, what is expected is as follows
    Date                PO Number    PO Line Item    PO Count     PO Line Item Count
    01.01.2011     X1                  10                    1                  1
    02.01.2011     X1                  10                    1                  1                           
    01.01.2011     X1                  20                    1                  1
    01.01.2011     X1                  30                    1                  1
    01.01.2011     X1                  40                    1                  1
    Result                                                           1                   4 (because total PO is only 1 whereas line items are only 4)
    I am not able to achieve this. Can you please help.

    Hi Rahul,
    You can get the unique count with reference to particular characteristic by creating CKF, but I think if you put the reference characteristic in drill down it might not work.
    Check the following document,
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/009819ab-c96e-2910-bbb2-c85f7bdec04a?quicklink=index&overridelayout=true]
    Regards,
    Durgesh.

  • Questions about multi-sco and Aggregator

    Hi all,
    I'm trying to create a multi-sco course with three lessons using Captivate Aggregator, but I have some problems.
    First of all, once first lesson finishes, the second doesn't automatically start: the course stops at the end of first lesson.
    How do I get to the second lesson to launch automatically when I finish the  first one?
    Scorm version is 1.2 (I can't use 2004), Captivate settings are the follows:
    Project
    First lesson's last slide
    - on slide enter: continue
    -on slide exit: go to next slide
    Last slide button
    -on success: continue
    - allow user infinite attempts
    After that, I create second and third slide and then the multi-sco project with Aggregator, but It doesn't work.
    I'm testing it both on LMS and in local with Reload Scorm Player.
    There is another problem: on this forum and in this tutorial (http://blogs.adobe.com/captivate/2009/01/ at the end of page) It suggest to add on aggregator files swfs: if I open Aggregator and select multi-sco project, I CAN'T add anything but zip.files.
    In tutorial under "adding Flash swfs" It allows adding both zip and swfs.... in my Aggregator not.
    Tutorial:
    My aggregator:
    I can't understand why.
    Any hints?

    I am FAR from being an expert with Aggregator and Multi-SCO builder, but I have learned this much:
    a. Aggregator is far simpler to use and works more consistently. To get one course to open first, once you "ADD" the courses in Aggregator, use the ARrow tool to move the one you want to open first up.
    b. Multi_SCO is much more complicated to use, but I think that is really what you want to use, unless you like that huge gray tab hanging off the side.
    I am LEARNING this stuff every day and here is what I know so far... somebody out there please jump in and correct me if I'm wrong but here's the way I am trying to use the MULTI-SCO builder. I am doing this....
    1. I have a course with 8 modules. Even tho every module doesn't have a test, it still needds to have a Manifest. To do that, I go into each course and  turn ON "Report Score." Inside each module, within the SCORM Manifest, I then give each module a DIFFERENT sco identifier name. I use numbers with the names and keep the order sequential, depending on what I want to load when... i.e.,  SCO_1 (no spaces in the names here) for the first course, and  SCO_2.
    2. Now, I have to publish each and every module as a ZIPPED file (with Reporting turned on) so that -- in my case -- I end up with 8 zipped files. The names of the files don't matter, but inside the SCO I kept the SCO numbers sequential.
    3. When I have all  my modules zipped up, I then open COURSE AGGREGATOR and select the option "Multi-SCO".  This will bring up its own little kind of SCO REPORTING box and asks for a SCO name again. This time, I named the course SCO_0... and give it a name.  NOW I add my zipped files one at a time, as well as the Javascripts and all that stuff that tell the LMS which order I want them to appear in the course.
    4- I save & PUBLISH the mutli-SCO.. and what THAT does is create one BIG zipped file that contains all the littler zipped files, PLUS it writes a "master course" manifest and all that other stuff that instrcuts the LMS to read each SCO in order.
    I may not be exactly write, but I am very close... if anybody else can chime in and correct any wrong parts here, we could figure this thing out and document it ourself... since Adobe has totally fallen down on the job.
    Good luck witih it!!!
    If I am on the right track... it is the order in which the LMS reads the SCOs

  • What's the best program structure for multi-channel Averaged FFTs?

    I have been successfully using a 8-channel FFT analyzer using a separate Averaged FFT Spectrum (Mag-Phase) VI for each channel, but I now need to expand my channel count from 8 to 16. All channels are simultaneoulsy read in to a buffer to maintain phase relatioships. Do I need to have 16 copies of the Averaged FFT Spectrum VI in my diagram to maintain the averages of each channel or can I utilize one FFT VI somehow within a For Loop? If a For Loop can be used, how can the averaged spectrums be maintained for each of the 16 channels?

    You should be able to use a single FFT vi in a for loop. If your data is in a 2D array representation with each row representing a channel and you leave the indexing enabled you can pass your data array into the loop and it will strip off each row automatically. You could then pass each row of data to the FFT and pass the results out to the boundary of the for loop. This will then build an array containing the FFT results for each row (channel).
    Marc
    Marc

  • How to fix a value of a characteristic during Aggregation

    Hi,
    I am not able to fix a value of a char JO_SREG(sales region) while creating aggregate.
    Values of the char JO_SREG are not coming in the "value help of InfoObject JO_SREG", therefore i cannot select one value for this char to restrict it.
    Please tell me why the values in the value help are not coming.

    Hi,
    Check that master data for JO_SREG is available???
    If you have not maintained the master data for JO_SREG then you wont be able to see the values.
    Let me know if it helps?
    Mayank

  • Average of characteristic

    Hello experts,
    I want an average-aggregation of a key figure to be calculated and displayed in Bex not only according one dimension (like 0CALDAY),  as chosen in the InfoObject's declaration, but also according other dimensions like product or region etc.!
    any suggestions?
    Axel

    Hello Anu,
    I am a little bit confised.
    CKF = characteristics figure?
    what do you mean by enhane" tab? there is a "aggregation"-tab where I gave exception aggregation as " Average" and reference characteristic as 0CALDAY.
    If I choose product as reference characteristic for the exception aggregation I only get the average along product dimension!
    so I have the same problem with the product dimension, right??
    Axel

  • '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 Akuzun

    Hi,
           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

  • Aggregation Behaviour in BEX Analyzer

    Hi Experts,
    using an Info-Set I combine information from to Info-Provider.
    One Info-Provider contains key-figure "amount" while the other Info-Provider contains key-figure "factor".
    Within a Query based on my Info-Set I multiply "amount" with "key-figure". This works fine for the smallest granularity.
    The Problem appears when I start aggregation in BEX.
    Now the cumulated "amount" is multiplied with the cumulated "factor". The results are wrong.
    What can I do?
    Exception aggregation is in my point of view not an answer, since "amount" has to be weighted with "factor".
    BR,
    Thorsten

    Hi Thorsten,
    how umulated "amount" is multiplied with the cumulated "factor". in query, in calulated key figure you have options.
    right on Calculted keyfigure which useing for mutiplication -> proprties -> botttom of properties you have option before aggregation. check this option.
    hope this helps
    Regards
    Daya Sagar

  • Bex Issue : before aggregation

    Hi,
    I have a problem in Bex that I thought to solve with the "before aggregration" option in Bex Analyzer but this doesn't seem to be possible.
    My query looks initially like this for 1 shipment 1344601 that is linked to 2 deliveries
    Shipment Delivery Del.Quantity Counter Del.Quantity/Count
    1344601   81209721  41.160 KG     2      20.580 KG      
    1344601   81209722  14.840 KG     1      14.840 KG
    Resultrow .............56.000 KG     3       35.420 KG
    This 35.420 KG is the right total delivery quantity for shipment 1344601. Note that counter is calculated via a formula with before aggregation. Also the Del. Quantity is included in a formula with before calculation.
    When I now remove the drilldown on the delivery my result is wrong :
    Shipment      Del.Quantity Counter Del.Quantity/Count
    1344601       56.000 KG    3       18.666.67 KG
    Resultrw     56.000 KG    3       18.666.67 KG
    The system is dividing 56.000 KG by 3 which leads to an incorrect result of 18.666.67 KG.
    ==> My problem is that I can't put the Del.Quantity/Count on calculation before aggregation, although Del.Quantity and Counter that are used in the calculation have both calculation before aggregation.
    Via a little trick (include the calculation in a new calculated keyfigure where I multiply it by 1) I could put it on calculation before aggregation but then the query execution fails.
    Does anyone know a solution for this behaviour as I think lots of you might have faced similar situations and I would like to avoid to solve this in data staging as this doesn't seem unsolvable in Bex to me...
    Message was edited by: Wim

    Hi,
    As per the my knowledge, we can use the properties of Before Aggregation in Bex Analyser.
    for ex. when u excute your query, by default the result of the calculated key figure is generated after aggregation. But we can change this property to before aggregation by going to context menu of the calculated key figure for the analyer.
    But it is considered as a bad practice in SAP.
    If you want to use this option in query designer it not available,
    because when we use calculated key figure in formulas it calculate as after aggregation. If you want to change it, we can change at analyser level.
    Hope u understood.
    Regards,
    Vamsi
    Assign points if useful.

  • SAP BWoH 7.4 GUI (For Bex New Features)

    Hi All,
    In the new Release of of BW on HANA 7.4, I have come across new features like Multi dimensional exception Aggregation where we can use 5 different reference characteristics, Current member variable,. I would like to check these new features. Currently we are using SAP GUI 7.3. and could not find these new features in the query designer. Could you please suggest if there is a new GUI available to see these new features in Bex? or please let me know where can I find these new features.
    Best Regards
    Ramakrishna

    Hi Suman,
    Thanks for your response, to be more clear, my question is regarding GUI only, the system is already on HANA, its 7.4. But the GUI we are using is 7.3. shold there be a new GUI after 7.3?
    regards
    Rama

Maybe you are looking for

  • No data found error message in bi report

    Hi All, I have a RTF template in that i need to generate a blank page and display a message as "NO DATA FOUND" when query is not returning any rows, i tried using as below : IF_NO_DATA ******* NO DATA FOUND ******* END_IF_NO_DATA Under no data i wrot

  • Form fields remain interactive after form is saved

    I have built a number of forms by importing static pdf's in to Live Cycle and applying the form fields and scripts there. Now I am finding that if I save the form and then go to Acrobat XI to enable the form so that Adobe Reader users can fill it out

  • Order of "New" button for creating project not working

    Hi In Project Server I've added several EnterPrise Project Types, and now I want to sort them the way I want in the "New" button in project center. But no matter what I do, the order is always the same. For instance, if I tick the box for the "Constr

  • False backup / archive alerts after system refresh

    We have implemented CCMS on our systems. We recently refreshed our QTS system with a backup of production (PTD). CCMS is now sending alerts for backups and archives. It tells us that the backup and archive did never run. I checked DB12 and found that

  • Include format date inside If condition

    Hi, I need to format date which displays based on the IF condition. 1.<?xdoxslt:ifelse(Current_stub_number___Local_ID46<Stub_Total___Local_ID66,' ',G_L_Date___Local_ID18)?> above to display blank or date value G_L_Date___Local_ID18 based on condition