How to do YTD and MTD

Hi all,
Can anyone please explain me how to get the sum of the value of measure till the current date?
FOr ex jan value is 100, feb it is 200 etc now if date of today is slected all should be summed up and shown in the table view.
I tried running sum but its different as it does running sum for the months selected in the prompt.
Regards
Ashish

Hi
Use time-series related metrics created in rpd then make them use in front-end
http://www.rittmanmead.com/2007/04/obi-ee-time-dimensions-and-time-series-calculations/

Similar Messages

  • How to create YTD and MTD reports using Sql Server 2008 r2 report builder 3.0

    Hi All,
    How can I create YTD report from the below data. please help me
    ProdA     ProdB     ProdC     Month     Year
    10       50        40          January      2012
    Data for full Year i.e. from Jan - December 2012
    50       90       100        January       2013
    Data for full Year i.e. from Jan - December 2013
    90       40         30        January        2014
    Data for full Year i.e. from Jan - Till Date 2014
    MercuryMan

    You can use a correlated subquery to calculate YTD in query behind. You can use APPLY operator for that
    so something like
    SELECT *
    FROM Table t1
    CROSS APPLY (SELECT SUM(ProdA) AS TotA,SM(prodB) AS TotB,SUM(prodC) AS TotC
    FROM Table
    WHERE Year = t.Year)t1
    And show TotA,TotB and TotC in the required total row
    Another method is to add required totals in SSRS by clicking on relevant group and choosing Add Total option
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • 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

  • 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

  • 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

  • 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

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

  • Regarding YTD and MTD

    Hi Experts,
    Could you please any one can explain what is YTD, MTD, and TTD and how to calculate them. Is there any documentation for this?
    Please provide me......
    Thanks in Advance
    Ravi

    Hello Sai,
    YTD - Year to date - is a cumulative sum of that wage type in that year till that date.
    MTD - Month to date - is a cumulative sum of that wage type in that month till that date.
    TTD - Total to date - is a cumulative sum of that wage type in all time periods till that date. (Not 100% sure with TTD though - please verify)
    The SAP help portal would have the documentation for these.
    Thanks.

  • How to calculate YTD and Last year YTD on Date in Bex

    Hi,
    I have a requirement in which I need to show the report as following format.
    I need to show    Year>monthday as Hierarchy. user will drill down on Month to Date.
                 Del Qty              Ord Qty              Del  Qty LY              Del Qty YTD                  Del Qty  L YTD
    Year
    > Drill Down to Months
            Jan
            Feb
            Mar
              ---> 1.03.2010
              ---> 2.03.2010
              ---> 3.03.2010
            Dec
    I have Calday, Calmonth, Calyear all three objects.
    Now my question is how I can achive this? On which i need to create hierarchy?
    and how to calculate the YTD at day level.
    Note:- in the selection calyear is mandatory. User wants to display as per year.   So What infoobject I need to take in selection?
    and the way to calculate YTD on Day (in the case also ,where user doesn't give the date in selection)
    Plz reply asap its uregent !!!
    Thanks in advance,
    Amit

    Hi,
    As per my understanding I think YTD means JAN to current date result. I means say if user enter 062005 then result in YTD should be from 012005 to 062005.
    And to do this you need to write a customer exit variable where LOW field of internal table you will put JAN year and HIGH will contain month year entered by user.
    Hope this will help you.
    Suneel

  • How to Display YTD ,MTD

    Hi,
    can any one telme,
    How to Display YTD ( Year to date ) and MTD (Month to date ) in Reports,
    <b>what is the Logic,on which Time Char..i have to cerate YTD, MDT.</b>in my Cube i have All time Char..
    Thank U
    jashaik

    Hi Shaik,
    If you want to populate YTD and MTD based on users selection then you need to create customer exit variables to achieve this.
    Create two customer exit (YTD, MTD) variable for 0DATE. Read the selection screen variable and populate YTD and MTD.
    here are some sample codes: -
    MTD
    data: l_first_day_of_month type D,
            l_s_var_range type rrrangeexit,
            l_s_range type RSR_S_RANGESID.
      if i_step = 2.
        read table i_t_var_range into l_s_var_range
                                 with key vnam = 'WZR_V009'.
        if sy-subrc = 0.
          concatenate l_s_var_range-low+0(6) '01' into l_first_day_of_month.
          clear l_s_range.
          l_s_range-low  = l_first_day_of_month.
          l_s_range-high = l_s_var_range-low.
          l_s_range-opt  = 'BT'.
          l_s_range-sign = 'I'.
          append l_s_range to e_t_range.
        else.
          exit.
        endif.
      endif.
    YTD
    DATA:
      l_s_range TYPE rsr_s_rangesid,
      l_s_var_range TYPE rrrangeexit,
      l_first_date_of_year TYPE d,
      l_indxkey(20) TYPE c VALUE 'WZR_V009',
      l_date TYPE d,
      l_last_date TYPE d,
      l_month TYPE i,
      l_last_month(2) TYPE n,
      l_parameter type d.
      IF i_step = 2.         " after the popup
        READ TABLE i_t_var_range INTO l_s_var_range
                     WITH KEY vnam = 'WZR_V009'.
        IF sy-subrc = 0.
    *---  store content of WZR_V009 in sap memory
          SET PARAMETER ID l_indxkey FIELD l_s_var_range-low.
    *--- clear other parameter to avoid confusion
          GET PARAMETER ID 'WZR_V026' FIELD l_parameter.
          CLEAR l_parameter.
          SET PARAMETER ID 'WZR_V026' FIELD l_parameter.
          CONCATENATE l_s_var_range-low+0(4) '0101'
          INTO l_first_date_of_year.
    *--- fill variable
          CLEAR l_s_range.
          MOVE 'BT' TO l_s_range-opt.
          MOVE 'I' TO l_s_range-sign.
          MOVE l_first_date_of_year TO l_s_range-low.
          MOVE l_s_var_range-low TO l_s_range-high.
          APPEND l_s_range TO e_t_range.
        ELSE.
    *--- variable not found
          EXIT.
        ENDIF.
      ENDIF.
    WZR_O009 is the selection screen variable populated by user entry while qurey is refreshed.
    Hope it helps.
    Thx.
    Soumya

  • 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

  • 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 Previous YTD in MDX query

    Hi All,
    I have two parameters Start Date and End Date. when i select the values of start date  as 5th jan 2014 and End Date as 13 th Jan 2014, i want to see the Count of Tickets from 5th Jan 2014 till 13th Jan 2014 as YTD Count of Tickets and Count
    of Tickets from 5th Jan 2013 till 13th Jan 2013 as PYTD Count of Tickets. The date range is user specific and is dynamic. I have used cube to create SSRS reports.
    Could anyone please tell me how i can pass the selected dates to the query and get YTD and PYTD values?
    Thanks
    Syed Faiz
    SFH

    Hello!!
    if you have user hierarchy in  date dimension that looks like : year-month-date than you could use following mdx query:
    with member measures.[count of tickets last year] as aggregate({parallelperiod([date].[Y-M-D].[year],1,[Date].[Y-M-D].[Date].&[20140104]):
    parallelperiod([Date].[Y-M-D].[year],1,[Date Submit].[Y-M-D].[Date].&[20140107])},measures.[count of tickets])
    select {measures.[count of tickets],measures.[count of tickets last year]} on 0,[your dimensions] on 1
    from yourcube
    where
    {[Date].[Y-M-D].[Date].&[20140104]:[Date].[Y-M-D].[Date].&[20140107]}
    y-m-d is the name of the hierarchy. This query returns results for dates between 01/04/2014 and 01/07/2014.
    In order for the query to work you must map date parameters to ssas date dimension members. You should use strtomember function. 
    These are usefull links:
    http://jsimonbi.wordpress.com/2011/03/22/using-a-date-parameter-in-ssrs-with-mdx/
    http://blogs.lessthandot.com/index.php/DataMgmt/DBProgramming/MSSQLServer/using-a-calendar-for-a-date-hierarchy-pa-2010/
    HTH
    Ivan Roguljić

  • Query: how to use structure and selection and what's the difference between

    Query: how to use structure and selection and what's the difference between these two?
    Would be appreciated if some experts here give examples to demenstrate on how to use structure and selection in query and what's the difference between these two?
    Thanks in advance!

    Hi Kevin,
    1. Well by default all the KF that you include in your query go into a Key Figure Structure. You can additionally have another structure for defining how your chars are laid out. A common example is a Calmonth structure where you have selections for 12 months, quarers and YTD values. This would be a char structure with different selections (for each month, qtr etc)
    2. Yes, a selection with a KF is the same as restricting a KF. You can use am RKF is you have one on the left hand side, or if you need to do this locally in the query, right click the structure and choose New Selection, then proceed to choose your KF and reqd char values.
    Hope this helps...

  • How to use YTD values in webi

    hi
    normally in bex we can use variable , based on user entry we can calculate YTD values, and we will make structure like in column or rows.
    how to make ytd values in webi and create structures.

    HI,
    this needs to be done using EXIT Variables in the BEx Query.
    Ingo

Maybe you are looking for

  • How can I extract multine data using a regex? ... driving me nuts!!

    Hi everyone, I have a file which I'm interested in extracting information from. Here is a snippet: CGCNNNNGTAGTC TAGTCNN ... my goal is to create a regex which extracts out everything beyond the N (on the first line), along with anything on the next

  • Sony HVR-A1 work with FCEXPRESS 3.5 ?? Sounds like a good deal.

    Does the Sony HVR-A1, 1/3-Inch Professional HDV Camcorder work with Final Cut EXPRESS HD 3.5 (Universal) It's NOT on the Apple list of qualified cameras, at: http://images.apple.com/finalcutexpress/pdf/FinalCutExpress3.0_QualifiedDevices.pdf BUT this

  • String comparator

    Hey guys, I am having a problem comparing 2 strings in an if statement. I have an NSString called picked and a string literal that I want to compare in the if statement. I want to see if those two strings are visually the same (meaning they both say

  • Songs i bought on iphone dont show up on itunes

    I bought 3 songs on my iphone 5 and they dont show up on itunes.  Ive tried everything posted in previous forums with zero succes.  Any help?

  • OIM 11gR1 Design Console displays nothing

    The Design Console stopped displaying anything: we can successfully connect to it, but it doesn't show anything at all, no object nor tree on the left/navigation pane, and all menu items are greyed-out. Any ideas what might be going on? All Authoriza