QTD, MTD functions

Hi All,
I have a logical table based on Time and created a corresponding Dimension.
These are the columns
1) Year
2) Quarter
3) Month
4) Week
5) Day
In the properties of Time Dimension, I made as the dimension as TIme Dimension CHECKED.
Default Root Level is Year.
Chronological Key is Day.
I have a fact table called Interactions which contains the number of interactions maintained at a granularity of each Day.
I tried to create a Logical Column in fact table Interactions based on logical column and tried to use ToDate for YTD Interactions,QTD Interactions, MTD Interactions.
I tried to create function based on Measure and Level values as ToDate(BusinessMode.FACTTable.Column, TimeDimension.Table.YEAR)
First I got a error saying invalid identifier and kept the column of the Year from Time Dimension
It got rectified.
Then I am getting error as Invalid Expression. I think it expects two parameters and I am providing both.
Please let me know if I am missing anything.
Regards
(S.Prashant)

Hi Kishore,
I made a change over here and the error is not occuring now. But different error is occuring.
Instead of year (which is default root level in Dimension), I picked either Month or Quarter and I am not facing the error (Invalid Expression).
I have a questions now
1) is it that we cannot use a column defined as Default Root level in Todate and AGO functions?
The other part is I have a new error ([nQSError: 22038] Function TODATE requires at least one measure attribute in its first argument.)
My fact column (FACT Table as partner_id,Id (primary_key) and ..). For the fact column to be the first parameter is that is should have some aggregation rule?
Please let me know...
Thanking you in Advance
Regards
(S.Prashant)

