Esscommand and MDX in 7.x

Can someone please provide an example of how to automatically update a product dimension and load data in Essbase 7.x. In version 6.5, I used Esscommand to do this. My understanding is I need to use MDX with version 7.x. <BR><BR>Here is a sample of the old Esscommand process:<BR>- - - - -<BR>Login "localhost" "xxx" "xxx" ;<BR>Select "xxx" "xxx"<BR><BR>BeginIncBuildDim<BR>IncBuildDim 2 "Products" 3 "C:\file.txt" 4 "E:\essbase\logs\Products.err" 2 N;<BR>EndIncBuildDim 1<BR><BR>Import 3 "E:\billings.txt" 4 "Y" 2 "billngs" "N" "E:\essbase\logs\billngs.err"<BR><BR>CalcDefault;<BR>Logout;<BR>- - - - -<BR><BR>What is the MDX equivalent?

Actually to clarify, MDX is a query language used to pull data from a database. What you are thinking of is the MaxL language. MaxL is the replacement for ESSCMD. Check out the Tech Reference for a list of commands you can use in MaxL. It's not too much different from ESSCMD, so it shouldn't be too difficult if you know ESSCMD.<BR><BR>Here's a link to the Tech Reference: <a target=_blank class=ftalternatingbarlinklarge href="http://dev.hyperion.com/techdocs/essbase/essbase_712/Docs/techref/techref.htm">http://dev.hyperion.com/techdo...s/techref/techref.htm</a><BR><BR><BR>HTH

