MDX for OLAP Universe.

Hello!
I have a scenario wherein I have to create a custom dimension restricting some values to be displayed. The dimension I am trying to restrict here is Quarter - [ZCALQRT].[LEVEL01], which has values like Q3 2011, Q4 2011, Q1 2012,Q2 2012 on a rolling quarter basis. My requirement is to restrict the last quarter to be displayed.  I have tried the following menthods to achieve this:
1) Create a new dimension object with the following syntax:
<EXPRESSION>
WITH MEMBER [Measures].[Delta] ASu2019
[Measures].[4J68GNRER52B7BV68B1GHWUA8]-[Measures].[4J68GNC1P7UW62S9WMWRXSWUO]u2019
SELECT
{[Measures].[4J68GNC1P7UW62S9WMWRXSWUO],[Measures].[4J68GNRER52B7BV68B1GHWUA8], [Measures].[Delta]} ON COLUMNS,
NON EMPTY {[ZCALQRT].[LEVEL01].members} ON ROWS
FROM [$Y_ZAPOH]
WHERE (EXCEPT([ZCALQRT].[LEVEL01].[[2ZCALQRT]].[Value],[ZCALQRT].[LEVEL01].[[2ZCALQRT]].[Value].CurrentMember.LastSibling))
</EXPRESSION>
So, here I tried to restrict the dimension in the where clause using the EXCEPT(,) function. But on using this new custom dimension in Web I the error message I receive is "Some objects are not available in the Universe".
2) Create a restriction for the object in the where clause:
<EXPRESSION> (EXCEPT([ZCALQRT].[LEVEL01].[[2ZCALQRT]].[Value],[ZCALQRT].[LEVEL01].[[2ZCALQRT]].[Value].CurrentMember.LastSibling))</EXPRESSION>
This gives and error message with MDX syntax being invalid.
Can anyone please suggest a work around for restricting the dimension in the SELECT/ WHERE clause or a PRE-DEFINED FILTER.
Any inputs are highly appreciated.
Thanks,
Vivek.

Hi Ingo,
Thank you for the information. I will try doing that in the SAP BEx query end. However, I found some examples with the MDX which can filter the members based on their levels. One specific example of referring to a member is as follows:
If I need to exclude the last value in a rolling value set, I tried to use the EXCEPT(,) function and referring the member in a predefined filter:
<EXPRESSION>EXCEPT([0CALQTR].[LEVEL01],[0CALQTR],[LEVEL01].CurrentMember.LastSibling)</EXPRESSION>
Can you please suggest if anything is wrong with this MDX statement?
Any inputs are highly appreciated.
Thanks,
Vivek.

