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.

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

  • 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

  • MTD/YTD reporting design, query designer

    Hi BI folks,
    I have a requirement to build queries through BEx query designer that show MTD and YTD figures.  I also have multiple versions/value type built into the RKFs already.  I am wondering if there is a way to display YTD/MTD figures, without having to physically restrict them into the RKFs??, (i.e. I would like to have that time restriction sitting on top of the structure as a characteristic).
    I am trying to create more flexibility for the end-user, rather that having a huge amount of selections in the structure representing a particular version and time period.
    Is there some sort of hierarchy or variable definition that anyone can suggest where I can solve this need?
    Thanks.
    - BJ

    BJ,
    this depends on the environment that you are using, but it is fairly simple to do for MTD and YTD.
    as there are multiple variables available to be used for this, I consistently use two in the restriction (but you can play around and see what fits your needs the most).  For each structure, you should restrict on the following:
    MTD:
    Period Characteristic - Restrict to variable 0P_PER3
    Fiscal Year Characteristic - Restrict to variable 0P_FYEAR
    QTD:
    Period Characteristic - Restrict to Value range from period 00 to variable 0P_PER3
    Fiscal Year Characteristic - Restrict to variable 0P_FYEAR
    The reason you should have the Fiscal Year there is that you can use the text variable to set the column headers.
    Be careful that you use the right KF for this.  You need the periodic activity for the KF.  The reason Period 00 is included as that is where the balance from the prior year is carried over, so if you want to have the YTD values for the Balance Sheet, you would want to include that.  This scenario is the only option in BCS, and it doesn't have the Cumulative values.
    you can also use the cumulative values, but that depends on how the KF's are set up
    Pavel

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

  • Calculate/Display QTD in PL report

    Hi,
    We have 4 quarters, J-M, A-J, J-S, O-D.
    I need to calculate Quarterly balance which I am able to calculate by creating 4 RKF by using 0FISCPER3 object and one Key figure.
    My query is I need to display QTD balances of the entered month only,
    lets say entered month (0fiscper3) is May which according to the business falls under 2 QTD so report should display balances of 2 QTR only and should not display any other QTD balances. Currently my report shows all 4 quarters which user is not interested in.
    Also, I need to display Month name as a heading for the infoobject 0FISCPER3. I tried using 0T_FPER3 and 0P_PER3 but did not display the month namr.
    Thanks in advance.
    Shivani

    You can create an exit variable for this (standard variables also exist).
    For planning you should think on which time dimension you want to plan for:
    periods, quarters or both ... If you have an input query in which a quarter is combining 3 periods, it will not be plannable. You can use characteristic quarter for this and automatically distribute the values to the periods ...
    D

  • 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

  • Sales Report - Shipped, Open By Region then Country and so on

    Hi All,
    We are new to BusinessOne. We have just rolled it out and i have to develop a report in businessobjects using B1 data which resides on sql server 2012. What my requirement is that they need a MTD sales report by customer group, shipped and open.
    My question is which tables i need to query to get this information from?
    I need all sales that were shipped and are open by customer group for the current month to date.
    If i am not clear, please ask for detail and i will try my best again. Thank you.

    Hi,
    Please use below tables and link as shown below
    ORDR and  RDR1 for sales order
    ODLN and DLN1 for delivery order
    ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry left join DLN1 T2 on T2.[BaseEntry]  = T1.docentry and T2.[BaseLine]  =  T1.[LineNum] INNER JOIN ODLN T3 ON T2.DocEntry = T3.DocEntry
    Thanks & Regards,
    Nagarajan

  • 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

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

  • Need a macro

    Helo Gurus
    please let me know how to write  a macro for the below
    there is a report where i have MTD,QTD,YTD,FY tabs for all the 7 products with Actual,plan and Budget versions
         all the tabs must expand based onthe selection of the month in the MTD tab which I have accomplished
         MTD is fine, when in QTD i want to get the month data for all the three versions ( i know i can get this by hidden sheets with the expansion on all the three versions but this is going to be 7 * 3 which is 21 with all the 12 months for each i.e this is going to be a performance problem and an issue with excel being slow, since already there are 4 Tabs)
    the issue with QTD is , since our year starts in april and the quarter is aril may and june , and if the user selects may in MTD the report must drive may to QTD and YTD respectively
    when may in QTD the accumulation must happen for april and may
    if YTD also goes the same
    thanks

    Hi,
    I agree, there is no macro needed.
    When you select the QTD measure, when pointed to MAY, you will get the sum of the April & May data.
    MTD, or Periodic measure selection will give you the MAY data.  And, YTD will give you the sum of the Aptil + May data.
    The point here is, that you do not need to pull in all 12 months of data into your spreadsheet.  That beign said, if you require reports for each month to be run over and over, then yes, it will be better to pull in all the data at once and then use formulas to pull of the columns that you need.
    If you will be doing this, then look into the Excel formula "Indirect".  That allows you to point to a particular column to pull in the data that is selected.

  • 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

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

Maybe you are looking for

  • Getting error when LDAPSync is configured on postinstallation of OIM

    Hi All, While performing LDAP sync in OIM-AD integration, we are facing issue for loading of  LDAPContainerRules.xml. We have done all configuration as per oracle documentation on LDAPSync for OIM 11gR2 : http://docs.oracle.com/cd/E27559_01/integrati

  • Unable to amend life of an asset

    I am attempting to amend the life of an asset by navigating to Assets => Asset Workbench, querying the asset and then selecting the 'Books' button. The details of the asset appear and then withih the depreciation tab under Method, I amend the life in

  • BAPI or Function module for updating shipment

    Hi experts, Do you know any bapi or FM to update shipment events (i actualy want to update events and dates under 'more dates' tab in vt02n) ? If so, please provide details about FM and what interface parameters to pass. Thank you very much! Kind reg

  • How to detect SQL type to avoid SQL injection

    Hi, I work in a gsm company and we develop a program to make trend analysis. Users of this program know how to write SQL statements. I want them to write specific sql statements as input statement of my program (SELECT ... from ...). Mostly SELECT st

  • Transfer mail accounts in lion

    Old hard drive got loaded up so I transferred my system to a new hard drive using Migration Assistant. Everything worked fine: users, applications, etc except no mail accounts. I have a number of emails for work, home, school, etc so I don't really w