How to find the Minimum value of a Measure across a Custom Dimension

I am having Trouble figuring the best approach for the given below scenario.
I have a measure called Inventory which is basically by Product by Part by Geography across a Time period.
Part dimension is 3 levels Deep.
Part
--Configuration_NAME
- Part_ID
the Requirement is to Pick the the Minimum Inventory Values of a product across the Configuration_Name and Store this information in another measure called Inventory_Min.
here is how the data mock up looks like
config1 - product1- Inventory - 100 (Period1)
config2- product1-Inventory-200 (Period1)
config3-Product1-inventory-400 (Period1)
now the output expected is
Config1-Product1-Inventory_MIN - 100(Period1) since for this product across 3 configs, 100 is the minimum inventory.
I am trying to use @RANGE,@MINS but i am not sure how to tell essbase to go down the Part Dimensions, level 1 members and not across the Period.
any help or points will be appreciated.
Thanks,
Sriram

Hello,
what about @MINSRANGE ?
http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/minsrange.html
Inventory_MIN = @MINSRANGE(SKIPBOTH, "Inventory" , @LIST("config1","config2","config3"))
should give the result,
if you FIX @RELATIVE("Part",-1) to grab level 1 members.
and you can extend expression something like
Inventory_MIN = @MINSRANGE(SKIPBOTH, Inventory , @CHILDREN(@CURRMBR("Part")))
Hope it helps,
Ahmet