Similar Messages

  • APD and MDX ..process

    Hello friedns ..
    Need some help .
    could any one please let me know what is diff between APD and MDX technology ?
    which one is better to use and how it is important in BW ..?
    Thanks in advance.

    hi,
    follow this presentation link.... details will be available in page 5 and 6
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/413ba6c1-0d01-0010-1980-ec450e30f23c

  • Getting and MDX Error while refreshing a WEBI Report

    Hi,
    I have a problem in developing/refreshing my Webi Info view report.
    I have my report like this.
    It has 15 dimensions and 3 measures.
    Purpose of the report is to display the purchase order details for a particular state/or all in a Country for a particular year.
    In this scenario my database has two Calendar Years: 2011 and 2012.
    And states (in US) as New York, Rhone Island etc..
    Here comes the typical issue.
    I have developed the report and when i m trying to refresh the report giving 2011 as Year and New York as State for prompts and generating the report.
    Now i m getting the error of MDX query; Below is the error message:
    "Database error: The MDX query SELECT  {  (Measures).[35LYTRYAVWK4BUTF5WL7PC9AR] }  ON COLUMNS , NON EMPTY UNORDER( FILTER( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN(  {  (0PLANT__0REGION).[US NY] } ,  {  (ZIPO_ID__ZCALYEAR).[2011] }  ),  (0PLANT).[LEVEL01].MEMBERS ),  (ZIPO_ID).[LEVEL01].MEMBERS ),  (0PUR_GROUP).[LEVEL01].MEMBERS ),  (ZIVENDOR).[LEVEL01].MEMBERS ),  {  (ZIPO_ID__ZIPRICING).[TIME & MATERIAL] }  ),  {  (ZIPO_ID__ZISEGMNT).[ELECTRIC],  (ZIPO_ID__ZISEGMNT).[GAS & ELECTRIC],  (ZIPO_ID__ZISEGMNT).[GAS] }  ), EXCEPT(  {  (ZIPO_ID__ZICLASS).[LEVEL01].MEMBERS } , {  {  (ZIPO_ID__ZICLASS).[STOCK] }  } ) ),  (0CONTRSTART).[LEVEL01].MEMBERS ),  (0CONTREND).[LEVEL01].MEMBERS ),  (ZIPO_ID__0ENTRY_DATE).[LEVEL01].MEMBERS ),  (ZIPO_ID__ZIPOAPDAT).[LEVEL01].MEMBERS ),   (Measures).[35LYTRYAVWK4BUTF5WL7PC9AR] > 100000) )  DIMENSION PROPERTIES MEMBER_NAME, MEMBER_CAPTION,  (0CONTREND).[20CONTREND],  (0CONTRSTART).[20CONTRSTART],  (ZIPO_ID).[2ZIPO_ID],  (ZIPO_ID__ZIPRICING).[1ZIPO_ID__ZIPRICING],  (ZIPO_ID__ZIPRICING).[2ZIPO_ID__ZIPRICING],  (ZIVENDOR).[20NAME],  (ZIVENDOR).[2ZIVENDOR] ON ROWS FROM  (ZSC_MPDTD/ZSC_MPDTD_QU0099)  failed to execute with the error Please enter a valid value for characteristic 0PLANT__0REGION.. (IES 10901) (WIS 10901)"
    This error is coming only when i m selecting 2011 and New York as prompt values.
    When i m selecting any other value combinations, i dont get any error.
    I m not sure why this error is coming.
    Actually to say there is no data for the combination 2011 and New York. So ideally it has to display "No Data to Retrieve".
    But this is not the case with these conditions.
    Please suggset.
    Thanks,
    Prasad.

    check the statement in transactions MDXTEST,
    check [US NY] in 0REGION as the stament is using (0PLANT__0REGION).[US NY]

  • Cannot connect to BW query and MDX error

    i have few issue encountered on webi connected to SAP BI 7 and BW 3.x
    SAPBI7
    1)while select the cube/multiprovider on universe connection, i cannot see all the query availbale at BW, only show some query. but i can see all cube/multiprovider. whey?
    2)i hit database error when generate webi report from BI7.0 the error msg is "A database error occured the database text is : The MDX Querry SELECT {.....". it working fine when connect to BW 3.x.
    SAPBW 3.x
    1) i cannot see query from univese connection when connect BW 3.x, only can see cube/multiprovider. i using java connect
    SAP Java Connector 2.1.8 , SAP edge 3.1
    Please help .. thanks

    Hi,
    1)while select the cube/multiprovider on universe connection, i cannot see all the query availbale at BW, only show some query. but i can see all cube/multiprovider. whey?
    >> BW queries need to be released for external access in the Query Designer
    2)i hit database error when generate webi report from BI7.0 the error msg is "A database error occured the database text is : The MDX Querry SELECT {.....". it working fine when connect to BW 3.x.
    >>> Does the actual query that you were using work in transaction RSRT.
    SAPBW 3.x
    1) i cannot see query from univese connection when connect BW 3.x, only can see cube/multiprovider. i using java connect
    SAP Java Connector 2.1.8 , SAP edge 3.1
    >>> see above on item #1.
    Ingo

  • Direct Database Request in MDX and Variable Promt

    Hi
    I am use essbase as data source and for some restriction need use hand made MDX for returning data sets.
    But I need use linked report with cascaded promt.
    Can anybody knows howto work with DDR and MDX ?
    How create link to other report from DDR?
    p.s. I am work in BIEE 11g

    NO!!!!!!!!!!
    You Direst SQL query should contain the url
    ex:
    SELECT COL1,COL2,
    '<a href=http://obiapps:9704/analytics/saw.dll?Go&Path=/Answers&path=%2Fshared%2FAppslink%20Dashboards%2F_portal%2FAppslink%20Dashboards%2FEmployee%20Department=Navigate&P0='+BUSINESS_GROUP_NAME+' target=_new>'+BUSINESS_GROUP_NAME+'</a>
    FROM TABLE
    then go for the column format
    Note: in MS SQL + is for concat, you might have to change based on your db.

  • Accumulated and interannual ssas mdx

    Hello!
    I'm (more than) new in the issue of SSAS and MDX and I have seen several examples for calculating accumulated sounding Chinese to me. In these examples illustrate that the function that could / should be used is PeriodsToDate or Ydt,  but I can not display
    anything (no errors, but the result is NULL). I created several tests calculated members for use in SSRS and excel. These are three of the many tests that have been made ​​without success:
    CREATE MEMBER CURRENTCUBE.[Measures].prueba_acum
    AS sum([Measures].[IMPORTE GASTO],YTD([Dim Tiempo].[Año])),
    FORMAT_STRING = "Standard",
    VISIBLE = 1 ;
    CREATE MEMBER CURRENTCUBE.[Measures].prueba_acum_2
    AS sum([Measures].[IMPORTE GASTO],
    PeriodsToDate(
    [Dim Tiempo].[Año],
    [Dim Tiempo].[Mes].currentmember
    VISIBLE = 1 ;
    CREATE MEMBER CURRENTCUBE.[Measures].prueba_acum_4
    AS SUM([Measures].[IMPORTE GASTO],YTD([TBP5 Dim Tiempo].[Mes].CurrentMember)),
    VISIBLE = 1 ;
    What I need to get with the calculated members are:
    - Accumulated current year: For MARCH month, the total amount from January to March for the selected year.
    - Accumulated last year: For MARCH month, the total total amount from January to March before the selected year.
    - Interannual: For MARCH month, the total amount from the previous MARCH to FEBRUARY of the selected year.
    Any clue will be helpful!
    Thank you!
    (sql server 2012, visual studio 10)

    Hello trinity9,
    As there is no date ” Calender  Month of year” configured in the adventure works I will illustrate using “week of year”  In the example below , you will find a the accumulative amount till a chosen week for each year.
    Accumulated current year:
    WITH
    MEMBER [Measures].[Year to Date Reseller Sales] AS
    Aggregate
    PeriodsToDate
    [Date].[calendar Weeks].[calendar Year]
    ,Exists
    Exists
    [Date].[calendar Weeks].[calendar Week]
    ,[Date].[calendar Week of Year].&[27]
    ,[Date].[calendar].CurrentMember
    ).Item(0)
    ,[Measures].[Reseller Sales Amount]
    SELECT
    [Measures].[Reseller Sales Amount]
    ,[Measures].[Year to Date Reseller Sales]
    } ON COLUMNS
    ,{[Date].[calendar Year].[calendar Year].MEMBERS} ON ROWS
    FROM [Adventure Works];
    Accumulated last year:  take  [Date].[calendar].CurrentMember.PrevMember
     instead
    Interannual: You have to sum two PeriodsToDate calculations
    Philip,

  • Sharing complex substitution variable values between ASO and BSO databases

    We have ASO and BSO Essbase database member names with spaces in, and need to store some of these member names in substitution variables. However, this has to be done differently for ASO and BSO, due to calc script syntax requiring double quotes and MDX requiring square brackets. For example:
    ASO:
    &CurWeek value = Week 1
    MDX: [&CurWeek]
    BSO:
    &CurWeek value = "Week 1"
    Calc Script: &CurWeek
    As a result, the substitution variables cannot be shared between the ASO and BSO cubes, since the BSO variable value requires double quotes due to the space in the member name.
    Is there a way to get the above to work with both ASO and BSO? Can the double quotes be escaped in calc script syntax? Or can the double quotes be removed in the MDX formula?

    Hi TimG,
    Apologies for such a late reponse to this, genuinely haven't had a spare second to reply until now!
    Yes, I suspect a complex alias name may be the best solution here, and to remove the spaces from the actual member names.
    I was not aware of the latter part at all. My colleague has confirmed as much on this too - DBAG 11.1.2.1 pp117 & 118:
    "Note: If a substitution variable value is numeric or a member name starting with a
    numeral or containing the special characters referred to above is to be used both
    in MDX and non-MDX situations, create two substitution variables, one without
    the value enclosed in quotation marks and one with the value in quotation marks."
    "To ensure that a new substitution variable value is available in formulas, partition definitions,
    and security filters, stop and restart the application. All other uses of substitution variables are
    dynamically resolved when used."
    This last paragraph is the most concerning since we were planning to be able to update substitution variables values and then access the new values from calc scripts and formulae instantaneously. This quirk is unexpected and a little inconvenient. We may have to look at scheduling a change of substitution variable value overnight, followed by a stop/start of the app ready for the next day, and to work around needing to access changed values instantly.

  • How to find all the Master data extract structures and Extractors

    I intend to create Master data dimensions closely similar to SAP BI in a 3rd party system. I would like to use SAP's standard extractors for populating the master data structures in SAP BI and then use a proprietary technology to create similar structures in a 3rd party database.
    Question: How to get a complete list of all Master data extract structures and corresponding extractors?
    Example: In ECC if I do SE80 and give 'Package' and 'MDX' and then press the 'display' spectacles, I get a list of structures and views under "dictionary objects" covering Material, Customer, Vendor, Plant Texts and attributes.
    How do I get the remainder of the Master data extract structures viz. Purchase Info Records, Address, Org Unit etc?
    Regards
    Sasanka

    Hi,
    try the table ROOSOURCE and search the data source with string in astrick attr  for master data and for text with text
    This will give you the list of all the master data source in the system and it contains a column which tells about the extract structure and function module used by each.
    Thanks
    Ajeet

  • Unexpected syntax error executing MDX sentence with a "LIKE" predicate

    Hello,
    I am executing the next MDX sentence correctly on a SAPBW server
    SELECT NON EMPTY
              FILTER (
                   [0VENDOR].[LEVEL01].MEMBERS ,
                   [0VENDOR].CURRENTMEMBER.PROPERTIES("MEMBER_CAPTION") LIKE "V01*"
         DIMENSION PROPERTIES [0VENDOR].[20ADDR_NUMBR], [0VENDOR].[20CITY_2] ON ROWS,
         {[Measures].[0NUMDAY], [Measures].[0RSPL_FCPER]}  ON COLUMNS
    FROM [$MY_CUBE]
    The MDX is working OK and returning all members that their caption start by "V01".
    The problem appears when I execute the query in another SAP server. This new server is returning the next syntax error.
    Syntax error: Syntax Error : ....CURRENTMEMBER.PROPERTIES("MEMBE, row 113, item: 113
    I was searching about SAP and MDX, LIKE operator, the syntax error... but I did not find any interesting.
    Why this query could fail in a certain SAP server but work OK in another?
    I tried to change the FILTER condition with a "=" operator and it works OK, but I need the "LIKE" one.
    Thanks in advanced.

    Thanks for your response.
    The MDX query works OK at SAP 7.0SP1, but it does not work at SAP 7.3.1SPS5.
    Yes, all attributes are the same and exists, and query was tested also with MDXTEST transaction. At this transaction, the error was the same "Syntax error: Syntax Error : ....CURRENTMEMBER.PROPERTIES("MEMBE, row 11" ...
    Note that is a parsing error and it happens parsing the left part of the "LIKE" predicate, so I do not think that attributes were important on this, no?

  • OBIEE and ESSBASE federated queries..

    Hello all ,
    I am working on a requirement that requires configuring federated queries using OBIEE and Essbase as an aggregation layer. I am able to configure everything except for one dimension where this dimension in Essbase uses shared members. Any help /guidance is greatly appreciated.
    Thanks
    Sunil

    Thanks for the response. I did go further from that day on the issue. But this is where I currently am stuck.
    The issue is on this:;
    1. Have a Measure in Essbase at a Grain higher than then OBIEE grain for a dimension and I need to create a report which calculated based on both the essbae measure and the OBIEE measure.
    I have to create a report which would take the Essbase Measure, Divide by the OBIEE measure and display the value (Note: This OBIEE measure and the grain is only available at the OBIEE layer)
    Ex:
    Essbase Info:
    D1 D2 Amount
    x y 200
    OBIEE Info:
    D1 D2 D3 Percentage
    x y z1 30
    x y z2 70
    Desired Output
    Is
    D1 D2 D3 New Amount
    x y z1 60
    x y z2 140
    The behavior I am noticing is , since D3 has no relationship to Essbase Measure, the report results with a null for the Essbase Measure (Amount in this case). I understand this is natural but am not able to figure out any other means to address this requirement. I am exploring using EVALUATE and MDX, but am not sure, if I would be able to get the desired output.
    Thanks
    Sunil

  • Getting MDX Error.

    Hello Experts.
    I have created a query on GL. and made it externally visible to send the data into PCM. Now when i check in PCM Data bridge it is giving an error. its giving me and mdx error which says "Invalid MDX command with )". I have checked in MDX test in BW it is giving the same error.
    SELECT {[Measures].[4MOXVHUAY8XIP927RDRX7KKK2]} ON COLUMNS,
    NON EMPTY CrossJoin
    Descendants ([0GL_ACCOUNT].[All]),
    CrossJoin
    {[ZFISCPER4].[All]},
    {[ZRESBCENT].[All]}
    DIMENSION PROPERTIES MEMBER_NAME
    ON ROWS
    From [ZIC_GLPC1/ZREP_CUBE_MGL_DMAT]  
    Kindly help

    Hi,
    May help you:----
    Error While working with 2 hierarchy
    http://help.sap.com/saphelp_nw70/helpdata/en/ba/12533d6dd60610e10000000a114084/content.htm
    /people/reuben.cox/blog/2009/10/16/extracting-voyager-mdx-queries
    REgards,
    Suman

  • MDX query with a DMX query

    Hi All,
    Do I have a way to run a MDX query with a DMX query? (Avoiding the “link server” options… )
    I need to get the cube last update date like this DMX query:
    SELECT 1
    as CubeStatus
    FROM $System.MDSCHEMA_CUBES
    where 
    format(LAST_DATA_UPDATE,
    'dd/MM/yyyy') = format(now(),
    'dd/MM/yyyy')  --"1" means that the cube was processed, NULL cube did not process today
    and cube_source = 1
    and cross reference it to a result I get from this MDX query:
    with
    member measures.LastDateCube
    as [Comm Date UTC].[Date].currentmember.PROPERTIES("KEY")
    select measures.LastDateCube
    on 0 from comms
    the purpose of this is to know for sure that my current member (date integer) is equal to the cube last update date. thus, making sure the cube was processed and I get the correct member I expect.
    What do you think?
    Thank you
    Yoni.

    Hi yonibiel,
    According to your description, you want to combine a DMX query with a MDX query. Right?
    In SQL Server, it is not supported to parse the MDX query without connecting the SSAS database server. So if you want to combine the DMX and MDX query into one dataset, the only way is using linked server to SSAS in openquery() function.
    In this scenario, if you render these data from two result sets for reporting purpose, I assume you using SSRS, you can create two datasets and use lookup() to combine data fields from two datasets into one data region.
    Reference:
    Joining the results of two MDX queries together
    Best Regards,
    Simon Hou
    TechNet Community Support

  • How to convert MDX query to SQL

    Hi everyone,
    can you please suggest me, how to convert the below mdx query to sql query. can you please tell me what it is doing?
    CREATE MEMBER CURRENTCUBE.[Measures].[calculation]
     AS IIF(([Measures].[Clear Call Count],[Trouble Code].[Is Battery].&[Battery T-Code],[Service Provider].[Is Towmark].&[Towmark],[Provider Technician].[Is Towmark].&[Towmark]) = 0, NULL,
    ([Measures].[ Total Shipped],[Service Provider].[Is Towmark].&[Towmark],[Provider Technician].[Is Towmark].&[Towmark])/
    ([Measures].[Clear Call Count],[Trouble Code].[Is Battery].&[Battery T-Code],[Service Provider].[Is Towmark].&[Towmark],[Provider Technician].[Is Towmark].&[Towmark])),
    FORMAT_STRING = "Percent",
    VISIBLE = 1 ,  ASSOCIATED_MEASURE_GROUP = 'Sale'; 
    Thanks
    Vishu

    Hi Vishu,
    As Olaf said, this is a calculated member which used in MDX script in your cube, we cannot execute it in SQL Server Management Studio directly. Here are some document about calculated members and MDX script for your reference.
    Defining Calculated Members
    MDX Scripting Fundamentals (Analysis Services)
    Regards,
    Charlie Liao
    TechNet Community Support

  • MDX query on Tabular Model

    Hi,
    I am very new to SSAS Tabular model and MDX query so I need some help in getting correct query.
    I am trying to build a query against a Tabular Model but not sure how to build the query.
    I have a Db called 'MyClient' in Analysis Services database. This db has Tables like 'Observations','Scan' etc.
    In table I have around 10 to 12 columns like 'Id','ScanId','Title','Date','Impact' etc.. What I am looking for is a MDX query to reterive all the information from Observations table filtered on ScanID? Can someone provide me with a query
    If SQL I could have written Select * from Observations where ScanID='22qwe-adfad-12322-adfsdf'.

    Hello,
    Is "Observation" a fact table or a dimension? In MDX it is not common to query a "detailed list", mostly you query aggregations; but you can query data from a diminsion. Here is an example for the "AdventureWorks" cube with dimension "Customers":
    SELECT {} ON 0
    { [Customer].[Customer].[Customer]
    * [Customer].[Gender].[Gender]
    * [Customer].[Marital Status].[Marital Status] } ON 1
    FROM $Customer
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Disctinct count supported in MDX?

    I would like to know whether Distinct count supported in MDX statements.
    I tried below MDX statement. But it just perform Count() function.
    <EXPRESSION>COUNT(DISTINCT([0MATERIAL].[LEVEL01].MEMBERS),ExcludeEmpty)</EXPRESSION>

    Hi,
    If you are creating Custom Objects in an OLAP universe (using XML and MDX) then there is a formula editor with a expression wizard .
    This will tell you which MDX functions you can use against SAP BW / BEX
    For example, here is a list of MDX functions you can use with MS Analysis Services : http://msdn.microsoft.com/en-us/library/ms145970.aspx
    this will be different from those available for BW, mainly due to internal limitations in the MDXInterface
    Regards,
    H

Maybe you are looking for