Calculate Average and Maximum of KeyFigure values by Date.

Hi Experts,
There are certain KeyFigures such as CPU Utilization, Memory Allocated, etc in BEx Analyzer coming from InfoCube by Date (0CALDAY).
The End-user is interested in looking at Average CPU Utilization / Day and Maximum CPU Utilization / Day as different Columns.
I tried to change the configurations of these KeyFigures to Average and Maximum in the Back-end (BI ETL) but it is not working.
We are working on BI 7.0.
Could anyone please help with this?
Your time is much appreciated. Points will be assigned.
Thanks,
Chandu

Hi Chandra,
I'm having the same issue, how did you solved this with a Formula in BEX?
I need have one key figure with two behaviors average and sum, is it possible?
Regards,
Fernando

Similar Messages

  • How to calculates averages and send to a file?(source code)

    how to calculates averages and send to a file?(source code) I need to get started but I don't know where to begin...........the book I have doesn't really say how to handle averages and send to a file.................anybody got suggestions on how to get started? I am a newbie so place in layman's terms.............thanx

    To calculate an average: add all of the numbers together and divide by how many numbers you added together.
    ex: (1 + 2 + 3 + 10)/4 = 4 (4 is the average)
    As for writing them to a file, look over the API for random or sequential access files.

  • How to calculate average if some of measure values are 0

    Hi
    I created a webI report on top of a Bex query, I have a more than 10 different measure in WebI report column on which i need to calculate average.
    If I  use the Average function provided with in WebI report it is calculating average for the measures which are having 0  values too, but i need to calculate average on a column only for those values which are not 0
    Ex:  Measure Quantity has values in the report like
    100
    100
    0
    100
    100
    Average function is calculating as 400/5
    but I need 400/4, because one of the value is 0, so i need to avoid that count which is zero and should divide it by 4 but not 5.
    One way is to custom create measure for all measures and make a if else condition and divided by that custom measure, but is there any other procedure?

    i hope this can help
    =Average([myMeasure]) Where ([myMesyre] <> 0)
    good luck
    Amr
    before the 0 add <> not Equal too sign < and >
    Edited by: Amr Salem on Jan 19, 2011 9:29 AM
    Edited by: Amr Salem on Jan 19, 2011 9:30 AM

  • How to calculate averages and send to a file?(source code)

    Having trouble the book isn't very clear on how to use averages.............could some give me an example of a program..................that gets averages and send to a file..........?

    From Deitel and Deitels monster 'How to Program' :
    import javax.swing.JOptionPane;
    public class Average {
    public static void main ( String args[] )
    int total, gradeCounter, gradeValue, average;
    Swing grade;
    total = 0;
    gradeCounter = 1;
    while ( gradeCounter <= 10 ) {      //assuming 10 values
    grade = JOption.showInputDialog ( "Enter grade: " ) ;
    gradeValue = Integer.parseInt ( grade );
    total += gradeValue;
    gradeCounter = gradeCounter + 1;
    average = total / 10;
    JOptionPane.showMessageDialog (
    null, "Class Average is" + average, "Class Average",
    JOptionPane.INFORMATIOIN_MESSAGE );
    System.exit ( 0 );
    Import package java.io
    Three stream objects are created when you execute , System.in, System.out, System.err
    System.out can be directed to send it's output to a file or disk.

  • How to calculate percentage and difference of two values in matrix report in ssrs 2008

    Hi everyone,
    DB--SQL server
    SSRS-2008
    I am creating matrix report with grouping on WEEK and Fiscalyearweek,
    I need to calculate of difference between FY14W01,FY15W01 ande  percentage of those..
    how to calculate in ssrs level.
    Thank You, Manasa.V

    Hi veerapaneni,
    According to your description, you want to calculated the increment percentage and difference between two fiscal year week within each week. Right?
    In this scenario, since we need to do calculation based on values between dynamically generated cells, we can't simply use expression to achieve this goal. In this scenario, we need to use custom code to record the value for fiscal 14 and fiscal 15, then
    we can calculate the difference and percentage within the column group. We have tested your case in our local environment, please refer to the steps and screenshots below:
    1. Add the custom code below into the report (you may need to modify the data type based on your scenario:
    Public Shared Value1 as Integer
    Public Shared Value2 as Integer
    Public Shared previous as string
    Public Shared previousweek as string
      Public Shared Function GetValue(Value as Integer,product as String,Week as String) as Integer
    If product =previous and Week =previousweek  Then
         Value2=Value
    Else
    previous=product
    previousweek=Week
    Value1=Value
    End If
         return Value
      End Function
      Public Shared Function GetPct()
         return (Value2-Value1)/Value1
      End Function
    Public Shared Function GetDiff()
         return Value2-Value1
      End Function
    2. Design the matrix like below:
    3. The result look like below:
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Search the registry for a Value, and then use the Value's data

    Hoping someone here can help me. I am attempting to find a binary value in the registry and I am having no luck so far. 
    Here is what I currently have:
    $key = "HKCU:\software\microsoft\office\15.0\Outlook\Profiles\Outlook"
    Get-ChildItem $key -rec -ea SilentlyContinue | foreach {
    $CurrentKey = (Get-ItemProperty -Path $_.PsPath -ErrorAction SilentlyContinue)
    if ($CurrentKey -match "001f6700") {
    $data = $CurrentKey.PSPath
    $data2 = Get-ItemProperty -Path . -Name "001f6700"
    echo $data2
    # $data3 = [Text.Encoding]::ASCII.getString($data2)
    echo $data3

    Finally got it working with this code:
    $x = Get-ChildItem HKCU:\software\microsoft\office -rec -ea SilentlyContinue |
    Where-Object {(Get-ItemProperty -path $_.PSPath) -match "001f6700"} |
    select -Property Property, Name, PSPath
    $y = Get-ItemPropertyValue -Path $X.PSPath -Name 001f6700
    for($i = 0; $i -clt $x.Count; $i++)
    [Text.Encoding]::unicode.getString($y[$i].syncroot)
    credit goes to a Mr. Nowacki

  • Sales Order Blocking based on Minimum & Maximum Qty, Wt & Value.

    Hi Experts,
    I need to put a minimum and maximum (value, quantity and weight) set up in Sales Order based on the Customer.
    Based on the condition record I should be able to put the minimum and maximum quantity, order value and weight in condition record.
    If anybody try to enter less than the minimum and more than maximum system should automatically block the sales order.
    Is it possible ? If possible how can I create condition record for this.
    Christine

    For minimum order quantity you can maintain in the material master itself.  So whenever you enter the quantity less than the minimum order qty it throws the error and will save the order.
    Regarding the maxmum order quantity you have to write the userexit to control the max. quanity by specifying the max. qty in user exit.
    Reward points if it is helpful

  • Calculate total and average for same key figure

    Hi Experts,
    I have a requirement where I need to calculate total and average for same key figure no of employees.
    eg:                
    If I enter 03,2009 as Input the reuslt should give from financiual year starting to current month.
         11.2008      12.2008     1.2009     2.2009     3.2009        average
             11          10       12       10        10         10.6
             10         10       11       12        10         10.6
    total         21         20       23       22        20          21.2
    we have only one characteristic in rows... companycode.
    Waiting for your Inputs.
    Regards
    Prasad Nannuri

    no it will work for u
    you have to use variable on 0calmonth or fiscal period depending on what Time characteristic u are using.
    lets say that variable is zcalmonth
    it is based on 0calmonth for e.g.
    now u restrict keyfigure with this variable zcalmonth with time char. = 0CALMONTH
    copy and paste the restricted keyfigure
    now set offset for variable in  variable selection screen dialog box = -1
    repeat this until u want
    make this variable mandatory
    now at query execution user will select any value for month/year
    and u will see all 5 months in result set
    now there can be maximum 12 months in a year, so u end up creating only 12 restricted keyfigures.
    use YEAR in restricted keyfigure too, and restrict it with YEAR VARIABLE processing by CUSTOMER EXIT = CURRENT YEAR
    in this case it will automatically removes any additional values...
    for e.e.g
    YEAR = 2008 only
    User entered 6/2008
    so lets say ur financial year starts in  april 2007 and ends in april 2008
    so u expect to see
    4/08
    5/08
    6/08
    but u created 12 restricted keyfigures , so it will show upto
    4,5,6 months only

  • How to calculate Average of Keyfigure

    Hi Gurus,
    I have a requirement where I have to calculate average of key figure value for 1 material.
    I tried using 'Average' in exception Aggregation but it just sums up everything.
    Can anyone please explain?
    Thanks

    Hi
    1. Include the key figure you want to average into the columns; call it KF1
    2. Create a Formula; call it CTR1, and in the detail view put a 1. (This 1-value is not used except to avoid an error in the formula syntax checker.) On the Aggregation tab, choose Exception Aggregation: Counter for all Detailed Values, and for the Ref. Characteristic, choose the same characteristic as the lowest level characteristic in the initial view of the output. E.g. if you only have 0CALMONTH in the output, choose 0CALMONTH. When you run this, the total at the bottom of this column should be equal to the number of rows in that column. Note that we use Exception Aggregation here so that the total at the bottom is calculated before the output is generated and is available to other formulas in the query design; if we were to use the Calculation tab it would look the same to us in that the total would appear at the bottom, but the calculation would occur too late for us to use within the query.
    3. Create a second formula, call it AVG1. The formula will be:
    SUMGT KF1 / SUMGT CTR1
    SUMGT accesses the Overall Result value at the bottom of the KF1 and CTR1 columns. You can find the SUMGT function in the Data Functions folder - turn on technical names first; the description is Overall Result. You could instead use SUMRT; the difference is that SUMGT will use the filters applied in the filter block; SUMRT will ignore them.
    3. Run the query. You should see the Average in every cell in the Average column. You can use this formula as input to another formula, or just use ( SUMGT KF1 / SUMGT CTR1 ) within a formula to access the average value.
    Thanks

  • Change Datepicker Minimum and Maximum Value

    Hi everyone,
    I have a date item with minimum and maximum dates from 2 hidden items.
    The problem is that when i change the value of thos 2 hidden items , the minimum and maximum dates in my datepicker doesn't change.
    I've tried refreshing the date item but it still doesn't work.
    Kind Regards,
    Cearnau Dan
    APEX 4.0.1

    Geert,
    Thanks for your reply. I tried making the hidden item to not protected as you suggested. Changing it to not protected had no effect on setting the Min/Max values of the date picker.
    After reading the following thread I have had some success using javascript to the min/max option of the date picker.
    Re: Dynamic Action On Date Picker
    Documentation on jquery date picker.
    http://jqueryui.com/demos/datepicker/
    Thanks,
    Todd

  • Rounding Value,Minimum Lot Size and Maximum Lot Siz parameters

    Hello Gurus,
           Please explain me the what is the use of the parameter Rounding Value
    ,Minimum Lot Size and Maximum Lot Size parameters in the product master and how does it in impact during the Heuristic Run?
    Thanks.

    Rounding value is the incremental quantities in which the order can be produced/procured. Eg. if orders are possible with quantities 40,60, 80, 100 etc..then rounding value is 20.
    Min lot size is the minimum quanity in which order can be produced eg. 40 in above example
    Max lot size is the maximum quanitity in which the order can be produced/procured. eg. 100 in our example
    Impact on Heuristic run: heuristics takes all the above parameter to plan supply order. eg. if requirement is 55, it will supply plan for 60. If requirement is 120, it will produce two orders - one for 100 and the other for 20. if the reuqirement is 10, the order size will be 40.
    Hope this helps.

  • Cycle average and RMS VI outputting unexpected value.

    I have an application that performs FFT analysis on an AC voltage singnal. As part of the whole setup, I've also included the Cycle average and RMS vi. When I've run the whole program, I've found out that the RMS value indicated is less than the highest magnitude component from the FFT analysis!(Which is incorrect). In addition I've found that the sub-vi, ma_ptmFetch.vi, within the cycle average and RMS VI, is returning an error(-20312), which says input waveform size is zero.
    Can anyone help, with this problem?

    two general observations
    1) the differences in the RMS value an the highest magnitude in the FFT may be due to scaling, 0 to peak vs RMS in the FFT
    2) the cycle average VI is a good one to use, however the default percentage of full scale numbers are very tight. These determine how many true cycles you have in your data, and may be filtering out cycles, giving you the waveform size of 0. Try lowering the limits to 70 for the high side, and 30 for the low side, rather than 90 and 10 which are the defaults.
    What are you trying to learn from the AC voltage? Are you performing some sort of power quality test?
    Hope this helps,
    Preston Johnson
    Preston Johnson
    Principal Sales Engineer
    Condition Monitoring Systems
    Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
    National Instruments
    [email protected]
    www.ni.com/mcm
    www.ni.com/soundandvibration
    www.ni.com/biganalogdata
    512-683-5444

  • COPA - Maximum number of value fileds and characteristics

    Does anybody know wich is the maximum number of value fields in COPA module . VVXXX
    I remember that in 4.6 it's something like 56.
    There's also a maximum, in the number of characterisitcs that you can use in COPA?
    Thanks in advanced
    Edited by: Xavi Herce Segu on Apr 7, 2010 11:51 AM

    Summary
    Symptom
    The technical limits for data structure of an operating concern could constrain further extension for large applications.
    The current limits are set as follows:
    50 characteristics
    120 value fields
    249 fields in table
    1948 bytes of table width
    Other terms
    data structure, KEA0, characteristics, value fields
    Reason and Prerequisites
    This was due to historical as well as performance reasons, because of database and system limitations in past.
    Solution
    As of basis 6.20 package 25 was extended the limit of database table length to 4030 characters. According that, the limits for CO-PA data structure are adapted as well.
    By applying of the attached source code correction the limits are extended as follows:
    50 characteristics
    200 value fields
    749 fields in table
    4030 bytes of table width
    Caution:
    The correction can be applied also in ERP release 4.70, but only under the condition, that basis release 6.20, support package 25 or higher is applied.
    Header Data

  • Ok, im new to numbers but i cant work this one out. In column A is an average of hours worked. I have 4 columns. A and B have different values. Column C is an average of hours worked. When column C is less then 8 i need column D to equal column a

    Ok, im new to numbers but i cant work this one out. I have 4 columns. A and B have different values. Column C is an average of hours worked. When column C is less then 8 i need column D to equal column A. When column C is equal or greater then 8 i need column D to equal the sum of A and B.

    Hi Lucas,
    Try this:
    Formula in D2 (and Fill Down) =IF(C2<8, A2,A2+B2)
    The IF function follows the logic of if, then, else.
    IF(this is true, then do this, else do that)
    If it is raining, then stay at home, else hold a picnic .
    Regards,
    Ian.

  • I have a loop made to read temperature 30 times and averages it down to one value which is then displayed on the screen.

    My problem is that this loop is not permitting me to abort instantly because I have to wait until the for loop is done. I am using event structure which is allowing me to interrupt at any time and jump to something else in the software but nothing stops the for loop and I really need to calculate temperature by taking at least 20-30 points. I have been moving this part of the software all over the software and if I solve one problem wherever I put this vi it slows down that part of the software where I put it. I need to read te temp. all the time whle software is running.
    Do you have any ideas how to speed up this VI so that it doesn't take t
    his long to execute or how to build this software so that read temp.vi doesn't affect software. Thanks for your time. Here is the read temp. vi
    Attachments:
    Read_temperature.vi ‏50 KB

    Hello,
    Here is a simple VI (saved in LabVIEW 7.0) that uses a control reference to pass a front panel control's value into a subVI. You can run the VI, then press the "Start SubVI" button, which will cause the subVI to start running. It waits until you press the "Abort SubVI" button, at which point the "Value" property of the boolean inside the subVI is read, and terminates the loop. I am then resetting the boolean value after the subVI returns a value (this is because you cannot use the Value property on latch booleans). This should be enough to get you started.
    Keep in mind that you cannot perform this operation inside an event case of an event structure, since the UI is locked while the event structure is processing the event...t
    hus, you wouldn't even be able to press the abort button. In your case, you should probably have a loop handling the UI events, and a separate loop handing the data acquisition.
    For more examples on using Control References, check out examples\general\cntrlref.llb. There is also extensive help on them in the LabVIEW On-line Help.
    Good luck,
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    ctrlref.llb ‏29 KB

Maybe you are looking for

  • Error in Pre-Pop Adapter for AD using ResourceObjectDefinition Mapping

    Hi I have a PRe-pop adapter for Org name in AD - One of the variables is ResourceObjectDefintion. However OIM is not able to map it to the right object name and throws the below error - cAdapterDataMap/getResourceObjectInfo encounter some problems: E

  • Converting Flash Catalyst FXP File into HTML

    Hey there Adobe Community, We have a client who's website we built quite a while ago in Flash Catalyst, the problem is as many of you know that Flash Catalyst has been discontinued. Does anyone know of any way to get our FXP File converted into HTML?

  • I need to borrow a rack!?

    Yep I suppose I could do that. I just felt naturally hesitant having a stack of patch panels and routing/NTE equipment just sort of left there without being secured in a cabinet. Even though realistically nobody would be going near them because the

  • Error during updating 10.2 software through BB link

    when updating through BB link it reaches 40 % and after that a message of ( software update encounterd an error ) i retryed about 4 times and always the same at 40 % please help

  • Redirect_uri issue when authenticating user with live account.

    Hello, i am working with a MVC application which is using OAuthWebSecurity to authenticate the user through live account, i am able to get access code and see the login page, but while getting access token i get the exception "The provided value for