Similar Messages

  • How to find the nearlest value in 1-D array ?

    Hi.. everybody..
    I need to seperate the raw data(1-D) into 2 group of array by the center value and then make the average value in each array. But I also still have the problem about if the center value is not the same of some value in the 1-D array. I cannot use the split function.
    "How to find the nearlest value to the center point that I calculated, in the 1-D array ?"
    Thanks a lot for anybody help

    In a general sense, since I'm not sure what your data values are or how far away your calculated center is from the true value, I would do it one of two ways:
    1) Use a threshold value and scan the array until the threshold is reached (assumes constantly increasing values in the array).
    2) Use either a) round to nearest integer b) round to + Infinity (round up) or c) round to - infinity (round down). If you don't have decimal values, you'll have to devide the values by a power of 10.
    2006 Ultimate LabVIEW G-eek.

  • How to find the FND_PROFILE.VALUE(ORG_ID) in custom apex schema

    Hi,
    How to find the FND_PROFILE.VALUE('ORG_ID') from dual in custom schema......
    Actually I have integrated Apex 4.2 version with EBS r12
    select FND_PROFILE.VALUE('ORG_ID') from dual ; in apps schema I m getting 198 value
    but the same query(select  apps.FND_PROFILE.VALUE('ORG_ID') from dual ) in custom schema (XXCVBB) returning null value..
    Is there  any pre steps I have to do...
    kindly provide the useful inputs to retrieve the profile value..........
    Regards,
    Pavan

    Hi,
    fnd_profile.value('ORG_ID'); will fetch you value only if there is a organization assigned to any application [or only if its  a single Org], being it custom application you should have used set policy context or mo_global.init to populate the global temporary table which will hold all the Org's which that specific user has access too.
    in your custom code use MO_GLOBAL.SET_POLICY_CONTEXT('S','ORG ID WHICH YOU NEED TO SET');
    after setting the policy context, you should be able to see value from fnd_profile.value('ORG_ID');
    Hope this Helps!!
    MO_GLOBAL.SET_POLICY_CONTEXT
    This procedure has two parameters
    p_access_mode
    Pass a value "S" in case you want your current session to work against Single ORG_ID
    Pass a value of "M" in case you want your current session to work against multiple ORG_ID's
    p_org_id
    Only applicable if p_access_mode is passed value of "S"
    MO_GLOBAL.INIT
    Purpose of mo_global.init :-
    It will check if new Multi Org Security Profile is set, to decide if new Security Profile method will be used.
    If the new MO security profile is set, then mo_global.init inserts one record, for each Organization in Org Hierarchy, in table mo_glob_org_access_tmp
    Regards,
    Yuvaraj

  • How to find the ASCII value of '  ?

    how to find the ASCII value of ' using ASCII Function in SQL??
    while i am trying this using syntax ASCII(''') the query is terminating at the second one

    Lokanath Giri wrote:
    For your validation check this link
    http://www.techonthenet.com/ascii/chart.php
    Please don't just refer people to other non-oracle websites when the answer is so simple to give here as others have already done.

  • How to find the ASCII value for an alphabet.

    How to find the ASCII value for an alphabet.

    How can I get Ascii value of any letter
    How can I get Ascii value of any letter.  Is there any function?
    This is how you do it : 
    report demtest.
    data : c.
    field-symbols : <n> type x.
    data : rn type i.
    c = 'A'.
    assign c to <n> casting.
    move <n> to rn.
    write rn.
    This will convert 'A' to 65.
    Tom Demuyt
    How to convert ascii value to character.
    If I give input as 65 (ascill value) I want display 'A'.
    Below logic is for convert from character to ascii value , now I want to know how to convert ascii value to character.
    Naveen
    report demtest.
    *going from A to 65
    data : c value 'A'.
    field-symbols : <n> type x.
    data : rn type i.
    assign c to <n> casting.
    move <n> to rn.
    write rn.
    *going from 66 to B
    data : i type i value 66.
    data : x type x.
    field-symbols : <fc> type c.
    move i to x.
    assign x to <fc> casting type c.
    move <fc> to c.
    write c.

  • Finding the minimum value across multiple rows (not in a single column)

    Hello,
    I am running some ad-hoc SQL to test a website implementation of a spec. The ad-hoc sql gives me a set of date values for a specific widget (called a Task). I need to find the Minimum of either (Task.EndDate + 1 year) or the MAX date from the list
    of other dates. I can easily get all of these dates, and compare them visually, but I'm not sure how to make SQL give me just the single value that I want. In the image below, you can see the results. The blue cell is the value I should get if I were to retrieve
    a single value. 
    select 
    [EndDate+12Mo] = DATEADD(year,1,t.EndDate)
    , [TaskEdit] =  t.EditTS
    , [ResearchEdit] = (select x.editts from Research x where t.researchid = x.researchid)
    , [DeliverableEdit] = (select max(x.EditTS) from Deliverable x where t.taskid = x.taskid)
    , [RTPEdit] = (select max(x.EditTS) from ResTaskParticipant x where (t.taskid = x.taskid and t.researchid = x.researchid) or (t.researchid = x.researchid and x.TaskID is null) )
    , [RelatedTaskEdit] = (select max(x.EditTS) from Task_Related x where t.taskid = x.Task1ID or t.TaskID = x.Task2ID)
    , [CrosscutEdit] = (select max(x.EditTS) from Task_Crosscut x where t.taskid = x.taskid)
    , [TaskFundingEdit]= (select max(x.EditTS) from TaskFunding x where t.taskID = x.taskID)
    , [ContractFundingEdit]= (select max(x.EditTS) from TaskFunding x inner join ContractFunding y on x.ContractFundingID = y.ContractFundingID where t.taskID = x.taskID)
    from task t
    where 
    t.tasknumber = 
    '2123.001'
    Thanks!
    Jennifer

    Sounds like this to me
    select CASE WHEN [EndDate+12Mo] < MAX(dt) THEN [EndDate+12Mo] ELSE MAX(dt) END AS YourDateValue
    from
    SELECT [EndDate+12Mo],dt
    from
    select
    [EndDate+12Mo] = DATEADD(year,1,t.EndDate)
    , [TaskEdit] = t.EditTS
    , [ResearchEdit] = (select x.editts from Research x where t.researchid = x.researchid)
    , [DeliverableEdit] = (select max(x.EditTS) from Deliverable x where t.taskid = x.taskid)
    , [RTPEdit] = (select max(x.EditTS) from ResTaskParticipant x where (t.taskid = x.taskid and t.researchid = x.researchid) or (t.researchid = x.researchid and x.TaskID is null) )
    , [RelatedTaskEdit] = (select max(x.EditTS) from Task_Related x where t.taskid = x.Task1ID or t.TaskID = x.Task2ID)
    , [CrosscutEdit] = (select max(x.EditTS) from Task_Crosscut x where t.taskid = x.taskid)
    , [TaskFundingEdit]= (select max(x.EditTS) from TaskFunding x where t.taskID = x.taskID)
    , [ContractFundingEdit]= (select max(x.EditTS) from TaskFunding x inner JOINContractFunding y on x.ContractFundingID = y.ContractFundingID where t.taskID = x.taskID)
    from task t
    where
    t.tasknumber =
    '2123.001'
    )t1
    UNPIVOT(dt FOR cat IN ([TaskEdit]
    , [ResearchEdit]
    , [DeliverableEdit]
    , [RTPEdit]
    , [RelatedTaskEdit]
    , [CrosscutEdit]
    , [TaskFundingEdit]
    , [ContractFundingEdit]))u
    )r
    GROUP BY [EndDate+12Mo]
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to find the RGB Values of a Color for Hyperion

    When customizing your Hyperion forms, we come across situations where we need the exact RGB value of a given color. This article explains a simple technique to find the RGB values using MS Paint and the Calculator applications that come as standard applications with your operating system.
    Here are the steps to find the exact RGB value of a given color.
    1) View your Hyperion form using IE, scroll down until you see the color you want to find the RGB value and press the "Print Screen" button (in your keyboard).
    2) Open MS Paint and click Edit -> Paste or simply Ctrl+V. What you saw in the browser will be copied as a new untitled image.
    3) Select the Color Picker tool and click on an area that has the color you want to match.
    4) Now go to Edit Colors... option and click on the "Define Custom Colors >>" button. The color you picked will be selected on this palette. At the bottom right hand corner you will see the Red, Green and Blue values you need. Note down the R,G,B values (given in decimal).
    5) Now we need to find out the hexa-decimal values that correspond to those decimal values. This is where we use the simple Calculator. Open the Calculator application from Program -> Accessories. Switch to the scientific mode by clicking View ->Scientific.
    6) By default it will be in the decimal number mode. Enter the R value (238 in this example) and click on the Hex radio button. The corresponding hexa-decimal value (EE in this case) will be shown in the dial.
    The selected color in this case has the same value for R, G and B. (In fact, all shades of gray has the same values for R, G and B.) Therefore, the RGB value of the background color that we need is #eeeeee. Repeat step 6 to find out the hex value for the Green and Blue elements, if they are different.
    Tip:
    If you find it difficult to pick a color, zoom the image by pressing Ctrl+PageDown or using View -> Zoom -> Custom... option.

    These tips are to find the RGB color of HFM default row where row is text and text lines in data columns are also visible to business users as Yellow as an input cell. By applying the same RGB color you can apply the same color to your data cells or rows. This post shows how to identify color from any web view-able object.
    Regards,
    Manaf

  • How to find the inserted values in alv

    Hello All,
    How to find the inserted and deleted values in ALV.
    Regards,
    lisa.

    Hi,
    copy the output table before calling set_table_for_first_display and refresh_display
    then in your event call
    CLASS lcl_alv_handler_1100 DEFINITION.                        
      PUBLIC SECTION.
        METHODS:
          handle_data_changed                                      
             FOR EVENT data_changed OF cl_gui_alv_grid
                 IMPORTING er_data_changed,
    ENDCLASS.  
    after this here you can find modified new output table
    then compare the new output table with older one
    aRs

  • How to find the maximum value among four fields in a single record

    Hi Gems...
    I have a record in which there are 4 currency fields.
    Now i would like to know the maximum of these 4 fields.
    I tried with Max functions in which i put all the 4 values...but it is showing error like ") is missing" though it is there.
    Can we insert more than 2 values in Max function?
    Or else is there any other option to find the max value among the 4 values which lies in a single record
    Thanks
    Jiten

    Hi Anil,
    Say suppose i have a single record in which 4 premiums of a particular bond exists.
    for eg:
    Prem1      Prem2        Prem3          Prem4
    129000.00      388000.00   228000.00   14800.00
    Now this is a single record for a particular bond ... now i need to calculate the max value among these 4 premiums.
    How would we proceed to achieve this?
    Regards
    Jiten
    Edited by: Jitendra Yuddandi on Feb 3, 2009 1:04 PM

  • How to find the PREVIOUS value of a non-DB item?

    I want to do a simple thing but found it impossible.
    I want to find the previous value of a non-DB item in a form.
    I tried creating a text item and populating it using PRE-TEXT-ITEM but that does not work.
    WHEN-VALIDATE-ITEM does not work either because WVI fires only after item value has changed.
    Any suggestions will be greatly appreciated.
    Edited by: Channa on Apr 2, 2010 4:34 AM

    Channa wrote:
    I want to do a simple thing but found it impossible.
    I want to find the previous value of a non-DB item in a form.
    I tried creating a text item and populating it using PRE-TEXT-ITEM but that does not work.
    WHEN-VALIDATE-ITEM does not work either because WVI fires only after item value has changed.
    Any suggestions will be greatly appreciated.
    Edited by: Channa on Apr 2, 2010 4:34 AMPlease make it clear what is your requirement then possibly we can provide you a better answer
    You can use Global variables for to store old values also on Post-query populate a value in separate field or Parameter

  • How to find the ascii value in abap

    Hi everyone,
    i  want to get to ascii value of a given character. so wanted to know whether is it possbile to get ascii value of a character in ABAP  or not ?
    if yes let us know the way to find it ...
    thank you.

    Hi,
    Please go through this link below:
    http://www.sap-img.com/abap/how-can-i-get-ascii-value-of-any-letter.htm
    You can also try using FM's:
    CHAR_INT_CONVERSION,
    CHAR_HEX_CONVERSION
    Hope it helps
    Regards
    Mansi

  • How to find the total value of the Production order

    HI ,
    I am developing one report in which , custumer have a req. to show the total value (in Dollar) of all  open production order as well as the past production order ( not DELEvered & teco ) for  the selected plant . for that i need  BAPI or table name .
    Regards
    Satish

    Hi,
    For production order nos. - AUFK or AFKO
    For production order status - JEST & to know the status eg REL etc, refer TJ02
    For costs - COSS & COEP (Pass order nos. to the field OBJNR as OR followed by 12 digit order number)
    Hope the above helps.
    Regards,
    Vivek

  • How to find the memory values while debugging

    Hi Friends,
    In an ABAP program I have exported some values to a memory id. in debug mode where can i see these values. Could any one tell me....Helpful answers would be highly rewarded..!!
    regards,
    Ramineni.

    Hi
    In debugger you need to put the memory Id name and you will be able to see values where you export them.
    regards
    Aditya

  • How do I find the closest value to a constant in an array

    I have an array of floating numbers and I want to find a value in that array that is closest to a floating constant.     For example if I have the array 5.9, 2.8, 3.7, 5.8, 6.9, and if I have the constant 5.4, how would I find the closest value to 5.4 in the array, which in this case would be 5.8. The only approach I can think of is to subtract each value in the array from 5.8 and find the minimum value of an array which would be created from the differences. Is there a better approach?
    Thank you.

    Just be sure to take the absolute value of the difference and your proposed method is fine.

  • Finding the minimum with a for statement

    Ok so Ive got this program and I need to find the minimum value from the 10 values that are entered by a user, my problem is I cant figure out to initialize the variable minNum, Im not sure how to do it with a for loop, if I set it to zero, then zero will always be the minimum, so Im not sure how to make it so it takes the first value as the minimum then compares each value entered after that to see if the value is smaller, and I have to use a for loop for this problem, my professor specified which loop to use, so heres the code:
    import java.util.Scanner;
    public class Exercise52Chapt6
      public static void main(String[] args)
                Scanner scan = new Scanner(System.in);
                  int minNum;  // stores the minimum of 10 numbers
                           int number;  // stores the current input
                           for ( int i = 1; i <= 10; i++ )
                    System.out.print( "Enter an integer > " );
                                   number = scan.nextInt( );
                        if(number < minNum)
                        minNum = number;
              // process results by printing the minimum
              System.out.println( "The minimum is: " + minNum );
    }

    import java.util.Scanner;
    public class Test
      public static void main(String[] args)
                    Scanner scan = new Scanner(System.in);
                        int minNum=0;  // stores the minimum of 10 numbers
                          int number;  // stores the current input
                          for ( int i = 1; i <= 10; i++ )
                            System.out.print( "Enter an integer > " );
                                number = scan.nextInt( );
                                if(i==1){
                                    minNum = number;
                                    continue;
                                if(number < minNum)
                                    minNum = number;
                    // process results by printing the minimum
                    System.out.println( "The minimum is: " + minNum );
    }

Maybe you are looking for

  • Macbook freezing and not working well after Lion installation - thoughts?

    hey guys, i have a late 2007 macbook running OS X Lion 10.7.2.  It was running absolutely great with snow leopard; seriously i loved it, no complaints or major issues.  I recently bought and installed Lion, but now my laptop is not working correct an

  • Package command line app with AIR app

    Forgive me if I seem completely dense, but I've been googling and forum finding and hair pulling all day on this. I wrote a command line application and I call it from my air application.  It all works just fine, but right now the location of the com

  • I can't patch Photoshop CS5

    The Adobe Application Manager says that I have updates for my copy of Photoshop CS5 and Elements 9. But when I run the update it says, "there was an error downloading this update. Please quit and try again later. If I click on the customer support li

  • Correspondence Configuration Issues

    Hi Gurus, I am trying to configure dispute correspondence, however for some reason i am missing some configuration steps which i could not figure out. I am currently using SAP supplied correspondence Action items but i am still getting errors such as

  • IPhone SDK disk image size?

    Hi everyone, thanks in advance for the assistance. I've tried downloading the iPhone SDK about 4 times now (using Safari). Each time, Safari indicates that the download is complete. But when I attempt to mount the disk image, I keep getting an error