BO XI 3.1 Sp2 OLAP Universe - MDX Function

Hi all,
How i tuse MDX Functions in OLAP Universe ?
Iam getting parse ok in Universe . getting error in while creating webi report

Hi... i´ve seen that this is a typical question but i think it´s still not solved... I need to use the sentence showed but despite using measures using another dimension. I mean i want to create a new dimension which tell me if it has values or not so i want to create another one and use the function IIF and the sentence more or less like that:
IIF(ISEMPTY(.[D7LE0EX5IUP5U83WHERK13M48]), 1, 0)</EXPRESSION> - it works
May i use this sentence with dimension/characteristic values or it only works for measures ? Some idea of how to achieve what i´m looking for ?
Thanks in advance.
SAP BW 7.02 SP06
BO XI 3.1 FP 3.5
J.Casas

Similar Messages

  • OLAP Universe MDX functions

    Hello experts,
    We have a requirement to apply a filter based on report run date in comparison with date objects as follows:
    (Report Run Data - 90 days) < System Completion date < Report Run Date
    Any any one help me how we can implement this in Conditions at OLAP Universe.
    Regards,
    Ravi Kumar Garre

    Hi,
    Here is a document whic lists lost of example.
    OLAP universes best practices
    [http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/c0a45246-ce76-2b10-e688-f5c8206203eb?quicklink=index&overridelayout=true]
    Regards,
    Bashir Awan

  • Create new object (measure) with IIF function on BW Olap universe:mdx error

    hello
    i have a universe based on a BEX query
    i want to create a new object (a measure) with the IIF(,,) function
    i created the following select:
    <EXPRESSION>IIF(@Select(Currency Type\CurrencyTypeCode)="10",@Select(Key Figures\RevenueGlobalCurrency),@Select(Key Figures\RevenueLocalCurrency))</EXPRESSION>
    defined as number
    where
    CurrencyTypeCode is a dimension (character format)
    RevenueGlobalCurrency and RevenueLocalCurrency are measure (number format)
    i always have a parse which is OK but
    when i want to  use the object on a webi report i always have an MDX error : ...invalid MDX with .... (WIS 10901)
    and advise ?
    Thanks

    Hi Didier,
    Thanks a lot for your help.
    Now it works : i do not understand why
    i explain:
    the correct syntaxe of my new measure is :
    <EXPRESSION>([Measures].[4FVLHG7OAJMNY9WC06X6JLOZQ], [0CURTYPE].[10])</EXPRESSION>
    it does not works with my "L01 currency type" BO dimension
    ([0CURTYPE].[LEVEL01])
    when i had :
    -my universe is based on a BW BEX query
    -my universe has been automaticaly generated with the assistant
    -the Currency Type Class was define as below:
           - 1 BO dimension object : L01 Currency Type =>
    [0CURTYPE].[LEVEL01]
           - 3 BO detail objects : L01 Currency Type techName =>
    [0CURTYPE].[LEVEL01].[TECH_NAME]
                                              L01 Currency Type Key =>
    [0CURTYPE].[LEVEL01].[[20CURTYPE]].[Value]
                                             L01 Currency Type Long Name =>
    [0CURTYPE].[LEVEL01].[[40CURTYPE]].[Value]
    i always had a wrong mdx syntax error on the webi report
    i updated the class with the follow
         - 1 BO dimension object : L01 Currency Type =>
    [0CURTYPE].[LEVEL01] (idem)
           - 3 BO detail objects : L01 Currency Type techName =>
    [0CURTYPE].[LEVEL01].[TECH_NAME]  (idem)
                                              L01 Currency Type Key =>
    [0CURTYPE].[LEVEL01].[NAME] (updated)
                                             L01 Currency Type Long Name =>
    [0CURTYPE].[LEVEL01].[DESCRIPTION] (updated)
    then it was working
    Then i tried to reproduce from scratch and now it also works with the previous version of the class.
    I do not understand anything
    Is there something like a cache file of the MDX query (in RSRT, cache mode is set to inactive for the bex query) ?
    ps: this is the same if a use webi under infoview (java) or webi rich client...
    Edited by: Frederic Nez on Jan 19, 2010 6:35 PM
    (edit : there is mistake in the post : objects are always between [] even if it is not dispay => change objects to code mode)

  • Substring @ SAP BO XI3.1 Sp2 OLAP Universe

    Hi any body address solution for below problem
    [GCOSTCTR].[LEVEL01].[[4GCOSTCTR]].[Value] is the object select class and the out put is:0100/10101223 but I need 10101223 while selecting as a promt @ report level.
    Provide me the Mxd statement for this using substr or is there any alternate solution.

    Hi,
    Unfortunately this is not possible with SAP.
    You hit one of the major limitation: calculated expression MUST return NUMERIC values.
    In your case although the result seems to be numeric, SAP interprets it as a string and returns an error.
    According to my knowledge only SAP Exit are valid to achieve such requirements.
    Regards
    Didier

  • What has changed for OLAP Universe in BOXI3.1 SP2

    All,
    I would like to understand what has changed in BOXI3.1 SP2 in comparison with BOXI3.1 base version for OLAP universes.
    We design Universe on top of MSAS 2005 cubes and create webi reports.
    Based on BOXI3.1 SP2 what's new document- the enhancements seem to affect the Universe Designer- providing a developer with more control and options.
    I am interested in learning if the release has any features that improves performance of BO against MSAS cubes.
    Any feedback would be much appreciated.
    Edited by: ramaks on Dec 11, 2009 11:02 PM

    Hi,
    Here is the list of feature we have added in SP2 for OLAP universes:
    <li>Definition and Where editors enabled
    <li>Prompt editor
    <li>MDX dictionary
    <li>New parameters and controls at universe generation time
    <li>Refresh Structure (aka Universe Update or Universe Life Cycle Management)
    <li>Universe SDK enhancements.
    You will find in attachment a PDF that describes the enhancements.
    Regards
    Didier

  • BW OLAP Universe connection error after applying BOE XI3.1 SP2

    Hi,
    We installed BOE XI 3.1 SP2 today on the server, and since then we are not able to execute the WebI reports built on top of BW OLAP universe. The error message is - An error occurred while trying to load the provider for transport sap. Failed to load library mda_sap. System error message.
      The same error message appears when I test the universe connection.
    Has anyone come across this issue? Your help is really apprecaited.
    Our system config is Windows 2003 server, 64 bit, SP2.
    Thanks,
    Ritesh

    Hi Ingo,
      Yes, applying SP2 solved the problem. We reaslized that SAP GUI 710 is prerequiste to run the SP2 setup file.
    Thanks for your help!
    Ritesh

  • How create filter in olap universe with MDX LIKE Function

    Hi all
    I need to create a filter in a olap universe with the LIKE MDX function.
    Problem:
    There is a dimension with account numbers whit 10 digits like this: 5683492703 and i need to create a filter whit all account numbers whit the number 7 in the sixth position in a olap universe.
    How to do this?
    Thanks all

    Try like this :
    <FILTER KEY="[Level Object Definition]">
         <CONDITION OPERATORCONDITION="Like">
              <CONSTANT CAPTION="_____7*"/>
         </CONDITION>
    </FILTER>
    Not sure if it is _ or ? to represent a single character. Try ? in place of _ if the above code doesn't work.
    Regards

  • Can we Implement YTD using MDX syntax in olap universe.

    Hi,
    I am trying to implement YTD prompt from universe level. Can any one suggest how can i implement it using MDX syntax in olap universe.
    Regards,
    Anil Kumar.

    Hi,
    In MDX, you need to generate the technical name to have you expression valid.
    Moreover the correct syntax is: SUM(MTD(member),measure)
    So in your case the prompt must be constrained on the technical name and cannot be free, the correct syntax is:
    <EXPRESSION> SUM(MTD(@Prompt('YYYYMM','A','Cal. year / month\L01 Cal. year / month',mono,primary_key)),
    @(Select(Key Figures\Total Variance)) </EXPRESSION>
    Last, the result will be not really significant because you are asking for a MTD with a Year-Month as time member: the result will be the measure value for the selected month.
    In your case you need to have a time series function for an upper level like YTD or QTD. If you want to use MTD, the the time member selected would be at a lowest level, such as week or day.
    Regards
    Didier

  • MDX OLAP Universe does not allow for a Top 10 rank on measure.

    Hello!
    I am trying to Rank a measure by Top 10 in count on a MDX OLAP universe based on Web Intelligence. The rank works, however for all the zeros in the row values it gives the same rank and keeps on appending. I then tried to rank a measure with the MDX syntax in the SELECT statement of the measure itself. The syntax is as below:
    <EXPRESSION>Rank([0MATERIAL__0MATL_GROUP].[LEVEL01].CurrentMember,
    Order([0MATERIAL__0MATL_GROUP].[LEVEL01].CurrentMember.Level.Members
    @Select(Exp Dem (Published)\Exp Dem (Published)),
    @Prompt(u2018Top orBottomu2019,u2019Nu2019,{u2018DESCu2019,u2019ASCu2019},mono,constrained) ) )</EXPRESSION>
    The XML is parsed because of the tags, however when using this measure in the query panel gives an error message for the prompt. Is there a way to rank a measure by Top 10 in the MDX statement above instead of the prompt for the Top/Bottom. I found the syntax in the OLAP Best practices guide.
    Kindly revert for any possible solution. Any inputs are highly appreciated.
    Thanks in advance!
    Regards,
    Vivek.
    P.S.: I am specifically looking to Rank multiple measures by Top 10 count without displaying zeros / repetetive values.

    Hi Ingo!
    Thank you for responding! I have gone through the OLAP Universe best practices as suggested by the guide. However, the Ranking has an offset of repeating the ranks for same value metrics. So if I need a Top 10 and there are 3 zero values in the column, the ranking extends to Top 13. is there any way to hardcode this as a predefined filter in the Universe on the measure, which states that the rank stays limited to Top 10 irrespective of repeating values?
    Kindly suggest if there is a work around for this!
    Thanks in advance!
    Regards,
    Vivek.

  • Problem in WEBI Report with PCM OLAP Universe (PCM MDX Connector)

    We need to create reports in Web Intelligence from our PCM Models (Business Objects Profitability and Cost Management). We are able to create the olap universe using PCM MDX Connector and we have no problems creating the reports in webi. The problem is when we execute the report (run query): all the data from PCM model is loaded correctly (dimensions, levels, etc.), except the Measures. I mean, the values of all the measures are always zero (0). No matter the way we change the query (adding filters, adding or chopping dimensions, drilling levels, etc.) the value for every measure is zero.
    We've checked the aggretation method of each measure in BO universe designer and are all correctly configured.
    The model in PCM is calculated and even when we run the queries in PCM Model Builder tool directly to the model, the results are retrieved Ok and the measures have correct values (Revenue, lineitem values, etc.).
    Any ideas of what is going on?

    Hi Henry… thanks for your answer…
    The reports we are creating of PCM are not from BW universes, but PCM OLAP Universes. PCM have its own cube OLAP files, and BO universes for those OLAP models use the Business Objects PCM MDX Driver.
    Nevertheless I will try to catch the MDX statement, as you suggest, and see if something is wrong with it.
    The versions we have are: “Business Objects Enterprise 12.3 build 601” and “Business Objects Profitability and Cost Management (PCM) 7.5.11”
    Thanks again.
    Vladimir.

  • SAP BW OLAP Universe performance issue

    Hi,
    Based on BO recommendation, I created a universe on top of a big BEX query which included all characteristics and key figures from a cube. I then created a webi report with 5 characteristics and 1 key figure from this universe. I also create the same report in BEX query designer(same number of objects). I ran both. The Bex query completed under a minute and the webi report took more than 12 minutes to run. I did a bunch of other test with different number of objects combination and saw similar differential in query performance.
    I did a trace using 'sm50' and saw the open SQL submitted to BW from BEx was very different from what got submitted from the webi report. Here is what I saw in pseudo code.
    Bex:
    select dimension1.blah, dimension2.blah, dimension3.blah, dimension..... sum(measure)
    from dimension1, dimension2, dimension3, dimension..... factTable
    where dimension1.SID = factTable.d1SID
    and dimension2.SID = factTable.d2SID
    and ......
    and (query filters)
    OLAP Universe
    select dimension1,blah, dimension1.SID
    from dimension1, factTable
    where dimension1.SID = factTable.d1SID
    select dimension2,blah, dimension2.SID
    from dimension2, factTable
    where dimension2.SID = factTable.d2SID
    select dimension3,blah, dimension3.SID
    from dimension3, factTable
    where dimension3.SID = factTable.d3SID
    It seems the OLAP universe was querying the BW cube one dimension at a time and then somehow piece the result sets together to form the final result set. Dimension tables join to the fact table without any filter definitely causes performance issue. Beside, I have no idea why the query requests are submitted to the BW system like that.
    I looked in varies forums and found no similar issues posted by others. Has anyone had any performance problem with there OLAP universe? Is this a matter of configurations?
    My envrionment:
    SAP BW 3.5
    BOXI 3.0
    ORACLE DB (version ??)

    Hi,
    You cannot compare a BEx query and a universe query by just comparing the trace.
    BEx query makes ABAP calls and universe query makes MDX calls;
    Moreover there is only one MDX call sent to SAP, what you have noticed is that there is one MDX call to retrieve member for a given characteristic whereas a prompt has been set on.
    Last, Web Intelligence consume only flattened data (row sets) wheras BEx consume data sets.
    That means that there is a flattening operation between SAP OLAP engine and the data sent to the Web Intelligence document.
    A fix have been developed for a customer to improve performance on Web Intelligence queries, this fix will be available for all customers in SP2 planned in June 09.
    Here is a a brief summary of what the fix provide:
      -  Provide data directly from SAP server to Web Intelligence document. Avoid unnecessary conversion steps: row set --> data set --> row set
      -  Eliminate redundant sort operations
      -  Other optimization operations
    Didier
    Edited by: Didier Mazoue on Nov 20, 2008 8:38 AM

  • OLAP Universe Filter for Constant

    Hello
    I am trying to create a universe filter. We have a BO OLAP Universe on top of MSAS 2008. We are at  BOXI 3.1 SP2/FP2.2
    <FILTER KEY="[Date].[Calendar Date].[Date]"><CONDITION
    OPERATORCONDITION="InList"><CONSTANT
    CAPTION="[Today].item(0).MEMBER_CAPTION"/></CONDITION></FILTER>
    Where [Today] is a calculated member.
    This one parses fine, however when it comes to MDX which i capture via
    profiler
    WITH SET NS28B9BE741FD446A5A0414EA718F8FC_0 AS Filter([Date].[Calendar
    Date].levels(4).allmembers,((([Date].[Calendar
    Date].currentmember.properties("CAPTION")="[Today].item
    (0).MEMBER_CAPTION"))))
    SELECT { [Measures].DefaultMember } ON COLUMNS ,
    NS28B9BE741FD446A5A0414EA718F8FC_0 DIMENSION PROPERTIES
    MEMBER_UNIQUE_NAME, MEMBER_CAPTION ON ROWS FROM [My Cube]
    This returns empty. However it works fine and returns value if i remove "" wrapping
    [Today].item(0).MEMBER_CAPTION and run this query in SQL Server Management Studio ( MDX query)
    However i cannot introduce the same in the filter - if i try it gives
    me a parse error.
    i.e the following doesnt help
    <FILTER KEY="[Date].[Calendar Date].[Date]"><CONDITION
    OPERATORCONDITION="InList"><CONSTANT
    CAPTION=[Today].item(0).MEMBER_CAPTION/></CONDITION></FILTER>
    Can you kindly advise if you have seen similar errors and what i can do possibly in this case to workaround this?
    Edited by: ramaks on Oct 26, 2010 2:35 AM
    Edited by: ramaks on Oct 26, 2010 2:36 AM
    Edited by: ramaks on Oct 26, 2010 2:37 AM

    Hi Didier,
    Thank you for your response. That was exactly my original design - but it has performance implications for us. Please see an earlier thread of mine.
    Query Performance in OLAP MSAS Universe using Filter
    In this Case the MDX will become as below.
    Which means every additional dimension i add creates multiple cross joins, and the filter will go through all possible cross-join combination to filter out that one record for that particular date. My original thread explains this more clearly.
    Is there no other way to implement such a filter?
    WITH
      MEMBER [Measures].[2FF3DF31-5D02-4A9B-A8,BC,E7,25,C2,30,1B,61] AS
        IIF
            [Date].[Calendar Date].CurrentMember.Properties("CAPTION")
          =
            [Today].Item(0).Member_Caption
         ,1
         ,0
    SELECT { [Measures].DefaultMember } ON COLUMNS ,
    ,NON EMPTY
        Filter
                  CrossJoin
                AddCalculatedMembers
                  [Date].[Calendar Date].[Date].MEMBERS
          [Measures].[2FF3DF31-5D02-4A9B-A8,BC,E7,25,C2,30,1B,61] = 1
    DIMENSION PROPERTIES
    MEMBER_UNIQUE_NAME, MEMBER_CAPTION ON ROWS FROM [My Cube]
    Edited by: ramaks on Oct 26, 2010 4:26 PM

  • Error in webi against MSAS OLAP Universe

    Hi,
    We have an OLAP universe against MSAS 2008. We are at BOXI3.1 SP2. I am wondering if anyone has seen this error before
    "expression contains a function that cannot operate on more than 4,294, 967,296 tuples WIS10901".
    We get this error when we create a webi report against the universe. The only thing unique about this report query is that it has a few numerous query filters - but then the only way this error makes sense is if BO is creating MDX against multiple sets of data and then combining that based on these additional filters ( a bit different behavior than what we might expect in a relational DB with multiple query filters).
    Any suggestions on how to navigate this issue?  thank you in advance.
    Regards
    Edited by: ramaks on Jan 12, 2011 12:02 PM

    Hi,
    I am not sure if it is the same problem, but I had similar issues with measure objects coming out of the universe that were defined as "database delegated" in the universe object's properties. Basically it then forces you to always refresh when you have changed anything on the report, so that it can recalculate the measure. I am not aware of differences regarding this in Rich Client vs. InfoView, but there could be. I have seen other similar issues between the two before.
    Check to see if the measures are database delegated, and change them if you can to sum or count or whatever they should be.
    Hope that helps.

  • Webi Reports Hyperlinks on top of OLAP Universe

    Hi Webi Gurus,
    my BoBJ version 3.1 sp3
    BW-OLAP universe.
    I checked below Link for the solution, but couldn't
    get answer, as these are based on relational universes.
    /people/erika.atencio2/blog/2011/04/14/creating-hyperlinks-between-webi-reports-in-infoview
    I have a OLAP universe. On top of it, there are two reports
    One parent report and one child report.
    Question: I have a column called Auction Id on parent report.
    Now, when I click on any of the Auction Id values, child report
    should only bring data for that Auction Id alone and not other Auction Ids.
    In the child report, I have Auction Id as query filter.
    Now while in Webi's Interactive Mode, I chose the option
    Select Column--> Create Hyperlink --> Link to a document -->
    Document prompts: Prompt User in runtime.
    This option works fine.
    However, when I change the Document Prompt to:
             Select Object (or) Build Formula
    report throws MDX error, during run-time,
    Please suggest.
    MDX error:
    ========================================================================
    The query failed to execute with the error Value for the Characteristic.....WIS 10901
    ==================================================================================
    Regards,
    AK

    Still getting error...I tried this
    >> 1. In the detail webi report, create a query filter for AuctionID and use Equal operator. Give the prompt text as ActionID.
    AK: Done
    >> 3. In the column properties, in the display section select display cell content as HTML.
    AK: Done
    When I provide the URL and Parse it throws following error.
    "Invalid identifier a at position 15. (WIS 10022) "
    I gave following URL and parsed it.
    ="<a href="http://sapbojdev:8080/OpenDocument/opendoc/openDocument.jsp?
    iDocID=18774&lsSAuction ID="URLEncode([Auction ID])"&sRefresh=Y
    Q: Is there any problem with syntax?
    Q: Secondly, for OLAP universe based webi report , can't we use the hyperlink option:
    Link to  Document
    Thanks,
    AK

  • Errors in MDX function of Universe and WebI

    Dear Experts,
    I need to create a object get MTD, YTD of PS volume measure in Universe get data from Cube in SAP Business Warehouse.I have been tried to do many time and based on OLAP Universe best practice document from Ingo Hilgefort but it still generates errors.
    <EXPRESSION> SUM(MTD([0CALMONTH].[LEVEL01].CurrentMember, @Select(PS Volume\PS Volume))) </EXPRESSION>
    --> generate error
    A database error occured. The database error text is:
    The MDX query WITH MEMBER [Measures].
    [C6F14DED-1942-4F00-8F,88,E6,F3,3] AS
    SUM(MTD[0CALMONTH].[LEVEL01].CUurrentMember),
    [Measures].[ZPS_VOL])'SELECT {[Measures]...} ON COLUMNS FROM [$ZSD_C01]
    <EXPRESSION> SUM(MTD([0CALMONTH].CurrentMember), @Select(PS Volume\PS Volume)) </EXPRESSION>
    --> generate error
    A database error occured. The database error text is:
    (cs) "Driver not capable". (WIS 10901)
    With simple fomular, system run ok
    <EXPRESSION> @Select(PS Volume\PS Volume) - @Select(PS Return Volume\PS Return Volume) </EXPRESSION>
    --> OK
    We use system:
    SAP EHP 1 for SAP NetWeaver 7.0 SP8
    BOBJ Edge 3.1 SP3 with Standard Package
    SAP Integration Kits 3.x
    Could experts help me to solve that problem?
    Thanks & Regards,
    Jack Luu

    Hi,
    This is a big task and can't really be explained too well in a post. But here's the short version of the process you must follow:
    1. In the information design tool, convert your old (unv format) universes to the new (unx) format and save them to the repository. This will create a new universe.
    2. In each Webi report, go to the query panel and switch the report from looking at the old universe to the new universe. Assuming you're not making any changes to the universe all the objects will match and it will just work.
    Chapter three of the information design tool manual is dedicated to converting old universes to new.
    Changing the universe that a Webi report uses is in the Webi manual, it isn't specific to a BI4.0 migration.
    As far as I know, it isn't possible to convert OLAP universes.
    Lastly, I'd suggest making sure you're using BI4.0 SP01 - the information design tool seems to have quite a few things ironed out.
    For a fast intro into the information design tool, you can [have a look at this|http://blog.davidg.com.au/2011/04/bi40-information-design-tool.html].
    Hope that helps!

Maybe you are looking for

  • HP OfficeJet 5505 All-In-One wireless printing.

    I've got a problem getting a HP OfficeJet 5505 All-In-One printer working with a Time Capsule for wireless printing.. I'm not quite sure how to debug this, so I'm asking for a little help. If I connect the printer directly to the Mac, It is properly

  • Not able to open PDF files from Web

    Sometimes reader 9.3.1 in IE on Windows 7 stops working and it is not possible to display any more PDF files from web. Reinstall helps for a while. By looking into running programs I found the acrobroker.exe starts and immediatelly shuts down. After

  • CDHDR table entry updation with different Time Stamp

    Hi Experts, I'm changing the Contract Partner First Name. The time stamp updation in Change Document Object DEBI is with UTC but the BUPA_BUP Object with Local Time Stamp. We want both time stamp with the UTC. Time Zone mentioned at SPRO level is UTC

  • Library doesn't show up after attempted upgrade

    Error 1324 the path to my pictures contain invalid entry, is what it says when it gets ready to install 6. Now I can't access my library, any thoughts?

  • Why is Lightroom 5.4 crashing when I attempt to print?

    I thought I had posted a similar question earlier today, but I cannot seem to find it. I apologize if this is a repeat. I am running Maverick on a 2012 MacBook Pro with 8 GB of memory. The application crashes whenever for all types of printing (inclu