Similar Messages

  • YTD,QTD & MTD values for variable under 0CALMONTH

    Hi Gurus,
    I need to calculate YTD,QTD & MTD values for a KF based on the value that the user enters in the variable under 0CALMONTH.
    I have the code for how it can be done using 0CALDAY but not sure for 0CALMONTH.
    Can you share the ABAP code for this requirement.
    Your help will be greatly appreciated.
    Thanks
    Arvind

    Hi,
    Based on the month entered by the user, take First day of the month in teh exit,
    1. YTD :  Take SY-DATUM and calculate YTD
    2. QTD :  Based on the Month you calculate Quarter
    3. MTD :  Take SY-DATUM and calculate MTD
    *Note: * If they give only Month want to date meanes, only SY-DATUM will be accepeted, because they are not passing 0CALDAY
    Thanks
    Reddy

  • Retriving QTD,MTD and YTD

    I'm trying to write an sql script that retrive MTD,
    QTD and YTD for all children account in
    GL_Balances........How is this calculation done and
    fields to look at???
    Colums for MTD, OTD, and YTD each showing
    Actual,Budget, Prior Year Restated, Variance to
    Budget(number and %).
    I appreciate the fact the you must have spent a great
    deal of time creating SQL Statement(stopping me from
    re-inventing the wheels).
    I would be extremely grateful if you could email me a
    copy/copies of all your SQL statment.
    Regards
    Larry
    [email protected]

    Hi,
    For YTD use the following Code. Where FMYEAR is Customer Exit variable on 0CALMONTH, so restrict 0CALMONTH with Ranges []FMYEAR+3, 0CMONTH.
    0CMONTH = SAP Exit Variable on 0CALMONTH, so for MTD you just restrict 0CALMONTH with 0CMONTH Variable.
    * First Month Of Current Fiscal year comment*
        WHEN 'FMYEAR'.
    It works based on SY-DATUM.
          CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
                 EXPORTING
                   i_date               = sy-datum
    *         I_MONMIT             = 00
                   i_periv              = 'V3'
                IMPORTING
                  e_buper              =  zbuper
                  e_gjahr              =  zbdatj.
          CLEAR: l_s_range.
          l_s_range-low+4(2) = '04'.
          l_s_range-low+0(4) = zbdatj.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
    Thanks
    Reddy

  • QTD, MTD in reporting

    I need your help guys :
    I want to calculate the MTD. QTD, YTD values for volumes and for this I want to understand in order to achieve this functionality what are the time characteristics that I should have in my cube. Currently I have 0FISCPER, 0FISCVARNT, 0FISCYEAR, 0FISCPER3 these time characteristics.
    I want to get the columns displayed in these two formats showing "volumes":
    1. MTD Q1-QTD Q2-QTD Q3-QTD Q4-QTD YTD
    2. MTD QTD YTD
    Thanks again for the help
    Note: Points assurred.

    It looks like the entire query would be filtered by the 0FISCVARNT, in the "filter" section, above the "free characteristics".
    Each column could be a RKF  (restricted key figure) that contains:
    - a basic key figure, like 1KYFNM= 0AMOUNT and
    - a variable on 0FISCYEAR for the user to enter the current fiscal year
    In addition to the 2 items above, the columns for item #1 are described below and have these added to their respective RKF:
    MTD = restricted by a variable on 0FISCPER3 where the user enters the current fiscal month.
    Q1-QTD = the same variable used in 0FISCPER3, but set to the range [1;3]
    Q2-QTD = the same variable used in 0FISCPER3, but the range is [4;6]
    Q3-QTD = the same variable used in 0FISCPER3, but the range is [7;9]
    Q4-QTD = the same variable used in 0FISCPER3, but the range is [10;the last month possible in the variant]
    If you are using variant for a 12-month fiscal year with additional 4 special periods, for example, the Q4 restriction could be [10;16]
    YTD = same variable in 0FISCPER3, but the range is [1;variable of 0FISCPER3]
    This means if the user enters 5 for 0FISCPER3 variable, the YTD should cover the months [1-5]. 
    One way to define this range is to start with a range of [1;1], transfer it to the right with the blue arrow, BUT before doing anything else, click on the "variables" tab, find the 0FISCPER3 variable, and double-click on it to transfer it to the right.  It will magically add it to the end of the range [1;variable]
    For the QTD listed after item #2 in the original message, perhaps we need a clarification of what is desired.  For example if the current fiscal month is 5, which months should be contained the QTD column?   We were unsure if the range should cover fiscal months [4-6] or something else.

  • Not able to show data of prior three quarters,periods along with QTD , MTD

    My requirement is when user selects a date then we have to show data in the report for three ago quarters data and QTD, three ago periods data and MTD.
    eg: let the user selects a date in the 2010 Q 2(May-21-2010) then report should show
    2010 Q 1, 2009 Q 3, 2009 Q 2, QTD(2010Q2 till 21st May), Feb-10, Mar-10, Apr-10, May-10 (MTD till 21st May).
    I have created Ago metrics, Todate time series metrics for quarters and periods...
    but Ago metrics are not working when Todate metrics are filtered with date prompt,
    if I remove date filter then Todate metrics are not working (means not showing correct results).
    Also I tried to create logical columns in BMM layer by using filter condition with enterprise qtr, enterprise periods.
    but major problem is I am unable to go back to previous quarters and periods for the date user selected.
    I am struggling for it a lot, Please assist me
    Any response is highly appreciated.
    Thank you,
    Ramanujan.

    found the problem
    thanks

  • Error when using defined object in Universe in Web Intelligence

    Hi all
    I create universe connect from Infocube
    I create a new Object named "Sale Value" to get YTD of Object name "SS Total value of the invoice lin" with code following
    <EXPRESSION>SUM(YTD(@Select(Key Figures\SS Total value of the invoice line)))</EXPRESSION>
    I parse to check systax "OK".
    But when I run query and using above defined object in Web Intelligence, I get error following
    <<
    Query 1 - ZTHP_TEST001
    A database error occured. The database error text is: The MDX query WITH MEMBER [Measures].[384E7D57-FBC9-45A4-BD,4B,1D,D2,D4,41,47,7E] AS ' SUM([Measures].[ZSGROSS_L]) '  SELECT  { [Measures].[ZSVOLUME], [Measures].[384E7D57-FBC9-45A4-BD,4B,1D,D2,D4,41,47,7E] }  ON COLUMNS , NON EMPTY { Descendants( [ZPRODUCT                      ZPRODUCT_HIER].[LEVEL00].MEMBERS, [ZPRODUCT                      ZPRODUCT_HIER].[LEVEL09], LEAVES) }  DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM [$ZIB_02]  failed to execute with the error Invalid MDX command with ). (WIS 10901)
    >>
    I check MDX PARSER connection in SM59 sucessfull
    I am beginer of Universe and Web Intelligence, please help me solve this problem.
    Thanks

    Hi,
    The MDX parser in the universe designer just check the XML Tags or Syntax. It does not validate the expression.
    The YTD, QTD, MTD functions in the universe designer requires a reference to a predefined time chararcteristics eg. 0CALMONTH etc. So the correct expression would be similar to the below expression:
    <EXPRESSION> SUM(YTD([0CALMONTH].CurrentMember), @Select(Key Figures\SS Total value of the invoice line))</EXPRESSION>
    Also you need to add the time characteristics in the result set.
    Regards,
    Rohit

  • Time Balance and Time series in ASO

    We are building an ASO application and we need Time balance and dynamic time series functionality.
    If I go and use the TB functionality in ASO, my Time dimension has to be stored and I cannot put mdx formulas on my members (YTD,QTD,MTD)
    I see various threads here and the recommendation is to have a new dimension to view the time series members (gary's blog...tnx for him)
    However we cannot afford to have a separate dimension. The time series should be under Time.
    How can we go with this?
    Please help me with your suggestions/ideas. Thanks for your time.
    TIA
    - Sai

    Any ideas guys?
    John, can you please shed some light on this.
    TIA

  • MDX - Running total

    I'm trying to create a calculated measure as a running total.
    I'm using the following
    SUM({Null:[TIME].[YMD].currentmember},[Measures].[Qty])
    This is working fine except that I would like the measure only to show the running total up to todays date - right now if I am using the above and use my time hierachy together with this it shows me all dates in my time hierachy(which Means all future dates
    which results in the same qty for the future dates)
    How to avoid this ?
    Also is there a way where I could use all of my Time hierachies and Time attributes together with this measure (and not only the one that I have specified like [TIME].[YMD]) so to speak are more dynamic solution ?
    Thanks in advance,

    Hi Hcmj,
    According to your description, you want to calculate running total for all the time attributes, right?
    In Analysis Services, we can use YTD, QTD and MTD to to calculate running total for all the time attributes. We can calculate this measure in query directly or add the calculation to your cube. Please refer to the link below to see the detail information
    about it.
    http://aniruddhathengadi.blogspot.com/2011/03/how-to-calculate-ytd-qtd-mtd-and-wtd.html
    http://www.powerpivotblog.nl/add-time-functions-like-ytd-to-ssas-using-the-add-business-intelligence-wizard/
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Working with Formulas

    Hello Everyone,
    I want to know some Formula for the following Example
    I have a Report for 9thoct,2013 ie;My Sale Date.
    Now 1: i want to see the report from Month to Date ie:1st oct to 9th oct,
             2: i want to see the report from Quarter to date ie: for july,aug,sept,oct. ie: 1st july to 9th oct
             3: i want to see the report from Year to Date ie: from 1st Jan to 9th oct
    For the above condition i have to create the variable? and what are the relative formulas to do so? Please reply its Urgent.
    Thanks & Regards,
    Foram Shah

    You would need to either create a filter at IDT in universe each for QTD , MTD and YTD or two custom objects each for YTD, QTD,MTD for YTD Start Date and YTD End date...
    Once the objetcs are available you will need to use those in the reports...
    Its not suggested to have these logic at report level but if that is the only choice you will need two variables each for YTD , MTD to filter the data at block level
    For info on how to build the logic refer to the blog here ....
    Date Variables in Web Intelligence

  • Dynamic Time Series in ASO

    We have time hiearchy like the below is ASO, we are using essbase 11.1.2.2
    Time
    2011
    First Half 2011
    Q1 2011
    Jan 2011
    Week 01/01/2011
    2011-01-01
    2011-01-02
    Week 01/03/2011
    2011-01-03
    2011-01-04
    2011-01-05
         2011-01-06
    2011-01-07
    2011-01-08
    2011-01-09
    We have this hiearchy continuing for 5 years same like the above. How can i acheive QTD, MTD, WTD and DTD in ASO. Kindly help me out.
    Regards,
    AS

    I'd also look at Dan Pressman's 2010 Kscope presentation. I think even Gary agrees that using hierarchies rather than 'straight' MDX is usually preferable (based on his remarks in 'Developing Essbase Applications', which is another excellent source for the details of both Crisci and Pressman solutions).

  • OBIEE-Essbase Federation Ques

    Hello All,
    We are doing federation b/w essbase and relational datasources. All our region level information (upto state) is in essbase and city level information is present in the relational tables for which drill down to city to fetch those details.
    The problem that I am facing here is with the Essbase Defaults. For the Time dimension in essbase, its defaulted to most recent month (Oct)
    So now in the report lets say you pulled state and dollars, that report will fetch from the cube for the most recent month. So far good but now when you drill to state, it wont pass the current month to the state. Is there a way to pass that current month to the city level SQL query.
    Well I guess this would be problem with every other dimension because of those essbase defaults. In this case of months, I would be able to create some default Current date variables or something and would be able to work it but for several other dimesions the defaults will always create me a problem
    I have a frequency dim(DLY, QTD, MTD, YTD) in essbase which is defaulted to 'DLY'. so how would I be able to pass the essbase defaults to relational queries??
    In the reports, we can use default values for dashboard prompts but was wondering how would we do it in ANSWERS?
    Please advice
    Thanks
    Prash
    Edited by: Prash11 on Oct 28, 2010 1:08 PM

    Refer this http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/overview/obiee-essbase-modeling-guide-130897.pdf for Modeling. And for any Essbase releated question post it in Essbase forum Essbase

  • Creating dummy prompt in Web Intelligence

    Hi,
    In a report that I am creating, I need to get an input from user to calculate the running total. Is there a way to create a dummy prompt or something where user can provide his input.
    The actual scenario is that we need to calculate the total sales for last n months from x and y months that the user specifies. So user can say "show me last 3 (which is n) month sales for Apr 09 (x) and Apr 10 (y)". I wanted to read this prompt using UserResponse() but then trying to find a way for users to enter these n, x and y as input prompts. If I am using a date object etc to get this prompt then the report obviously gets filtered for that x and y date range, which leads to incorrect results.
    we are using BO XI R3.1. If we use sp2 we could have used "input controls" unfortunately we dont have sp2.
    Any help would be greatly appreciated.
    thanks
    Joe.

    I'm not sure about what you just said....i simply need a dummy prompt in the BeX query based universe
    Example:
    Prompt('Enter Period','A',{'YTD','QTD','MTD'},Mono,Constrained,Not_Persistent)
    I inserted into the Select: section of the object properties tab.
    When I run the Webi report, I recieve the following error. 
    "Database error: The supplied XML is not valid. QTD. (IES 10901) (WIS 10901)"
    Please help anyone. Thanks.

  • Cumulative values for any level of a time dimension

    Hello,
    I want to have a calculated cumulative member working for all levels of a fiscal time hierarchy, YTD, QTD, MTD, WTD.
    I can get a column to work for a specific level like that
    Aggregate
      PeriodsToDate
         [Calendar].[Hierarchy - Year to Week].[Fiscal Quarter YYYYQ],
         [Calendar].[Hierarchy - Year to Week].Currentmember
      ), [Measures].[Billing Net USD]
    However what I need is to show the to date whatever level of the dimension is displayed relative to that level. SO if all level are displayed, each intermediate level shows the cumul relative to that level.
    I Would really appreciate some pointers to an article or example on how I can do this. Thanks
    Thanks/Regards, Philippe Cand

    Hi P,
    One way to solve this (there are always many ways, each having varying levels performance and simplicity).
    CASE
    WHEN [Calendar].[Hierarchy - Year to Week].Level is [Calendar].[Hierarchy - Year to Week].[Fiscal Quarter YYYYQ] THEN 
    Aggregate(PeriodsToDate(
         [Calendar].[Hierarchy - Year to Week].[Fiscal Quarter YYYYQ],
         [Calendar].[Hierarchy - Year to Week].Currentmember), [Measures].[Billing Net USD])
    WHEN [Calendar].[Hierarchy - Year to Week].Level is [Calendar].[Hierarchy - Year to Week].[Fiscal Period YYYYP] THEN 
    Aggregate(PeriodsToDate(
         [Calendar].[Hierarchy - Year to Week].[Fiscal Period YYYYP],
         [Calendar].[Hierarchy - Year to Week].Currentmember), [Measures].[Billing Net USD])
    WHEN [Calendar].[Hierarchy - Year to Week].Level is [Calendar].[Hierarchy - Year to Week].[Fiscal Week YYYYWW] THEN 
    Aggregate(PeriodsToDate(
         [Calendar].[Hierarchy - Year to Week].[Fiscal Week YYYYWW],
         [Calendar].[Hierarchy - Year to Week].Currentmember), [Measures].[Billing Net USD])
    WHEN [Calendar].[Hierarchy - Year to Week].Level is [Calendar].[Hierarchy - Year to Week].[Fiscal Day YYYYDDD] THEN 
    Aggregate(PeriodsToDate(
         [Calendar].[Hierarchy - Year to Week].[Fiscal Day YYYYDDD],
         [Calendar].[Hierarchy - Year to Week].Currentmember), [Measures].[Billing Net USD])
        else null
        end
    Hope that helps,
    WHEN [Calendar].[Hierarchy
    - Year to Week].Level is [Calendar].[Hierarchy - Year to Week].[Fiscal Quarter YYYYQ] THEN Aggregate
      PeriodsToDate
         [Calendar].[Hierarchy - Year to Week].[Fiscal Quarter YYYYQ],
         [Calendar].[Hierarchy - Year to Week].Currentmember
      ), [Measures].[Billing Net USD] 
    WHEN [Calendar].[Hierarchy
    - Year to Week].Level is [Calendar].[Hierarchy - Year to Week].[Fiscal Quarter YYYYQ] THEN Aggregate
      PeriodsToDate
         [Calendar].[Hierarchy - Year to Week].[Fiscal Quarter YYYYQ],
         [Calendar].[Hierarchy - Year to Week].Currentmember
      ), [Measures].[Billing Net USD] 
    Richard

  • Essbase tokens in 7th version

    Hi Gurus,
    Please let me know how to use tokens in version 7 and what is the significance of the tokens in the following script
    Daily Process -
    Tokens:
    EBYTD Tokens
    d = Current Day members
    m = Current WE members
    q = Current Month members
    y = Current Quarter members
    EBCALC Tokens
    a = FY1998 (nothing coming in!!!)
    c = Current Date (All Versions)
    Passes
    1. EBYTD - daily.1 - d,m,q,y tokens replaced
    2. EBCALC - daily.2 - c token replaced
    Do not set data blocks to clean
    Turn off intelligent calc
    SET CLEARUPDATESTATUS OFF;
    SET UPDATECALC OFF;
    Calc To Dates
    fix("FY2007",Revenue,@idescendants("Labor Hrs"),@idescendants("Labor $"),COS,Transactions,@idescendants(Guests),"Guests-Available","Rooms-Occupied","Rooms-Available");
    "WTD" = ^d;
    "MTD" = "WTD" ^m;
    "QTD" = "MTD" ^q;
    "YTD" = "QTD" ^y;
    endfix;
    fix("FY2008",Revenue,@idescendants("Labor Hrs"),@idescendants("Labor $"),COS,Transactions,@idescendants(Guests),"Guests-Available","Rooms-Occupied","Rooms-Available");
    "WTD" = ^d;
    "MTD" = "WTD" ^m;
    "QTD" = "MTD" ^q;
    "YTD" = "QTD" ^y;
    endfix;
    fix("FY2009",Revenue,@idescendants("Labor Hrs"),@idescendants("Labor $"),COS,Transactions,@idescendants(Guests),"Guests-Available","Rooms-Occupied","Rooms-Available");
    "WTD" = ^d;
    "MTD" = "WTD" ^m;
    "QTD" = "MTD" ^q;
    "YTD" = "QTD" ^y;
    endfix;
    fix("FY2010",Revenue,@idescendants("Labor Hrs"),@idescendants("Labor $"),COS,Transactions,@idescendants(Guests),"Guests-Available","Rooms-Occupied","Rooms-Available");
    "WTD" = ^d;
    "MTD" = "WTD" ^m;
    "QTD" = "MTD" ^q;
    "YTD" = "QTD" ^y;
    endfix;
    fix("FY2011",Revenue,@idescendants("Labor Hrs"),@idescendants("Labor $"),COS,Transactions,@idescendants(Guests),"Guests-Available","Rooms-Occupied","Rooms-Available");
    "WTD" = ^d;
    "MTD" = "WTD" ^m;
    "QTD" = "MTD" ^q;
    "YTD" = "QTD" ^y;
    endfix;
    fix("FY2012",Revenue,@idescendants("Labor Hrs"),@idescendants("Labor $"),COS,Transactions,@idescendants(Guests),"Guests-Available","Rooms-Occupied","Rooms-Available");
    "WTD" = ^d;
    "MTD" = "WTD" ^m;
    "QTD" = "MTD" ^q;
    "YTD" = "QTD" ^y;
    endfix;
    fix("FY2013",Revenue,@idescendants("Labor Hrs"),@idescendants("Labor $"),COS,Transactions,@idescendants(Guests),"Guests-Available","Rooms-Occupied","Rooms-Available");
    "WTD" = ^d;
    "MTD" = "WTD" ^m;
    "QTD" = "MTD" ^q;
    "YTD" = "QTD" ^y;
    endfix;
    fix("Plan2013",Revenue,@idescendants("Labor Hrs"),@idescendants("Labor $"),COS,Transactions,@idescendants(Guests),"Guests-Available","Rooms-Occupied","Rooms-Available");
    "WTD" = ^d;
    "MTD" = "WTD" ^m;
    "QTD" = "MTD" ^q;
    "YTD" = "QTD" ^y;
    endfix;
    fix(FY2007,@children("To Dates"),"Current Date");
    "Labor Rate";
    "Labor %";
    "Sales Per Labor Hr";
    "ST Labor Rate";
    "OT Labor Rate";
    "Labor Productivity";
    "Rev per Occ Room DLH";
    "Rev per Occ Room DPH";
    "Rev per Occ Room GCH";
    "Rev per Avail Room DLH";
    "Rev per Avail Room DPH";
    "Rev per Avail Room GCH";
    "Spending per Guest DLH";
    "Spending per Guest DPH";
    "Spending per Guest GCH";
    "Capture DLH";
    "Capture DPH";
    "Capture GCH";
    "Capture-Avail DLH";
    "Capture-Avail DPH";
    "Capture-Avail GCH";
    "Avg Trans";
    "COS%";
    endfix;
    fix(FY2008,@children("To Dates"),"Current Date");
    "Labor Rate";
    "Labor %";
    "Sales Per Labor Hr";
    "ST Labor Rate";
    "OT Labor Rate";
    "Labor Productivity";
    "Rev per Occ Room DLH";
    "Rev per Occ Room DPH";
    "Rev per Occ Room GCH";
    "Rev per Avail Room DLH";
    "Rev per Avail Room DPH";
    "Rev per Avail Room GCH";
    "Spending per Guest DLH";
    "Spending per Guest DPH";
    "Spending per Guest GCH";
    "Capture DLH";
    "Capture DPH";
    "Capture GCH";
    "Capture-Avail DLH";
    "Capture-Avail DPH";
    "Capture-Avail GCH";
    "Avg Trans";
    "COS%";
    endfix;
    fix(FY2009,@children("To Dates"),"Current Date");
    "Labor Rate";
    "Labor %";
    "Sales Per Labor Hr";
    "ST Labor Rate";
    "OT Labor Rate";
    "Labor Productivity";
    "Rev per Occ Room DLH";
    "Rev per Occ Room DPH";
    "Rev per Occ Room GCH";
    "Rev per Avail Room DLH";
    "Rev per Avail Room DPH";
    "Rev per Avail Room GCH";
    "Spending per Guest DLH";
    "Spending per Guest DPH";
    "Spending per Guest GCH";
    "Capture DLH";
    "Capture DPH";
    "Capture GCH";
    "Capture-Avail DLH";
    "Capture-Avail DPH";
    "Capture-Avail GCH";
    "Avg Trans";
    "COS%";
    endfix;
    fix(FY2010,@children("To Dates"),"Current Date");
    "Labor Rate";
    "Labor %";
    "Sales Per Labor Hr";
    "ST Labor Rate";
    "OT Labor Rate";
    "Labor Productivity";
    "Rev per Occ Room DLH";
    "Rev per Occ Room DPH";
    "Rev per Occ Room GCH";
    "Rev per Avail Room DLH";
    "Rev per Avail Room DPH";
    "Rev per Avail Room GCH";
    "Spending per Guest DLH";
    "Spending per Guest DPH";
    "Spending per Guest GCH";
    "Capture DLH";
    "Capture DPH";
    "Capture GCH";
    "Capture-Avail DLH";
    "Capture-Avail DPH";
    "Capture-Avail GCH";
    "Avg Trans";
    "COS%";
    endfix;
    fix(FY2011,@children("To Dates"),"Current Date");
    "Labor Rate";
    "Labor %";
    "Sales Per Labor Hr";
    "ST Labor Rate";
    "OT Labor Rate";
    "Labor Productivity";
    "Rev per Occ Room DLH";
    "Rev per Occ Room DPH";
    "Rev per Occ Room GCH";
    "Rev per Avail Room DLH";
    "Rev per Avail Room DPH";
    "Rev per Avail Room GCH";
    "Spending per Guest DLH";
    "Spending per Guest DPH";
    "Spending per Guest GCH";
    "Capture DLH";
    "Capture DPH";
    "Capture GCH";
    "Capture-Avail DLH";
    "Capture-Avail DPH";
    "Capture-Avail GCH";
    "Avg Trans";
    "COS%";
    endfix;
    fix(FY2012,@children("To Dates"),"Current Date");
    "Labor Rate";
    "Labor %";
    "Sales Per Labor Hr";
    "ST Labor Rate";
    "OT Labor Rate";
    "Labor Productivity";
    "Rev per Occ Room DLH";
    "Rev per Occ Room DPH";
    "Rev per Occ Room GCH";
    "Rev per Avail Room DLH";
    "Rev per Avail Room DPH";
    "Rev per Avail Room GCH";
    "Spending per Guest DLH";
    "Spending per Guest DPH";
    "Spending per Guest GCH";
    "Capture DLH";
    "Capture DPH";
    "Capture GCH";
    "Capture-Avail DLH";
    "Capture-Avail DPH";
    "Capture-Avail GCH";
    "Avg Trans";
    "COS%";
    endfix;
    fix(FY2013,@children("To Dates"),"Current Date");
    "Labor Rate";
    "Labor %";
    "Sales Per Labor Hr";
    "ST Labor Rate";
    "OT Labor Rate";
    "Labor Productivity";
    "Rev per Occ Room DLH";
    "Rev per Occ Room DPH";
    "Rev per Occ Room GCH";
    "Rev per Avail Room DLH";
    "Rev per Avail Room DPH";
    "Rev per Avail Room GCH";
    "Spending per Guest DLH";
    "Spending per Guest DPH";
    "Spending per Guest GCH";
    "Capture DLH";
    "Capture DPH";
    "Capture GCH";
    "Capture-Avail DLH";
    "Capture-Avail DPH";
    "Capture-Avail GCH";
    "Avg Trans";
    "COS%";
    endfix;
    fix(Plan2013,@children("To Dates"),"Current Date");
    "Labor Rate";
    "Labor %";
    "Sales Per Labor Hr";
    "ST Labor Rate";
    "OT Labor Rate";
    "Labor Productivity";
    "Rev per Occ Room DLH";
    "Rev per Occ Room DPH";
    "Rev per Occ Room GCH";
    "Rev per Avail Room DLH";
    "Rev per Avail Room DPH";
    "Rev per Avail Room GCH";
    "Spending per Guest DLH";
    "Spending per Guest DPH";
    "Spending per Guest GCH";
    "Capture DLH";
    "Capture DPH";
    "Capture GCH";
    "Capture-Avail DLH";
    "Capture-Avail DPH";
    "Capture-Avail GCH";
    "Avg Trans";
    "COS%";
    endfix;
    Clear Current Date Member
    cleardata "Current Date";
    datacopy ^c to "Current Date";

    Is that part of an entire script, I don't see the tokens changing as TimG observed is this being called from a different routine. (are you calling the same script using a for loop?)
    I think instead of updating the subvar everytime, he just used a bat/sh script to run it for various members.
    Regards
    Celvin
    http://www.orahyplabs.com

  • OBIEE MTD, YTD, QTD Functions for an accumulating snapshot fact

    Hello all,
    I would be really grateful if someone can help me out with this:
    I have an accumulating snapshot fact with the foll fields:
    SALE(Sale_date, Org_ID, Proj_ID, Emp_ID, Cust_ID, Amt, Eff_St_Dt, Eff_End_Dt)
    Now because it's an accumulating snapshot, there are multiple entries but with different date_stamps. For example a sale was booked on 1-JAN-2010 as $30,000 but was updated in Feb 2010 to $45,000.
    This is my question: the MTD, QTD and YTD time series calculations all calculate with 2 parameters, the fact and the time dimension.
    How do I calculate the XTD values with sale_date and the effective_dates in mind? because now I have more than just the time dimension. Can anyone suggest how it will be calculated?
    Thanks,
    Abhishek

    Hi Kishore,
    I made a change over here and the error is not occuring now. But different error is occuring.
    Instead of year (which is default root level in Dimension), I picked either Month or Quarter and I am not facing the error (Invalid Expression).
    I have a questions now
    1) is it that we cannot use a column defined as Default Root level in Todate and AGO functions?
    The other part is I have a new error ([nQSError: 22038] Function TODATE requires at least one measure attribute in its first argument.)
    My fact column (FACT Table as partner_id,Id (primary_key) and ..). For the fact column to be the first parameter is that is should have some aggregation rule?
    Please let me know...
    Thanking you in Advance
    Regards
    (S.Prashant)

Maybe you are looking for

  • My iphone 4 will not charge on my pc its not detcated

    my i phone is not geting picked up on my pc help

  • 6GB RAM in MacBookPro ???

    I clicked thru to Ramjet site (www.ramjet.com) and found their sales pitch for 6GB RAM in more recent MBP models. My Profile: Hardware: Hardware Overview: Model Name: MacBook Pro Model Identifier: MacBookPro3,1 Processor Name: Intel Core 2 Duo Process

  • Generating Previews then crashing

    Hi, when I open Aperture it immediately says generating previews when I click on the little whorly thing in the bottom left corner. Yet the previews are never generated and Aperture crashes when I attempt to quit or cancel the preview generation. It

  • Invoke a java application

    I have a java application that I can invoke at the command line as follows: java -classpath ../../.. ptolemy.plot.plotml.EditablePlotMLApplication I want to invoke this application from another application. I've tried the following without any succes

  • HT204266 How do I remove an app from my purchased list?

    The purchased list of my apps shows all the apps I have ever purchased and I would like to remove some if not all of them excluding the ones I still use... How might I go about doing so?