Running MDX Query in BEX

I've a question regarding MDX Query .
1.Can we run MDX Query in BEx.
2.If yes , then can you please tell me how and where can we run MDX Query in BEx.
Regards,
-Neha

Hello,
BEx does not support MDX. You can use MDXTEST transaction to generate the MDX select statements against queries or infocubes but it cannot be used with BEx.
Thanks,
Michael

Similar Messages

  • Iam Facing an error whenever i run a query in Bex Analyzer

    Hi All,
    Whenever i run the query in bex Analyzer iam facing an error as
      *Error reading the data of infoprovider*
      *Error in BW :error creating Index*
      *Enter an rfc destination*
    *The following error occured during parallel processing of query 67.*  Please anyone help me on this.
    Thanks & Regards
    Sameer Khan

    Hi Sameer,
    There could be several reasons for this error. Based on the first message you got
    *Error reading the data of infoprovider*
    Please check that you have the requisite authorizations to execute queries on this infoprovider
    Naresh

  • Running MDX query in oracle

    How do i run a mdx query in oracle. Do i need to install any extra component.
    I used the following query and i get an illegal symbol error...
    SELECT
    { [Measures].[sales] } on columns,
    {  [Date].[1998],[Date].[1999] } on rows
    From units_history_fact

    MDX is not supported by Oracle. If the given database uses Oracle OLAP then you can use the simba connector: http://www.simba.com/connectors/mdx-for-oracle-olap.

  • Run mdx query in batch

    Hi,
    I am using BW MDX Driver to report off SAP BW data. Sometimes the returned data may be too much according to user selection. My question is, is there any way to run the MDX query in batch, so that the data is not returned all at once?
    For opensql or infoset driver, we can configure the query to run in batch by adding some system environment variables. But for MDX, I have no idea now.
    Thanks,
    Ray

    Hi,
    Are you including the parameter that you must have created in Crystal Reports in the Select Expert. You need to include the parameter within the record selection or group selection formula of the Select Expert, as may be applicable. Only then the values returned by the database would be in accordance to the input by the user.
    For instance, let us assume that you have created the Country parameter in Crystal Reports. In order to return data as per input fed within the County parameter during Report Refresh, the formula in Select Expert would be somewhat like :
    {Customer.Country} = {?Country}
    Please do this preliminary check before thinking of using Open SQL or InfoSet driver instead of the MDX driver or feeding the environment variables through batch processing.
    Regards,
    Amogh.

  • Continue run MDX Query

    I want to execute a query which can continue run till 2 minutes .
    For Example- If I run below query, that should be run for 2 minutes with completion or Fail
    SELECT [Date].[Calendar Year].FirstChild on 0
    FROM [Adventure Works];
    Please Help
    -Ashish

    Hi David,
    This query hardly takes 2 second to complete. But I want that this should be continued  until it completes 2 minutes. Means - session of this query continue till 2 minutes instead it gets complete.
    Hi Ashishsingh,
    As Olaf said, we can use SQL. However, based on my research it seems there is no such a functionally to workaround this in MDX currently. If you have any concern about this behavior, you can submit a feedback at
    http://connect.microsoft.com/SQLServer/Feedback and hope it is resolved in the next release of service pack or product. Your feedback enables Microsoft to make software and services the best that
    they can be, Microsoft might consider to add this feature in the following release after official confirmation.
    Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

  • MS SQL database needs to run mdx query to analysis services to retrieve data from a BPC 10 Netweaver cube(view only)

    We are in the process of migrating from BPC7 SP12 Microsoft sql server to BPC10 netweaver on a sql server with BW7.4 and need to integrate our home grown data warehouse which is on a Microsoft sql server.  The data warehouse currently connects to BPC7 using integration services/analysis services and runs mdx queries to analysis services to retrieve data from the BPC7 cube (view only).  Please provide documentation on how to create this same integration with our data warehouse using BPC10 netweaver on a sql server.

    When you were setting up your ODBC data source for
    the Text driver, did you click on the "Options"
    button? There's a lot of options in there that I
    didn't understand at first glance.Yes I clicked on the options button, but the only thing there is dealing with file extensions. I left it set to the default.
    I have since tried closing my connection after I insert a record, I then try executeQuery, but still no luck. Seems strange that I can write to the file but not read from it. If any thing I'd expect the opposite problem.
    I have also tried using the class "JoltReport" from the sun tutorial instead of my own with the same result.
    Message was edited by:
    Hentay

  • Long running MDX-query

    Table [Summary Requests] (count: 102 131):
    Id Int primary key
    RequesterFullNameId Int
    Dimesion [Dm Requester Full Names] (count: 50 124):
    Id Int primary key
    Title VARCHAR(1000)
    Dimesion [Dm Date] (count: 1 306):
    FullDate DateTime первичный ключ
    Year Int
    1) Query execution lasts
    5 seconds. Is it normal or not?
    2) Аre there ways to reduce the query execution time?
    Query example:
    with
    member [Measures].[XtraPivotGrid 1505778211 Sort] as '[Dm Date].[Year].currentmember.member_value'
    member [Measures].[XtraPivotGrid 1025407302 Sort] as '[Measures].[Summary Requests Count]'
    select
    non empty { { [Dm Date].[Year].[All], { order({{[Dm Date].[Year].[Year].members}}, [Measures].[XtraPivotGrid 1505778211 Sort], asc)} }  * { [Measures].[Summary Requests Count]}} dimension properties MEMBER_UNIQUE_NAME,MEMBER_TYPE,MEMBER_VALUE  on
    columns,
    non empty { [Dm Requester Full Names].[Title].[All], { order({{[Dm Requester Full Names].[Title].[Title].members}}, [Measures].[XtraPivotGrid 1025407302 Sort], desc)} }
    dimension properties MEMBER_UNIQUE_NAME,MEMBER_TYPE,MEMBER_VALUE  on rows
    from [Elicense Reports]
    where
    ( [Is Deleted].[Title].&[Нет] )

    Hi Captainsir,
    According to your description, the query execution lasts  5 seconds before return the results, and you want to know if it is normal or not, right?
    In your query, you used CrossJoin function to join multiple dimensions which might cause the performance issue. If you cross-join medium-sized or large-sized sets (e.g., sets that contain more than 100 items each), you can end up with a result set that contains
    many thousands of items—enough to seriously impair performance. For the detail information, please see:
    http://sqlmag.com/data-access/cross-join-performance
    Here is a blog which describe ways of improving MDX performance and improvements with MDX, please see:
    http://blogs.msdn.com/b/azazr/archive/2008/05/01/ways-of-improving-mdx-performance-and-improvements-with-mdx-in-katmai-sql-2008.aspx
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • CL_RSR_REQUEST eror while running the Query in Bex Analyzer

    Hi All,
    I have created the Query and assigned it to the role by using PFCG and also by Query Designer. when the user executing this query using the Bex Analyzer he is getting this error.
    CL_RSR_REQUEST and Form TEXT_ELEMENTS_GET:Variabl"
    Your input is appreciated
    Thanks in Advance
    Regards

    Hi all,
    I had assigned the query only to the role. when i checked with user id i found error.
    You do not have the authorization for component ZMM_PO_Q1_2
        Message no. BRAIN800
    Diagnosis
         You do not have the authorization for the selected component.
    System response
         The selected component cannot be edited.
    Procedure
         lease speak to the person responsible for authorization, if you
         authorization for the editing of this component. The function is
         protected by the object "Business Explorer - components" with th
         following fields:
             -  InfoCube                ZMM_POD
    Type of a component     REP
    Component               ZMM_PO_Q1_2
    Activity                16
    for this what i have to do .. i had also checked in the su 53 t code.i showing the previous authorization is successfulll..
    regards

  • Error in running query in Bex Analyzer

    Hi All,
    I faced some problem in running the query in Bex Analyzer, when I run
    the query in the Bex Analyzer, there are error messages indicates that
    the query is fail to load. Before that all the query can be run without any problem.
    The details for one of the error msg are as follows:
    <b>Diagnosis
    Variable 0P_MATBK has the processing type "Manual Input/Default Value".
    However, it is not input ready, and no default value has been specified.
    System Response
    Procedure
    Make the variable input ready or specify a default value.
    Procedure for System Administration</b>
    Any1 can help? Thanks.

    Take a look at this link...
    http://help.sap.com/saphelp_nw04/helpdata/en/55/589b3c494d8e15e10000000a114084/content.htm
    For the variable wizard...
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/content.htm
    To make it Ready for Input...
    In the variable properties window, Check "Ready for Input".
    Message was edited by:
            Jerome

  • MDX Query not retuern any data on my production server when i check service it is running

    Hi All,
    MDX Query not return any data  on my production server when i check service it is running. when i restart my service  i can able to run MDX Query and get data in my production server.

    Hi Mnishcal,
    According to your description, there is no data returned before restart Analysis Services, right?
    We haven't experiencing such issue before. And we cannot reproduce this issue. In your scenario, can you reproduce this issue? Here is a post which explains why you might not see the data you expect when browsing a SQL Server Analysis Services cube that
    processed successfully. Please refer to the link below.
    http://social.technet.microsoft.com/wiki/contents/articles/19744.ssas-troubleshooting-data-is-not-visible-when-browsing-a-cube.aspx
    Besides, are there any error on the log file? The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Regards,
    Charlie Liao
    TechNet Community Support

  • Infoset query in BEx analyzer

    Hello,
    we have a query on an infoset based on an infocube and infoobject. When running the query directly in web, the data is shown. When we run the query in BEx, we get "No applicable data found" . Is there some setting we forgot or are there issues with Infosets and BEx?
    Thanks!

    Hello,
    Try to run the query with transaction RSRT2.
    Probably youwill experiencing the same message error.
    Porbably you are using different users, with different roles/authorization.
    Associate SAP_ALL and BI_ALL for the affected user. If works, there is something wrong with the user's roles.
    If the issue remains, open a message to BW-BEX-OT-OLAP component.
    Best regards,
    Edward John

  • Controlling meta data returned by an MDX query

    Hello,
    I'm retrieving results from Analysis Services then processing them further in SQL via OpenQuery. So I have a query of the form "select * from OpenQuery(LinkedServer, '<mdx>')
    The query works fine, but because I have a dimension hierarchy with a seven levels on rows, the result set contains seven columns which I don't need, one column for each level in the hierarchy.
    I can ignore them using the syntax "WITH CTE ([1],[2]...) as (<query>) ...", so this doesn't interfere with functionality.
    However, I'm wondering if there is some syntax in MDX which will prevent those columns from being returned at all. I'm guessing that regardless of whether they are selected in SQL, that data still has to be processed. The performance impact of this isn't
    noticeable on any single query, but it seems like for many queries with many rows it would add up. Is it possible to control the meta data that an MDX result set contains?
    Thank you!

    Hi vercinegetorix,
    When we run MDX query by using OPENQUERY having hierarchy, we will get extra columns describing the values of each hierarchy level in different columns. This behavior is by design and we can't change that.
    In addition, we may concern the attribute unique name a little long. The easiest way to remove them is to use an alias. For detail information, please refer to the article below:
    MDX + T-SQL: Combining relational and multi-dimensional data into one query result set:
    http://sqlblogcasts.com/blogs/drjohn/archive/2008/09/27/mdx-and-sql-combining-relational-and-multi-dimensional-data-into-one-query-result-set.aspx
    If you have any feedback on our support, please click
    here.
    Elvis Long
    TechNet Community Support

  • BEx variables ignored in MDX query

    I am having some issues with Crystal Reports running off a Bex query. In the Bex query I have a variable defined on characteristic posting date. However, even though I select a specific posting date when prompted, records from all posting dates are returned. So I copied the MDX statement and ran it in MDXTEST only to get the same result.
    MDX:
    SELECT NON EMPTY EXCEPT([OPSTNG_DATE].MEMBERS, {[OPSTNG_DATE].[All]}) ON ROWS FROM [EFIGL_M01/QEFIGL_M01_4250] SAP VARIABLES [!V000001] INCLUDING "08/01/2010" : "08/01/2010"
    Anyone ran into a similar problem before? The MDX statement does indicate that I only picked one posting date for SAP VARIABLE

    Hi Ingo,
    Yes this variable is built in the underlying Bex query, and running the query in web analyzer or RSRT shows the correct filtered reesult.
    The variable is created under the Posting Date Characteristic under "Default Values" in the "Filter" tab. Now that you mentioned this, I tried moving the variable to "Characteristic Restrictions" from "Default Values" and I am able to get the correct result! What I don't get now is why the original configuration worked for Bex but not for MDX, but worked for both once moved to "Characteristic Restrictions"?
    Thanks!

  • MDX for a BEx query with a characteristic structure

    Hi,
    I have a BEx query with a characteristic structure in the rows.
    Material     Structure     Measure1
    a-Material     a-Structure     ....
    a-Material     b-Structure     ....
    b-Material     a-Structure     ....
    b-Material     b-Structure     ....
    I am looking to run the query via MDX. Is that possible? If yes, how should be the mdx statement.
    Thank you in advance for your help.
    Regards,
    McGreen

    Hi,
    it will work, so long as you also include the Structure object in the WebI Query panel as a results objects.
    the SELECT syntax is much the same as a 'normal' MDX statement.
    the quickest way to tell them appart is how the Measures are called. normally, it starts:   SELECT [MEASURE.ABC123] NONEMPTY(CROSSJOIN( ...   ) )
    however, when you have a Structure, all the declarations from the start of the statement looks like : SELECT [ABC123.ABC123] NONEMPTY(CROSSJOIN( ...   ) )
    i hope this helps.
    Regards,
    H

  • SAP BW BEx query - WEBi MDX query

    Hi Experts, have we had some discussion on this?
    Does MDX query send by WEBi report to BW use the same program to extract data from BW database?
    One of the option for WEBi report source of data is to build Universe on top of BEx query. Could you share how this process actually happen.
    I think
    - WEBi query will pass parameters that is relevant for BEx query filter of the universe
    - the BEx query will then extract the data (following normal process if we run BEx query independently)
    - if WEBi has further filtering, it will then get the BEx result above and filter it further ..??
    So, how is MDX query come into the picture?
    Or is it:
    - WEBi query and the BEx query will determine what MDX query will be generated, and this MDX query will then fetch the data.
    But why BEx query extract data faster then MDX query?
    Sorry, i am new to this. hope someone could share some light here. In the meantime i continue to real those documentation and try to get some more ideas of what is actually happening.
    Thanks.

    Hi Thanks a lot for pointing this out.
    Did i understand it correctly that BEx query is using a different set of program (platform) to retrieve data compare to MDX query, and not MDX uses those program that is used by BEx to retrieve data from BW database and have extra steps on top of that?
    Can anyone share what is actually happen WEBi MDX query is executed (how the database is hit with SQL, and what are the tools to evaluate the efficiency of the WEBi (or the used BEx). As for BEx we have RSRT to analyze it right.
    And even to test the MDX query using MDXTEST and try to get the data from WEBi report, i found WEBi report still take considerably a lot longer. Why is this so? just because BO is a different system then BW?
    And as it's shared the BO 4.0 is using the same platform as BEx to retrieve data from BW database, does this mean we don't need to care about MDX usage in BW anymore as far as BO data extraction concern?
    Thank you very much.

Maybe you are looking for

  • Video out from new iPod to TV (not photos)

    OK, let's get an answer to this once and for all. Can you play your own video (not purchased music videos or TV shows or iPhotos) on a TV/Monitor using the new iPod? This article http://docs.info.apple.com/article.html?artnum=300224 seems to say no.

  • UTF-8 & UTF-16

    My document was encoded through UTF-16. And whenever I tried to upload that file into my database I am getting the error of java.io.UTFDataFormatException: Invalid UTF8 encoding at java.lang.Throwable.<init>(Compiled Code) at java.lang.Exception.<ini

  • Preview Page Border

    Hello, I need a little help with my .RTF template to populate page border. This topic is limited but I researched Thread: How to display 'page border' in PDF output file - RTF file contains border - which directs you to another Thread. I was not succ

  • Active Standby 6110 Navigator & E65

    Hi, is it possible to show your calendar appointments, number of unread emails, number of unread text messages and to-dos in the active standby on the 6110 navigator, just like you can on the E65 ? Thanks for any help.

  • Do you guys know where to populate the CSS class items on the WYSIWYG Editor as shown below?

    Do you guys know where to populate the CSS class items on the WYSIWYG Editor as shown below? We're trying to make it easily for the client to apply formatting by selecting the CSS Class on the list.