Ytd , qtd and mtd

Hi All,
I am facing the problem when creating the ytd,qtd and mtd . I have 3 levels in my period dim table like year , quarter and month. I have a doubt on which leve i have specify the Chronology key.
In this dim table i have a composite primary key on two columns . Those are year and monthkey. How can i define to the lowest level .
Pls advise me , I would be very thank ful to you.

In my period dim they have taken year and monthkey is the primary key. That's why we call it as a composite primar key. right.
But here i am confusing shall i take these two column in the lowest level of hierachy or not
I am getting the quaters for all the years the same result.
Pls advise me

Similar Messages

  • YTD, QTD and Year grain metrics = ORA-00942: table or view does not exist

    Hi everyone,
    I'm having a weird issue. I've got some GL data that I want to report on in three different grains: Quarter To Date, Year To Date and Entire Year. For the first two measures, I've setup a time dimension and I'm using the ToDate function. Works perfectly. For the third measure, I select the SUM aggregation and then in the Levels Tab, I go to my time dimension and set the logical level to "Year".
    Each measure reports correctly by itself, however, when I join in the three in one report, the who thing blows up on me and gives me an ORA message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 942, message: ORA-00942: table or view does not exist at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    When I only do two of the measures (any two), the report works fine. But it's when I add that third measure in, I get myself in trouble. Additionally, I checked the log file and the report never gets to the point where it generates a physical query. It's only creating a logical query and then it doesn't save the physical query anywhere.
    Can anyone explain what the problem is? Why don't these three measures behave well together? What can I do to force them to co-operate?
    It seems that the real culprit is the entire year measure. It only behaves well with 1 other measure, but once you get two additional measures, it causes the report to get the ORA error.
    Thanks for any help you can give!
    -Joe

    It turns out I was incorrect that there were no physical queries being generated. They were there in the log files, they had so many SAWITH<number> clauses that I thought they were the logical query (i.e. saw_0, saw_1, etc).
    Once I found the physical query, I ran it by hand and also got the table did not exist error. I added in WITH clause by with clause until I got the error to occur. After about an hour of digging, it turned out that a query using a full outer join (about 16 queries in) caused the table does not exist error. I'm not sure what it is about the full outer join that makes Oracle not see the table. When I get some free time I'll dig deeper into that issue.
    But once I realized what was going on, I went into the DB connections and disabled FULL OUTER JOINs. No problem now.
    Like I said, if I find what caused the original problem (i.e. what syntactically was incorrect about the FULL OUTER JOIN), I'll update this post.
    -Joe

  • Step to calculate YTD and MTD in OBIEE

    Hi Experts
    I need to calculate YTD and MTD in OBIEE reports. Please tell me the steps how can i calculate .
    Thanks in advance
    Regards
    Frnds

    Hi..
    Sorry to say this, i am unable to write steps,
    but go through these links.. hope you can understand, if any problem occurs then post here.. we will check
    http://www.rittmanmead.com/2007/04/30/obi-ee-time-dimensions-and-time-series-calculations/
    http://oraclebizint.wordpress.com/2007/11/15/oracle-bi-ee-101332-understanding-todate-and-ago-achieving-mago-qago-and-yago/
    http://oraclebizint.wordpress.com/2007/11/05/oracle-bi-ee-101332-understanding-todate-and-ago-achieving-ytd-qtd-and-mtd/
    If you have any problem after doing these (i mean if any errors), then follow these...
    http://siebel.ittoolbox.com/groups/technical-functional/siebel-analytics-l/time-series-functions-in-obiee-please-asap-1654886
    http://siebel.ittoolbox.com/groups/technical-functional/siebel-analytics-l/help-with-todate-and-ago-time-series-functions-in-obiee-2347570
    Thanks & Regards
    Kishore Guggilla

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

  • QTD and YTD Frequencies

    We will need to set up the QTD and YTD frequencies in the planning application. We have decided not to use DTS due to the reporting limitations.
    Aside from the obvious of setting up a period dimension member for each month frequency (e.g., Feb QTD, Mar QTD, etc...) with a member formula, is there a better way to set this up? We have a report that would display the MTD, QTD, and YTD data in the columns. It would be ideal if the user would only have to change the month point of view and it would update all of the columns instead of having the user update all three. I would appreciate to hear how others have set this up. Thanks!

    You can create a series of dynamic calc accounts in the period dimension. This is really not optimal because your are going to have a very large fully expanded block, but it may make the most sense due to your requirements
    and have the member formulas look like this:
    YTDFEB...Jan+Feb
    YTDMAR...Jan+Feb+Mar
    etc...
    You can also create a dynamic calc version dimension... and use more conditional logic, and try something like this (probably best from a performance standpoint as increasing your fully expanded block is going to drag down the calcs etc...). obviously this may not fit your requirements, but try it out
    IF(@ISMBR("Jan")
    IF(@ISMBR("ACTUAL")
    "Final"->"Jan";
    ELSE
    "Working"->"Jan";
    ENDIF
    ELSEIF(@ISMBR("Feb")
    IF(@ISMBR("ACTUAL")
    "Final"->"Jan"+"Final"->"Feb";
    ELSE
    "Working"->"Jan"+"Working"->"Feb";
    ENDIF
    ELSEIF(@ISMBR("Mar")
    IF(@ISMBR("ACTUAL")
    "Final"->"Jan"+"Final"->"Feb"+"Final"->"Mar";
    ELSE
    "Working"->"Jan"+"Working"->"Feb"+"Working"->"Mar";
    ENDIF
    ELSEIF .....

  • 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

  • YTD and MTD for different scenarios

    Hello,
    i'm looking for a possibility to upload actual figures as YTD value and Forecast figures as MTD value.
    The point is that i don't want to have another dimension to defferentiate between two ways of data input (we have already 12 dimensions :-( )
    Does anyone have any idea how to solve my problem.
    any suggestions are highly appreciated.
    Many thanks,
    Ilias

    There are a number of ways this could be done, but it will depend on what the users/requesters want to forecast against. For example (simple example), it could be added to an "account" dimension, but if they want to see MTD and YTD against balances then that will not work.

  • Please help me in Calculating Sybase IQ Daily,WTD,MTD, YTD,QTD,SPLM,SPLY

    Hi Team,
    Need to Calculate No of Customers from a particular dimension table on these measures Daily,WTD,MTD, YTD,QTD,SPLM,SPLY
    Can anybody help me with the Logic its extremely urgent.
    Thanks all for your help
    Regards,
    Yedu

    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

  • YTD and MTD

    HI experts,
    I have to design a open hub and the requirement sheet only gives couple of field, which i can relate with DSO on which I am building my Open Hub but for amount, it says amount in two fields as:
    MTD amount,
    and YTD amount.
    But in DSO the field it will be get mapped is Amount in Document currency.
    Please help how to achive these two field.

    Hi Rajiv,
    YTD and MTD means: Year to Date and Month to Date.
    You need to write some user exits to get the YTD and MTD for the amount.
    With Regards,
    Ravi Kanth

  • Prior Year YTD and MTD Sales Figure

    Hi,
    I am working on a report where I need to YTD  and MTD figure for current and previous year:-
    I have followed following steps for current year MTD and YTD figures:-
    Create 3 Date variables for Sales on Date with manual input, MTD and YTD on Date characetristics with Customer Exit input. After that I created 3 RKF where I restricted Sales value by each of these date variables.
    Now my question is, Do I need to create two more variables for Prior year MTD and YTD figures with customer exit and then create two more RKF's wherein I will restrict Sales figure with respective variable.
    Is that correct?
    Regards

    Hi,
    you can eighter use the -365 preset  but i suggest creating  2 seerate variables to avoid problems.
    regards
    Ashwin

  • Calculating  YTD AVG and QTD AVG

    Hi All,
    I am trying to crate custom measure formula for calculating  YTD AVG and QTD AVG in BPC 7.0 NW any help

    For this formula I am using Sum divided by..
    MEMBER [MEASURES].[YTD] AS 'IIF([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC",SUM(PERIODSTODATE([%TIME%].[LEVEL00], [%TIME%].CURRENTMEMBER),-[MEASURES].[/CPMB/SDATA]),IIF([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="EXP",SUM(PERIODSTODATE([%TIME%].[LEVEL00], [%TIME%].CURRENTMEMBER),[MEASURES].[/CPMB/SDATA]),IIF([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="AST",([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%TIME%].[LEVEL02])),IIF([%P_ACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="LEQ",-([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%TIME%].[LEVEL02])),-[MEASURES].[/CPMB/SDATA]))))';SOLVE_ORDER=3
    can please help me..

  • Generalizing YTD & QTD calculations

    Hi,
    I am having month as leaf level in the time table. There are 14 months each month is having 26 days in the time table.
    Time table format:
    TIME_KEY     PERIOD_NAME        START_DATE     END_DATE     YEAR_START_DATE     QUARTER_START_DATE PERIOD_YEAR      PERIOD_NUM     QUARTER_NUM
    200701     JAN-07     12/30/2006     1/26/2007     12/30/2006     12/30/2006     2007     1     1
    200702     FEB-07     1/27/2007     2/23/2007     12/30/2006     12/30/2006     2007     2     1
    200703     MAR-07     2/24/2007     3/30/2007     12/30/2006     12/30/2006     2007     3     1
    200704     APR-07     3/31/2007     4/27/2007     12/30/2006     3/31/2007     2007     4     2
    200705     MAY-07     4/28/2007     5/25/2007     12/30/2006     3/31/2007     2007     5     2
    200706     JUN-07     5/26/2007     6/29/2007     12/30/2006     3/31/2007     2007     6     2
    200707     JUL-07     6/30/2007     7/27/2007     12/30/2006     6/30/2007     2007     7     3
    200708     AUG-07     7/28/2007     8/24/2007     12/30/2006     6/30/2007     2007     8     3
    200709     SEP-07     8/25/2007     9/28/2007     12/30/2006     6/30/2007     2007     9     3
    200710     OCT-07     9/29/2007     10/26/2007     12/30/2006     9/29/2007     2007     10     4
    200711     NOV-07     10/27/2007     11/23/2007     12/30/2006     9/29/2007     2007     11     4
    200712     DEC-07     11/24/2007     12/28/2007     12/30/2006     9/29/2007     2007     12     4
    200713     P13-07     12/28/2007     12/28/2007     12/30/2006     9/29/2007     2007     13     4
    200714     P14-07     12/28/2007     12/28/2007     12/30/2006     9/29/2007     2007     14     4
    200801     JAN-08     12/29/2007     1/25/2008     12/29/2007     12/29/2007     2008     1     1
    200802     FEB-08     1/26/2008     2/22/2008     12/29/2007     12/29/2007     2008     2     1
    200803     MAR-08     2/23/2008     3/28/2008     12/29/2007     12/29/2007     2008     3     1
    200804     APR-08     3/29/2008     4/25/2008     12/29/2007     3/29/2008     2008     4     2
    200805     MAY-08     4/26/2008     5/23/2008     12/29/2007     3/29/2008     2008     5     2
    200806     JUN-08     5/24/2008     6/27/2008     12/29/2007     3/29/2008     2008     6     2
    200807     JUL-08     6/28/2008     7/25/2008     12/29/2007     6/28/2008     2008     7     3
    200808     AUG-08     7/26/2008     8/22/2008     12/29/2007     6/28/2008     2008     8     3
    200809     SEP-08     8/23/2008     9/26/2008     12/29/2007     6/28/2008     2008     9     3
    200810     OCT-08     9/27/2008     10/24/2008     12/29/2007     9/27/2008     2008     10     4
    200811     NOV-08     10/25/2008     11/21/2008     12/29/2007     9/27/2008     2008     11     4
    200812     DEC-08     11/22/2008     12/26/2008     12/29/2007     9/27/2008     2008     12     4
    200813     P13-08     12/26/2008     12/26/2008     12/29/2007     9/27/2008     2008     13     4
    200814     P14-08     12/26/2008     12/26/2008     12/29/2007     9/27/2008     2008     14     4
    I am using TIME_KEY column (which is integer) in the calculations. The YTD & QTD calculations are as follows,
    YTD calculation in Universe:
    Select section:
    Sum (Actual)
    Where section:
    (D_TIME.TIME_KEY
    Between     
    to_number(Concat(Substr(to_char(@Prompt('Enter End Period: ', 'A', 'Dim Time\YearPeriod', Mono, Constrained), '999999'),1,5),'01'), '999999')
    And
    @Prompt ('Enter End Period: ', 'A', 'Dim Time\YearPeriod', Mono, Constrained))
    QTD calculation in Universe:
    Select section:
    Sum (Actual)
    Where section:
    (D_TIME.TIME_KEY
    Between
    to_number(Concat(Substr(to_char(@Prompt('Enter End Period: ', 'A', 'Dim Time\YearPeriod', Mono, Constrained), '999999'), 1, 5),
    (Case Substr(to_char(@Prompt('Enter End Period: ', 'A', 'Dim Time\YearPeriod' ,Mono, Constrained), '999999'), 6, 7)     
               When '01' Then '01'
               When '02' Then '01'
               When '03' Then '01'
               When '04' Then '04'
               When '05' Then '04'
               When '06' Then '04'
               When '07' Then '07'
               When '08' Then '07'
               When '09' Then '07'
               When '10' Then '10'
               When '11' Then '10'
               When '12' Then '10' 
    When '13' Then '10' 
    When '14' Then '10'
          End)), '999999')
    And
    @Prompt ('Enter End Period: ', 'A',' Dim Time\YearPeriod', Mono, Constrained))
    Using the above YTD & QTD calculations, I can restrict the periods but the values are not rolling up for each month. For example,
    Period level data:
    ________Jan-10____Feb-10____Mar-10
    Product 1___2________4_________6
    YTD: (the output has to come like the below one, but I am getting the same period value)
    ________Jan-10____Feb-10____Mar-10
    Product 1___2________6_________12
    Please guide me to write a generalized YTD and QTD calculation in Universe level?
    Regards, Sujeev

    Hi Mark,
    Thanks for your reply.
    I made the changes as per your suggestion. I am not getting the values for the YTD, instead i am getting zero values for all the periods. How to solve this issue. But my previous YTD calculation is giving me the value like as follows,
    *Period level data:*
    ________Jan-10____Feb-10____Mar-10
    Product 1___2________4_________6
    But i want the YTD function to perform like,
    *YTD:*
    ________Jan-10____Feb-10____Mar-10
    Product 1___2________6_________12
    YTD calculation for individual months has to be like as follow,
    Jan = Jan
    Feb = Jan + Feb
    Mar = Jan + Feb + Mar...
    How to do it?
    Regards, Sujeev

  • Daily, WTD, and MTD detail based on 0CAL_DAY

    I am trying to set up a report to disply daily, WTD, and MTD based on cal_day, but am having trouble getting the WTD or MTD.  I'm either able to get the WTD detail, but the MTD will look like the WTD or vice versa.  I've tried different variables, hierarchies, summarization, etc. and am out of ideas.  Does anyone have a suggestions?  Following is what is currently displayed in the report, but I need to get a running total on MTD (currently, it looks like WTD).  Thanks for any suggestions!
         Actual Sales          
         (000s) US Dollars          
    Cal yr/wk
    Cal Day     Daily     WTD     MTD
    05/2008     
    2/1/2008     $221     $221     $221
    2/2/2008     $6     $226     $226
    06/2008               
    2/4/2008     $259     $259     $259
    2/5/2008     $514     $773     $773
    2/6/2008     $412     $1,186     $1,186
    2/7/2008     $338     $1,523     $1,523
    2/8/2008     $288     $1,811     $1,811
    2/9/2008     $197     $2,008     $2,008
    2/10/2008     $12     $2,020     $2,020
    07/2008               
    2/11/2008     $261     $261     $261
    2/12/2008     $448     $709     $709
    2/13/2008     $316     $1,025     $1,025
    2/14/2008     $295     $1,320     $1,320
    2/15/2008     $332     $1,652     $1,652
    2/16/2008     $59     $1,711     $1,711
    08/2008               
    2/18/2008     $338     $338     $338
    2/19/2008     $302     $640     $640
    2/20/2008     $400     $1,040     $1,040
    2/21/2008     $514     $1,555     $1,555
    2/22/2008     $653     $2,208     $2,208
    2/23/2008     $294     $2,502     $2,502

    Hi Sandeep,
    Thank you for your reply.  I'm able to get the result sum to display as I need them- WTD shows the WTD total and MTD shows the MTD total, but I also need to get the detail- the MTD needs to show a running total, right now it's only showing the WTD total and resets after each weekly result.  If I remove the weekly result, I can get a running MTD total, but then I lose the WTD running total- it looks like MTD.  For example:
    I currently have:
    Week 1
    Daily    WTD    MTD
    5           5         5
    2           7         7
                 7         7     (Total for week 1)
    Week 2
    Daily     WTD    MTD
    3           3          3
    4           7          7
                 10        14     (Total for week 2)
    What I need to show is:
    Week 1
    Daily    WTD    MTD
    5           5         5
    2           7         7
                7          7    (Total for week 1)
    Week 2
    Daily     WTD    MTD
    3           3          10
    4           7          14
                 10         14       (Total for week 2)
    Is there anyway to get the detail level to display the running MTD total?

  • How to Apply YTM and MTD filter to the Query Calculating "Total Sales" Amt

    Hi,
    I got the requirement to calculate "Total Sales" amount in following format,
    1. Calculate Total Sales YTM per Country
    2. Calculate Total Sales MTD per Country
    I am done with Queries to get Country wise Total Sales amount but stuck at the point, how to apply YTM (Year to Month) and MTD (Month to Date) filter. Can anyone have idea about how to apply YTM and MTD filter to query??
    Regards,
    Priyanka

    Hi,
    I got the requirement to calculate "Total Sales" amount in following format,
    1. Calculate Total Sales YTM per Country
    2. Calculate Total Sales MTD per Country
    I am done with Queries to get Country wise Total Sales amount but stuck at the point, how to apply YTM (Year to Month) and MTD (Month to Date) filter. Can anyone have idea about how to apply YTM and MTD filter to query??
    Regards,
    Priyanka

  • HFM QTD and HYTD have changed place

    QTD and HYTD have changed place - how to fix?

    Hi,
    Could you please be more specific.
    Thanks
    Amith

Maybe you are looking for