Similar Messages

  • 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

  • Metadata management for OLAP Universes

    Hi,
    How to manage the metadata management in universe?
    Our project requirment is to maintain the Business Defination of Object(not the technical Information which automatically comes when connection is defined while designing), As of Now we have suggested to the client that we will manually include the Defination of each field/objects or class in the Description field of properties of Object while designing the universe in designer.
    But this solution seems to be very time consuming and difficult to maintain (Having too many objects in Universe which is designed on SAP BW Query will consume lot of time for Developer and also to maintainance will also be a problem.)
    Can any one suggest the way to incorporate the Business Defination of Objects in Universe?

    Hi,
    We have a product called Metadata Manager that keeps information of universes along the lifecycle of BI system.
    By the way, when you genererate a universe on top of SAP BW data source, this universe contains hidden attributes per class / object / measure / filter.
    Those attributes contain:
    <ul><li>Unique name
    <li>Unique definition
    <li>Last update date
    </ul>Those attributes are accessible (read/write) through Universe Designer SDK.
    Didier

  • 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

  • Edit an object's select statement of OLAP universe SAP BW

    Hi everybody
    I am new at working with Olap Universes BW, and I have to edit one universe SAP BW, I don't know if I can to use substring function on a select statement, for example  substring([0D_DIV].[LEVEL01],5,5), I try to use this function but I have a error,
    Could you help me? I need to returns part of a string, is correct to do it on a universe or is better to do at BW.

    Hi,
    First of all I recommend you read the documentation that gives you information about OLAP universes and especially SAP BW universes.
    I also recommend to download documents related to SAP universes deployment, administration and customization:
    [OLAP Universes - how to samples and recommendations |https://wiki.wdf.sap.corp/wiki/display/globalregions/OLAPUniverses-howtosamplesand+recommendations]
    [SAP Integration |https://wiki.wdf.sap.corp/wiki/display/globalregions/SAP+Integration]
    Now you can customize expression using MDX in OLAP universes. MDX expressions must be enclosed with <EXPRESSION></EXPRESSION> XML tags.
    Unfortunately SAP BW MDX does not support calculations that return string or date values.
    The onlyway to return string is to use NAME or UNOIQUENAME attribute.
    See answers I already in the forum: [Forum answer |Re: Create new dimension on top of SAP BW data]
    Regards
    Didier

  • LOV Filtering on OLAP universe

    Hi
    i have a BOXI 3.1 SP2 FP2.6 universe on top of a bex query (BW BI 7 SP5)
    my bex query contains a variable 'ready for input' which give me a prompt condition on BO universe.
    My BO condition has the default LOV <Variable name> which gives me 2 hidden objects <Variable name> and <Variable name>Base.
    this hidden object displays a list of values on prompt in my report. i want to filter the list of values on 2 single values (from the whole list).
    I know i can define the 2 single values directly in my prompt by filling the 'value ' and 'key'. But my 'value ' are static.
    I'd rather to limit the list of the LOV directly on the hidden objects <Variable name> or <Variable name>Base of the universe on the 2 key of my requested items
    is it possible ?
    thanks in advance,
    Rgds,

    Ingo, you mentioned in this posting that the functionality required is not supported for OLAP universes ... is this still the case in 3.1 ?
    WE have a similar challenge here where we need to restrict the list of Vendors that is presented to the user to only Merch Vendors. I need to do this in a BEx Query, as there is a 2nd variable which returns a list of articles based on the selected Vendor, so need the selected Vendor to be available in the Post-Popup variable exit code.
    I have implemented the RSR_VARIABLE_F4_RESTRICT_BADI in BW, which correctly limits the list of values in teh Vendor dropdown when the BEx query is run in RSRT / web, but in WebI this list of values doesn't apply.
    Cheers,
    Andrew

  • 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.

  • 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

  • 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

  • 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

  • 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.

  • How to change MDX  for Universe base on Universe

    Dear All,
    Our customer has a query about Universe base on MSAS2005.
    They can created a Universe and used it for Webi report well.
    The following MDX is right.
    SELECT
             {[Measures].DefaultMember} ON COLUMS ,
             ADDCALCULATEDMEMBERS ([Account].[Accounts].[Account Level 01].MEMBERS)
    DIMENSION PROPERTIES MEMBER_UNIQUE_NAME, MEMBER_CAPTION ON ROWS
    FROM [OpCentre]
    Customer want to know how can they create a universe object on the u201CAccountsu201D ."Accounts" should have a full list of accounts under the whole account hierarchy.
    They also want to know is there any guideline for creating universe objects other than the default generated objects? 
    Thanks in advance!
    Wayne
    Edited by: Wayne Peng on Mar 11, 2009 11:59 AM

    Hi
    - Open https:
    help.sap.com
    - Go to SAP BusinessObjects ->All products (see at left hand side pane).
    - Select the language required -> Select BusinessObjects XI 3.1 from Release (the third drop down).
    - After the list of documents is populated scroll till bottom of the page.
    - You would find Using SAP BW in Universe Designer guide there.
    - Try downolading it from there.
    Or you can also try this [link|http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_sap_olap_universes_en.pdf] to download the guide.
    Hope this helps!!!
    Regards
    Sourashree

  • Setting a Prompt value for KeyDate in WebI on SAP OLAP universe

    I have a webi report which has as its dataprovider a query against an SAP olap universe against a BEx query which has the KeyDate parameter exposed.
    Iu2019d like to get at this prompt from the SDK.
    In infoview if I run the report it pulls up the keydate prompt (a special dialogue which seems to be implemented as part of the connection definition) - this prior to pulling up the full prompts dialogue and showing all universe based @prompt filters.  In WebI I can see the prompt value entered using =UserResponse("dp.kd.value") .   So it does seem to see the keydate as a prompt of some sorts.
    I've got a little jsp that allows me to set prompts very nicely (and packeaged as a jar in the CMC that schedules ok as well) but when I put it against a report with a key date u201Cpromptu201D it just wonu2019t see it.  When I call a getCount() as below it returns 0.
    oDocumentInstance.getDataProviders().generateQueries();     
    Prompts oPrompts = oDocumentInstance.getPrompts();
    out.print(oPrompts.getCount());
    This is all in an attempt to get around the scheduler limitations of key date which would give me two queries, two universes and two reportsu2026 one report for scheduling (using a customer exit to set key date) and a second for user refresh  (with a prompted key date)  which would all be rather messey to say the least!
    So any cunning ideas on how I can get hold of this key date thingymebob in the SDK?
    (ps. "Fixed in V4" would be nice to hear as an aside to thisu2026 In playing with the ramp up Iu2019ve got the same issues however so Iu2019m not to hopefull )
    Thanks!
    Jeremy.

    Hi,
    First I think you have to create a support ticket because normally the object in the universe must be generated with data data type nad it is not the case.
    We are awere of some limitations with data types.
    Secondly, if you want to have users entering date you have to specify date in the prompt data type like this:
    <OPTIONAL><FILTER KEY="[PERIOD SD].[DB Full Date].[DB Full Date]"><CONDITION OPERATORCONDITION="Equal"><CONSTANT CAPTION="@Prompt('Enter Date ','D',,mono,free)"></CONSTANT></CONDITION></FILTER></OPTIONAL>
    Regards
    Didier

  • 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

  • Behavior of BEx Query Attributes for webi on OLAP universe: Including 1 attr to Query!

    My webi report is based on an OLAP universe (.unv) which is based on a BEx Query.   I need an attribute field from an info object.  But when I include that attribute in my BEx query in free characteristics pane……   Every single attribute in that info object comes over to the universe.
    Is this the expected behavior?
    How can I ensure only the attribute wanted comes over and not all the attributes of the info-object.
    I am using BO 4.0SP4.

    Attribute level restriction of an InfoObject is not possible in BEX Query and the same reflects in the Universe.
    You can use attributes of an infoObject which you wanted on WEBI Report Level.
    ---Raji. S

Maybe you are looking for

  • IPhone 4S won't turn on

    Hi everyone, A few weeks ago my iPhone 4S fell and the screen cracked on it, although it still worked, this is the only time that's ever happened after having the phone for 2 years or more. After about 2 weeks, I checked my phone and it was as if the

  • How do I set up security questions on iTunes?

    Ever since I updated to the now older version of iTunes I need to answer security questions to purchase music and apps.  I never set up any questions to be asked let alone provide the answers.  I have no idea what to do.  I've tried to contact apple,

  • Applet Focus in JSP.

    I have an applet embeded in a JSP page. In this applet I have some text feilds for data entry. After the each data entry this field get validated . If the entered data is wrong then it popup a message using the JOptionPane. Now the problem. :- after

  • Is there a way to skip episodes in a playlist through the apple tv?

    Hi, I like having large playlists to hold multiple tv shows and shuffle them on my apple tv. The problem is not every episode is great so I like skip them. Anyone know of an easy way to skip episodes through the ATV? Thank you!

  • What is the procedire convert bdc objects to bapi?

    Hai abap experts, This is vinod, may i know the details about converstion of bdc objects in to bapi. can u givethe documentation ? <REMOVED BY MODERATOR> Edited by: Alvaro Tejada Galindo on Feb 29, 2008 3:13 PM