MDX Hierarchy Help

Hi,
I want to extarct the hierarchy underneath [LEVEL01, I am writting a following mdx query but it gives my the result of all the nodes under LEVEL01 whereas I want to extract only specific (lets assume A) under [LEVEL01], has anybody worked on extracting hierarchies from mdx.
SELECT
[Measures].MEMBERS ON COLUMNS,
[[0PROFIT_CTR                   UK  BW1].[LEVEL01].MEMBERS ON AXIS(1)
FROM ZCP_CUBE/ZORB_1
SAP VARIABLES [0S_SHIPT] INCLUDING " "
Thanks for the help.
Regards
SS

hi,
try
SELECT
[Measures].MEMBERS ON COLUMNS,
[[0PROFIT_CTR UK BW1]<b>.[A]</b> ON AXIS(1)
FROM ZCP_CUBE/ZORB_1
SAP VARIABLES [0S_SHIPT] INCLUDING " "
transaction mdxtest can help in syntax, by drag the object name,  choose the cube and query name, all available objects -dimensions (incl. 'hierarchies','properties' ), key figures, variables, functions etc

Similar Messages

  • MDX Hierarchy

    Hi ,
    I need one mdx query for below  requirement.
    I have one custom hierarchy which contains two levels as below.
    Country  State
    A  ab
    B bc
    C ab
    In above example we have ab States  in two countries like A and C .
    when I filter data with the A, ab i am getting output A, ab ,other ab state in C . but I need output A,ab(because i am passing A,ab only).I have only Names,keys not there.
    I tried with below query,i am not getting exact output.
    SELECT { 
    }on columns,
    FILTER([Product].[Product Categories].Members, [Product].[Product Categories].CurrentMember.Name = "A"
    or [Product].[Product Categories].CurrentMember.Name = "ab"
    ON ROWS
    FROM [Adventure Works]
    Coul you please help me.
    indu

    I tried with "AND",but it is not returning any thing.
    SELECT { 
    }on columns,
    FILTER([Product].[Product Categories].Members, [Product].[Product Categories].CurrentMember.Name = "A"
            AND [Product].[Product Categories].CurrentMember.Name
    = "ab"
    ON ROWS
    FROM [Adventure Works]
    Note:that Hierarchy is self referenced hierachy.
    Could you please give me exact solution.
    indu

  • Dimension Hierarchy Help

    Guys,
    We have a product hierarchy that goes like this:
    Division, department, category, sub category, range, line, option
    We have a logical dimension table that has 2 sources. One source table only goes down to the category level and the other contains the whole hierarchy. What we would like it to do is use the summary table until you go below category level. This sodesn't seem to happen. We have checked the log and if you extract Division in answers OBIEE still queries the detail table.
    We have tried making the summary table the number one source but it doesn't help. It only works when you extract Division with Fact information.
    This is causing us an issue with prompts which are taking too long as they are querying the detail table.
    Does anybosy know how we can force OBI to use the summary table at the top levels?
    (We have also looked in to forcing OBI to always use the summary table at certain levels but this doesn't work. The summary table links on a category code and the detail table links on a option code. If detailed fact tables tried to join to the summary table it wouldn't work.)
    Thanks in advance,
    Jim.

    Jim,
    Can you create an Alias of the product category table in the physical layer, perform joins as usual.
    Now add this as an additional source to your existing logical table, but don't associate this logical table source with ANY levels.
    The newly added logical table source must be your 1st source within your logical table.
    Now check your SQL related to prompt containing all the levels above category.
    neilwelling,
    If your issue is same as Jim, give it a try.
    let me know if this was helpful.
    P.S don't forget to "relaod server metadata" & clear your cache for appropriate results.
    -bifacts
    http://www.obinotes.com
    Edited by: bifacts on Oct 29, 2010 11:04 AM
    Edited by: bifacts on Oct 29, 2010 11:06 AM

  • MDX formula help

    The formula below works just fine but I want to use a UDA driven member in Member Range and need help.
    IIF(
    Count(
    Intersect(
    {MemberRange( [Jan],[Apr] )},
    {[Time].CurrentMember}
    ) = 1, [Actual], [Forecast])
    I tried with
    IIF(
    Count(
    Intersect(
    {MemberRange( [Jan],UDA([Period],"CurrMonth") )},
    {[Time].CurrentMember}
    ) = 1, [Actual], [Forecast])
    but I get an error Error(1260052) - Syntax error in input MDX query on line 4 at token ')' CalcMbr
    not sure why is this not working - I think UDA() can result in a set but member range is expecting a member only??
    Please suggest any ideas to correct the code.

    also tried with {[Jan]:UDA([Period],"CurrMonth")}
    instead of {MemberRange( [Jan],UDA([Period],"CurrMonth") )} - but no luck
    Any suggestions?

  • Need HRMS Hierarchy Help

    Hi Community,
    I have Vision Database and I need Help regarding HRMS Hierarchy.
    I am trying to fetch HRMS Hierarchy by front end and also by back end,
    but i couldn't able to find it.
    So please if any one know then help me.
    Thanks and Regards,
    Vishal Waghole

    Check these -
    Re: Organization hierarchy Report
    Re: I need to get the organization Hierarchies
    urgent...on organization and their hierarchies.
    Re: Help with hierarchical query
    https://forums.oracle.com/thread/search.jspa?peopleEnabled=true&userID=&containerType=&container=&q=organization+hierarc…
    Cheers,
    Vignesh

  • MDX Logic Help Needed

    I have a requirement where I am tracking movement of data from one member of a dimension (ie; "CostCenter", which is the Entity dimension) to another member of the same dimension.
    I accomplish this by using a second dimension as the recipient (ie; "Customer"). The Customer dimension has a property (ie; "CustCC") which indicates which CostCenter member it relates to.
    The (abbreviated) dimensionality looks something like this:
    account,category,timeid,costcenter,customer,CustCC,SignedData
    715000,BUDGET,20090000,CostCenter1,Customer1,CostCenter2,NH702,100.00
    In this example, the one value is not a dimension is "CustCC".
    The requirement is to be able to "get" the value where the "CostCenter" AND the "CustCC" are both descendants of the current view "CostCenter".
    I would greatly appreciate suggestions as to hoew to accomplish this.
    Regards,
    Craig

    No worries about asking lots of questions. Help is appreciated.
    - The account value that you are building; is this from multiple accounts at the required intersection? It will be the value of a single account.
    - Can you build a report that gets the same data? I am not sure how to do that is the result will differ depending on the CostCenter parent selected.
    -Will this run in script logic as part of default logic? I believe a calculated member will work if I can figure out how to do it.
    -Does the Customer dim CostCenter property relate to the parent costcenter?it is a value that represents "another"(clould be any) base level costcenter member.
    So the calculation is going to be dynamic depending on which CostCenter parent is selected. For example, I want to show the value of another account (a single account) for the descendants of the current CostCenter member WHERE the Customer.CostCenter values are also descendants of the current CostCenter member.
    I want to say give me a specific account (ie; [Account].[Chargesin]) and the Sum of the Descendants of the current CostCenter member ONLY when the Customer.CostCenter value is also a Descendant of the current CostCenter member.
    Let me know if that helps. Thanks! Craig

  • MDX - query help req

    hi,
    could u explain  about MDX statement with where conditons.
    the sample code requirment as follows :
    append_mdx 'SELECT'.
    append_mdx '{ Measures.[/AGS/CT_LUAVA] ,'.
    append_mdx 'Measures.[/AGS/CT_LUREC] ,'.
    append_mdx 'Measures.[/AGS/CT_LUDIS] }'.
    append_mdx 'ON COLUMNS,'.
    append_mdx 'NON EMPTY [/AGS/CT_PRTID].MEMBERS ON ROWS'.
    append_mdx 'FROM $/AGS/CT_M20'
    regards
    Giri

    f

  • MDX query -- Help

    I need some help on acheving Average value for a key Figure ([Measures].[3M1DTA8FO1HVYVOI6HUABEXHX]) from Cube XYZ. The cube has data for past 11 months and my result should be Month1Month2....Monthn/n
    Please help me..

    Got it...
    Maybe this will help someone...
    WITH MEMBER [Measures].[Average1 ] AS
              'Avg(YTD([0CALMONTH].[[200511]]),[Measures].[3M1DTA8FO1HVYVOI6HUABEXHX])'
    SELECT {[Measures].[Average1] } ON COLUMNS
    from CFS_PERF/XXXXXXX
    WHERE [COMP_AREA].[[11]]

  • MDX query Help - filtering Measures based on values in a dimension.

    Hi,
    I want to get values of a aggregate measure filtered by value available in Dimension attribute.
    Details:
    We have a Measure called "Average Compliance" which provides an average value over certain dimensions. Now I have some target values available for different attributes.
    Fact Table (there are bunch of other columns in the fact table)
    Id
    TargetId
    InstanceId
    LocationId
    Compliance
    1
    1
    1
    1
    0
    2
    1
    1
    2
    1
    3
    2
    1
    1
    1
    4
    2
    2
    1
    0
    5
    2
    1
    1
    1
    6
    2
    1
    1
    1
    Dimension
    TargetId
    Target Average Compliance
    1
    90
    2
    70
    3
    92
    4
    40
    Now I want to get a query where I can get the "Average Compliance" which is higher then the target average compliance.
    Is this achievable?
    Thanks in advance.

    HI,
    I did give this a try. (replacing the date dimensions.)
    WITH MEMBERMEASURES.mycalc AS
    [Dim Measure].[Target].
    CURRENTMEMBER.MEMBER_KEY
    SELECT
    {[Measures].[Average Compliance],MEASURES.mycalc}
    ON0
    FILTER([Dim Measure].[Target].[Target]
    ,([Measures].[Average Compliance] * 100) <
    --80
    CINT([Dim Measure].[Target].
    CURRENTMEMBER.MEMBER_KEY)
    )*[Dim Measure].[Measure Uri].[Measure Uri]
    ON1
    I am still seeing values for average compliance which are more than the target (I even tried setting the value to be hardcoded to 80 and I still see average compliance of 100
    Thanks

  • Workflow Approval Hierarchy Help

    Dear All,
    I'm new to Workflow Development. Please guide me to create following Requirement.
    Two level approvals & application user notification.
    eg -User 1 will create a Move order transaction. After he creates it should be notified to user2 for approvals, also user1 can be able to select the apps user from a list.
    Then it wants to be populating in user2's front page notification area. In that notification he should be able to Approve, Reject or Reassign to a higher person than him (user3).
    Then the user3 can be able to approve or Reject.
    In all the situation notifications have to be send in reverse order, means user2 decision will be send to user1 & user3's decision will be send touser2 and user1.
    Please guide me on this.
    Thanks

    Hi,
    1. Create a notification activity and set the performer as the item attribute say 'RECPIENT'
    2. When User 1 creates a Move order transaction, set the item attribute 'RECPIENT' as user2 so that user2 will receive email notification
    3. when user2 reassigns the notification to user3 it will go directly to user3 worklist, he can approve/reject notification
    4. You can send notification to only recipient who can approve/reject/reassign notification, if you want to send notifications in reverse order you need to define a FYI notification

  • Challenge for MDX Experts: help me fix my MDX statement

    How do you select based on a wild card (*).
    How do i fix my following select statement where the line is <b>[ZSOFUND] INCLUDING "*2004D"</b>
    SELECT
    [Measures].MEMBERS ON AXIS(0) ,
    NON EMPTY [0FUNDS_CTR__0BUS_AREA].MEMBERS ON AXIS(1)
    FROM [xxxxxxxxx]
    SAP VARIABLES [ZCENTER] EXCLUDING "01"
    [ZSOFUND] INCLUDING "*2004D"
    [0S_FYEAR] INCLUDING "2004":"2005"
    [ZUPNFUN] INCLUDING "103"
    [ZUPNFUN] INCLUDING "104"
    Message was edited by: Prakash  Singh

    HI,
    see the coding in bold as well
    You need to declare the line type for appending
    DATA : ra_ekorg TYPE ty_ra_ekorg,
    TYPES:  ty_ra_ekorg  TYPE RANGE OF ekorg,  "Type range for Pur Org
    PERFORM f_authchk_ekorg  USING s_ekorg[]
                            CHANGING ra_ekorg[].
    FORM f_authchk_ekorg  USING    fp_s_ekorg    TYPE ty_ra_ekorg
                          CHANGING fp_ra_ekorg   TYPE ty_ra_ekorg.
    <b>*Local types
      TYPES: BEGIN OF l_ty_ekorg,
             ekorg TYPE ekorg,
             END OF l_ty_ekorg.
    *Local range
      DATA: l_ra_wa_ekorg LIKE LINE OF fp_ra_ekorg.
    </b>
            l_ra_wa_ekorg-sign = 'I'.
            l_ra_wa_ekorg-option = 'EQ'.
            l_ra_wa_ekorg-low = '102'.
            APPEND l_ra_wa_ekorg TO fp_ra_ekorg.
            CLEAR l_ra_wa_ekorg.
    ENDFORM.  
    hope I am not wrong with your query
    reward if useful
    feel free to post if any doubt
    regards,
    nazeer

  • URGENT Help: Converting JAVA ALE API (9.3)  to MDX API (11.1.1)

    Hi All,
    currnetly I am in the process of converting ALE to MDX API as ALE is no more used
    com.hyperion.ap.IAPMdMember in ALE Api gives the member details like Alias, level, Gen etc
    Equivalent to IAPMdMember , In MDX there are two
    1.com.essbase.api.metadata.IEssMember -> It gives all the member details like Alias, level, Gen etc
    IEssMember metatdata extraction is very slow. need to increase maxport user as Goodwin said.Even then for 10 lakhs metadata it fails at one point or other (Using outline or member selection every thing fails)
    SEVERE: Cannot get members. Essbase Error(1007165): Cannot obtain new member handle.  The maximum number of open member handles for this outline has been reached.  You must save and close the outline to continue
    2. com.essbase.api.dataquery.IEssMdMember - It gives members Name/alias based on Query setting and some properties like readonly etc.
    This IEssMdMember metadata extraction is very fast. Even 10 lakhs data is retrieved ina minute, but I am in need of Alias, level and Gen to frame the metadat as Nodes (or in bean object with same hierarchy)
    can some Java MDX experts help me.Is there any to access member details like geb, level, alias using IEssMdMember? I searched in API i couldnt find any clue. converting IEssMdMember to IEssMember using outline findmember also time consuming and it taking 2 to 3 days to fetch the 10 lakhs record.
    If there is no way to get details , then give me some tips how it can be managed, by cache technology or threading or is there any fastest collection object available

    Add the below DIMENSION properties in MDX query will provide the Gen_Number, level and alias
    DIMENSION PROPERTIES MEMBER_ALIAS ,GEN_NUMBER ,LEVEL_NUMBER,MEMBER_NAME on columns
    Thanks for http://www.network54.com/Forum/58296/

  • How to activate hierarchy in report?

    Hi experts,
    I want to create a report which will have Sales Office.. and my requirement is Sales Office Hierarchy shoud be active.. What are the steps to activate hierarchy in the report?
    Thank you,
    Swati.

    1. why it is necessary to activate the sales hierarchy.. i mean what is its use??
    > hierarchy helps to view the data at various level. Say you have hierarchy for Plant. Then you can see data at each plant level or total at region level or at country level. Same can be with time - date or week or month or year.
    2. Sort withing the hierarchy according to - sorting by Key or by text - name of plant or plant code.
    3. Expand to level - at what level hier should be diplayed. if there are more levels, then at what level inital report output is required.
    4. Position of Lower level nodes - nodes below / above its previous level.
    5. Values of Posted nodes  & Nodes with only lower level nodes - used to display or hide the data at each node level
    regards: gaurave

  • Product Category Hierarchy - SRM

    I have doubts on Product Category hierarchy....
    1) As far as i understand whenever we replicate the material from Backend R/3 there is a product hiearachy created and assigned automatically. However, we also have the option of creating local hiearachies.
    So, what i did was for the same product category i assigned two hierarchies. One the standard R3MATCLASS and other which i created manually in SRM. Then i assigned the two hierarchies while creating the material manually in SRM. However, i am not able to get the significance of this? Why has SAP provided this provision of having multiple hieararchies?
    2) I read from the help portal in SAP that Product Hierarchy helps in determining the source of supply. I am not able to understand how that is possible. I have searched for documentation all around but could not find any?
    3) In one of the forums i saw that one consultant activated the product hiearachy, then to his surprise the automatic sourcing configuration which he had done has not worked due to activation of hierarchies
    Has anyone worked indepth in this field. Any inputs is greatly welcome as i am doing some indepth work on this
    Thank You
    Abhinandan

    Hi
    1)
    2) Most of the time, We create multiple hierarchy levels in case of Extended Classic Scenario (ECS).
    3) Might be due to some bug (some OSS note is missing here).
    <b>Please go through the links as well -></b>
    http://help.sap.com/saphelp_srm50/helpdata/en/02/faeb38d391aa6ce10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/55/4af548688211d4977e0004ac962ee6/frameset.htm
    Note 519794 - EBP: Replication of materials with purchasing view
    Note 720819 - Middleware consumer entry for SRM 40 and 50 in the OLTP-syst
    Note 902814 - Dump during product category download
    http://help.sap.com/saphelp_srm50/helpdata/en/43/2022b83fbc2be8e10000000a11466f/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/3a/d6ad4240adb111e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/42/151D4193BB73ADE10000000A114B54/content.htm
    http://searchsap.techtarget.com/tip/0,289483,sid21_gci1245134,00.html
    http://www.infosys.com/industries/electronics_hightech/ViewPoint_Order_Management.pdf
    http://help.sap.com/saphelp_srm50/helpdata/en/c5/13e53c759d4d19a7e20d9d32569abe/frameset.htm
    Regards
    - Atul

  • Problem with mdx statements generated by CR

    Hello Experts,
    we have a problem concerning mdx-statements produced by Crystal Reports.
    We have built a report upon a query with a variable. Now within one Designer, the generated mdx statement looks like this:
    SELECT {[Measures].[4LPEKDIGEPNC4ENQA7Z0TN7MH]} ON COLUMNS FROM [MC_CO2010/C_BO_BSDB_1] SAP VARIABLES [ZKS__MSM] INCLUDING "432140" : "432140"
    Within another installed designer (same version etc.), the statement looks like this:
    SELECT {[Measures].[4LPEKDIGEPNC4ENQA7Z0TN7MH]} ON COLUMNS FROM [MC_CO2010/C_BO_BSDB_1] SAP VARIABLES [ZKS__MSM] INCLUDING [KSTL].[432140] : [KSTL].[432140]
    And only this version shows the data !
    Personally I know only statements like the last one (variable values in brackets). But only the first one (variable values in double quotes) does work. Does anyone know the reason for this ? How can we then achieve that the CR designer produces statements like the first one ?
    Thanks for your help in advance,
    Frank

    We´ve solved the problem:
    I discovered that on the computer that generated the "" statement, only CR2008 with SP3 was installed. Wheresas on the pc that generated the -statement, SAP Integration Kit (SIK) CR2008 SP3 AND SIK CR2008 Fixpack 3 was installed. So I de-installed SIK CR2008 Fixpack 3 and then both machines generated the same statements with the "".
    @Ingo:
    No, both values had been entered manually, so there was no difference in this. As I wrote above, the only differences where the addionally installed FP3.
    Noneheless, the mdx-statement with the "" seems strange to me. Is this something official ? If I take a look at the description for BW-Specific Enhancement for MDX:
    http://help.sap.com/SAPhelp_nw04/helpdata/en/a7/18533d6dd60610e10000000a114084/content.htm
    the seem to be ok and it is also the way I am used to it.

Maybe you are looking for