LastSibling

Hi, I'm a long time BO user who is new to SAP integration, and I'm having some conceptual problems. Thius is in the area of timesheet management, if that makes a difference.
Given that I am basing my universe on a query that returns the following weeks and hours ...
12.2011     22.5
14.2011     42.5
15.2011     116
16.2011     62.5
17.2011     44.5
18.2011     7.5
19.2011     79
20.2011     37.5
21.2011     7.5
23.2011     47.5
... I assumed that the expression:
<EXPRESSION>([Measures].[4MJ6PVVXJKN124Y7VXIOETTA9],[0CALWEEK].prevmember)</EXPRESSION>
Would return a value of 47.5. However, it returns 0.0. Can anyone help me understand why?

I think that in the context of the business environment that would be an acceptable compromise -- as we have 6,000 people who are supposed to enter time every day we could probably rely on the maximum week in the cube representing the current one. The disadvantage of the method you suggest would be that we'd require one query, and hence one universe, for each of the following required situations: Unconstrained, "Last Month", "Last Week", "Last Six Weeks", and any others that are dreamed up.
So for the expression:
<EXPRESSION>(Measures.4MJ6PVVXJKN124Y7VXIOETTA9,0CALWEEK.lastsibling)</EXPRESSION>
Should that be returning the metric value for the highest member of 0CALWEEK? (I may be fuzzy on terminology here).
If the cube contains weeks up to 25.2011 query on which the universe is based contained a filter to limit the weeks to be returned to, for example, 21.2011, 22.2011, and 23.2011, then would the expression return the metric value for 23.2011?
If there was no value for the metric for 23.2011 then would it return 0?
Thanks for your patience.

Similar Messages

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

  • Unable to restrict a rolling char field in MDX Universe.

    Hello!
    I am trying to create a restricted Characteristic in a SAP BW OLAP Universe. The chararcteristic is a Quarter field and has to be restricted for some reports to not display the last quarter in a rolling quarter period.There are a few menthods I followed inorder to achieve this, which are as below:
    1) Object - SELECT CLAUSE : <EXPRESSION>EXCEPT( [0CALQTR].[LEVEL01],[0CALQTR].[LEVEL01].CurrentMember.LastSibling)</EXPRESSION>. This gives and error messsage that the MDX expression is not valid.
    2) Object - WHERE CLAUSE : <EXPRESSION>EXCEPT( [0CALQTR].[LEVEL01],[0CALQTR].[LEVEL01].CurrentMember.LastSibling)</EXPRESSION>. This gives and error messsage that the MDX expression is not valid.
    3) Pre-Defined Filter -
    <FILTER KEY="[0CALQTR].[LEVEL01]">
    <CONDITION
    OPERATORCONDITION="NotEqual">
    <CONSTANT CAPTION="[0CALQTR].[LEVEL01].CurrentMember.LastSibling"/>
    </CONDITION>
    </FILTER>. This also does not work giving a MDX statement not valid error message.
    However, the only thing that works in all of the above the is the predefined filter with the following expressions:
    <FILTER KEY="@Select(Fisc. Year/Quarter\L01 Fisc. Year/Quarter)">
    <CONDITION
    OPERATORCONDITION="NotEqual">
    <CONSTANT CAPTION="@Prompt('L01
    Quarter','A','L01 Fisc. Year/Quarter',mono,constrained)"/>
    </CONDITION>
    </FILTER>.
    Kindly suggest if I can avoid using the prompt and just restrict the Quarter characteristic (with rolling quarters) to avoid displaying the last quarter.
    Any inputs are highly appreciated.
    Thanks,
    Vivek.

    Hi,
    I believe you have to explicitly include a validate activity...
    http://docs.oracle.com/cd/E25054_01/dev.1111/e10224/bp_appx_ref.htm#BABJDHEH
    Cheers,
    Vlad

Maybe you are looking for

  • Installation Problem in SAPNW7.0 with Oracle on RHEL5.4

    Hi Everyone,         I am installing SAP NETWEAVER7.0 SR3 with ORACLE 10.2.0.4 on RHEL5.4 Operating System. I have installed the java and i have install the ORACLE 10.2.0.4 Successfully. I set the environment variable in vi .bash_profile and i set th

  • Free Photoshop CS2 and serial number that works

    I downloaded the free Photoshop CS2. How do I get a serial number that works so I can install the program? Thanks.

  • Mail: missing plug-in

    I cannot seem to be able to view PDF files attached to emails whether at the compose stage and attaching PDFs or at the receive stage with PDF file attached to incoming email. Quick Look works well on PDFs all the same and Save button does show the P

  • TM v manual backup or synchronisation with Intego Backup Assistant?

    TM is irritating +. It permits exclusion of folders/files you don't want to back up but not specification of folders/files you do want to back up. So, for example, it backs up Documents folder on Macintosh HD (not essential) but not Documents folder

  • Sending email from BSP

    Hi, In my project, I have a task that after clicking a button say "SendEmail", mail has to be sent to the customer. How can I do this?? Any ideas plz.... Thanks, Ravindra.