Query (MTD/YTD/LYMTD/LYYTD)

Hi All,
I have to create a query and i got the requirement like this:
4)     Key figures required are
a.     Actual Consumption Qty / per MT (MTD/YTD/LYMTD/LYYTD)
b.     Standard Consumption Qty / per MT  (CY/LY)
c.     AOP Rate  (CY/LY)
d.     AOP Value  (b X c)  (CY/LY)
e.     Consumption Value  (MTD/YTD/LYMTD/LYYTD)
f.     Actual Consumption Rate  (e / a) (MTD/YTD/LYMTD/LYYTD)
g.     Rate Variance ((f u2013 d ) * a)     (MTD/YTD)
h.     Usage Variance ((b u2013 a ) * c)  (MTD/YTD)
i.     ETP Material Consumption    (MTD/YTD/LYMTD/LYYTD)
j.     Packing Material Cost      (MTD/YTD/LYMTD/LYYTD)
k.     Variable Overheads  (MTD/YTD/LYMTD/LYYTD)
l.     Fixed Overheads (MTD/YTD/LYMTD/LYYTD)
m.     AOP Output Qty (MTD/YTD/LYMTD/LYYTD)
n.     Output Qty    (MTD/YTD/LYMTD/LYYTD)
Can anybody expalin me what does mean by  (MTD/YTD/LYMTD/LYYTD)
Do I have to create 4 different keyfigures for this ?
Regards
Shweta

This means that you will have create a key figure whivch shows the valure like this
Suppose you are giving a date as the input to the query...this input date can be any date like creation date of document or posting date of the any doc.
Suppose user gave 04.12.2008 as the input
MTD: Month till date
This should show the value of any key figure for the month of the date which you have given till the day of the month.
So it should give the values between 01.12.2008 till 04.12.2008 in the report for that key figure from the cube.
YTD:Year till date
This should give 01.01.2008 till 04.12.2008
LYMTD:Last year month till date
this can be 01.12.2007 till 04.12.2007
LYYTD:Last year..year till date
This can be 01.01.2007 to 04.12.2007
Yes you will have create different RKF's for each of the key figure restricting them based on the requirement.
Thanks
Ajeet

Similar Messages

  • Date Based Dynamic Member Calculation Performance (MTD, YTD, PeriodsToDate)

    I'm working on an SSAS 2012 cube and I have defined several dynamic calculations based on a Date (MTD, YTD, TD, Thru Previous Month, etc.).
    The cube has a well defined Date dimension and I have set up a DYNAMIC calculated set in the cube as shown below.
    CREATE DYNAMIC SET CURRENTCUBE.[Latest Date]
    AS TAIL(EXISTS([Payment Date].[Calendar Date].[Date].Members,[Payment Date].[Calendar Date].CURRENTMEMBER,"Claim Payment"));
    ... and here is an example of one of my calculations.
    CREATE MEMBER CURRENTCUBE.[Measures].[Face Amount Paid MTD]
    AS SUM(MTD([Latest Date].ITEM(0).ITEM(0)), [Measures].[Face Amount Paid]),
    FORMAT_STRING = "$#,##0.00;-$#,##0.00",
    //NON_EMPTY_BEHAVIOR = { [Claim Payment Fact Count] },
    VISIBLE = 1 , DISPLAY_FOLDER = 'Face Amount' , ASSOCIATED_MEASURE_GROUP = 'Claim Payment';
    This calculation returns the correct results, but performs horribly.  I've noticed that changing the [Latest Date] set to STATIC, performance greatly improves, but numbers are no longer accurate as they are based on the Tail of the Claim Payment measure
    group without considering the filtered dates.  This is because the date is evaluated at process time, but needs to be based on users date selection to be accurate.  Therefore, STATIC does not appear to be an option.  Is there a better way to
    perform this calculation dynamically based on the filtered or unfiltered date dimension?

    Typically I would just do YTD/MTD/etc off the date the user has selected.  It seems like you want to do it based on the last date with data within the range they have selected.  Why not just give the user what they are asking for?
    In other words, why not
    YTD([Payment Date].[Calendar Date].currentmember)

  • 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

  • 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

  • BEX Query for Week, MTD, YTD  for Sales data

    Hi,
    I want to display the sales data for current  Calender day, Cal week, Cal Month to date, Cal Year to Date and also for previous year Cal month, Previous Year Calender Year to Date data.
    Structure is like this. for displaying Sales data. No variables are used on selection screen regarding below structure.
    Calender Day I CalWeek I CalMonth(current) I CalMonth(previous Year) I YTD(current) I YTD(previous Year)
    Please suggest me I used the variable 0P_HAPCY is enough or I have to do any other setups.
    Message was edited by:
            Kaveri

    Kaveri,
         I think 0P_HAPCY doesn't work for all the columns. Well when the user enters date it will also have the year and month right? So what is the relevance of year entered by teh user.
    For the data for calender day, you can get directly from the user entry.
    For calweek data you need to derive week from the calday enetered by the user using customer exit.
    Similarly for month to date, and year to date.
    Use offsets on customer exit variables for previous year calmonth and previous year yera to date data.
    Hope this helps you...

  • How to create default MTD,YTD prompts at universe level.

    I want to create default prompts for mtd and ytd at universe side.
    Please  help me on this issue.

    Hi
    If the universe source is bex query, as per the best practice you can define all Predefined Time Periods like,
    LY        Last Year
    MTD     Month To Date
    YTD      Year To Date
    MTG     Month To Go
    at the Bex query level. so complexity will be decreased while developing the universe  and performance also increase.

  • Last Year MTD/YTD Column Without Using Time Series Function

    I need to calculate MTD and YTD of last year without using time series function.
    My requirement is like:
    We are working on Fiscal year.
    Suppose user will select a date: 15-Jan-2013

    Use a period table with Period Ago attributes and join these to an alias of your fact table. In other words, use a period table (let's say Day is grain) that would have
    WAgo, QAgo, YAgo, (etc.) attributes for each day. Join this table to aliases of the fact tables on these columns.
    Thanks.

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

  • What is MTD & YTD

    Hi Experts
    Could you please update What is YTD (Year to Date) and MTD (Month to Date)
    Thanks

    Hi,
    Ur question:
    If i run a report on 20.AUG.2008 YTD means
    20Aug2008 to 20Aug2007 or
    Financial Year
    20Aug2008 to Aprl2008
    Answer is
    Jan 1st 2008 to Aug 20th 2008.

  • WTD,MTD,YTD

    Hello Gurus,
    We have a requirement where in we need to show the net sales. My report should should display like : At one store on 30th of june what is the total sale, WTD(week to date), MTD(month to date), YTD (year to date). How can we dispaly in the report. we are getting the net sales for a day in the cube but how can i show them wtd, mtd and ytd. Do we need any seperate calcultation or formulas. Your help is really appreciated.
    Thanks and regards
    Rak

    Rak,
    If the definition of the 3 time restrictions are:
    WTD = sales for the entire week.
    MTD = sales for the entire month.
    YTD = sales for the entire year.
    Try this.  Use a user entry variable for 0CALDAY. 
    For WTD, create a user exit variable on 0CALDAY that returns a range for the first day of the week as low and date entered as high.
    Do the same for the other measures MTD and YTD returning the first day of the month or year and the date entered.
    Regards,
    Dae Jin

  • How to calculate MTD,YTD in Repository

    Thanks in advance
    Regards
    Frnds..

    Hello boss,
    Again i am reminding you about closing the threads..
    all your previous threads are kept open..
    If it's answered you have to close them... and assign some points to the users.
    This is for easy future reference...
    For your questions..
    go through these links...
    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/

  • MTD,YTD,PTD without calendar table

              QTY
          Month
          Year
    QTY_YTD
    QTY_MTD
    QTY_PTD
    10
    1
    2010
    20
    2
    2010
    20
    1
    2012
    30
    3
    2012
    Above is how my table looks like and  all are having integer datatypes
    I dont have a calendar table to join hence without calendar table can I compute YTD,MTD,PTD?
    If so what will be the case queries
    Mudassar

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. Temporal data should
    use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect. 
    This is minimal polite behavior on SQL forums. 
    Since SQL is a database language, we prefer to do look ups and not calculations. They can be optimized while temporal math messes up optimization. A useful idiom is a report period calendar that everyone uses so there is no way to get disagreements in the DML.
    The report period table gives a name to a range of dates that is common to the entire enterprise. 
    CREATE TABLE Something_Report_Periods
    (something_report_name CHAR(10) NOT NULL PRIMARY KEY
       CHECK (something_report_name LIKE <pattern>),
     something_report_start_date DATE NOT NULL,
     something_report_end_date DATE NOT NULL,
      CONSTRAINT date_ordering
        CHECK (something_report_start_date <= something_report_end_date),
    etc);
    These report periods can overlap or have gaps. I like the MySQL convention of using double zeroes for months and years, That is 'yyyy-mm-00' for a month within a year and 'yyyy-00-00' for the whole year. The advantages are that it will sort with the ISO-8601
    data format required by Standard SQL and it is language independent. The pattern for validation is '[12][0-9][0-9][0-9]-00-00' and '[12][0-9][0-9][0-9]-[01][0-9]-00'
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Currency translation on Query level (YTD exchange rate)

    Hi Experts,
    I want to implment the currency translation logic in query as below. Please advise what I should do.
    Case 1
    Variable entry screen
    Posting date (range): 01.09.2007 - 31.03.2008
    Query result
    Sales amount figures from 01.09.2007 - 31.12.2007 => use exchage rate at 31.12.2007
    Sales amount figures from 01.01.2008 - 31.03.2008 => use exchage rate at 31.03.2008
    Case 2
    Variable entry screen
    Posting date (range): 01.09.2006 - 30.06.2008
    Query result
    Sales amount figures from 01.01.2006 - 31.12.2006 => use exchage rate at 31.12.2006
    Sales amount figures from 01.01.2007 - 31.12.2007 => use exchage rate at 31.12.2007
    Sales amount figures from 01.01.2008 - 30.06.2008 => use exchage rate at 30.06.2008
    In query, key figure sales amount will be shown in ONE column. Please give a hint how to implement this issue.
    Thanks in advance.
    Cheers,
    Helen

    Hi Helen,
    I guess you are trying to user conversion based on data record. data record intunr dependent on variable entry.
    So for the definition of currency translation, use time reference as end of calender year/quarter and info object as posting date.
    This should work fine for the same key figure, based on posting date, as per the example provided by you.
    Hope I am clear enough.
    Naveen.A

  • Performance of the query for YTD info

    Hi Experts,
    I have a query it takes more time  when you run that query for period or year. Like selection ceritaria is few days info work quick. But when it run for period it take more then 10 minutes.
    Give me suggestions how to speed up the query
    Thanks

    Build aggregates. Goto RSRT, execute and debug, switch on statistics and display aggregates checkbox. See whether an aggregate is hit or why not and build aggregates accordingly.
    Also look at statsitcs if database is performance killer see events 9000ff for this.
    Other hints: reduce start level of your query and remove some chracteristics if possible.
    Regards,
    Juergen

  • Create single-value measure from a measure array

    I need some education on MDX.. :) I have Measure A which gets calculated across Dimensions Dim X, DimY and DimMonthly.
    is there a way or maybe function to create Measure B derived from measure A but selects only single Measure A value attributed to  LastMonthValue (e.g. relative to today, Nov 2013 for today) and crosses DimMonthly on Nov 2013?
    What should I use
    filter - Filter Nov 2013?
    Tail function with item(0)?
    or create  Measure B based on default named set = Nov 2013
    or it could be done only using SELECT?

    Thank you, I realize that. I was just trying to mimic current report layout, which was not OLAP. As a workaround I just set filter to show certain month (Nov 13) and supplied all metrics for that single month - MTD,YTD, LYMTD, LYTD, AVG, Growth rate, etc.
    Will see what user will say :)!

Maybe you are looking for

  • Need Help with Linking Question

    Not quite sure how to do this. I have a gallery page of thumbnails that I want to reference a different layout page for the individual image. What I want to happen is, when you click the thumbnail on the thumbnail gallery page, a new layout page open

  • Why are my Macbook speakers clipping out?

    I have an older MacBook, from back before the aluminum model.  I was rockin out some Alice in Chains the other day and I thought I blew my speakers, but upon inspection I found that anything I plug into the headphone jack on my Macbook (even headphon

  • How to remove random icons in Finder tool bars...

    How do I get rid of these things? My finder windows all have, in addition to the normal items, the poster art for an MP4 file I haven't watched in weeks, a question mark and the icon for an app I rarely use. When I normally click on the MP4 it opens

  • How to have ItemId in the URL in JSF based application

    I have a JSF based application and I am using faces-config.xml to navigate and I am using /redirect to navigate form case to case. The application lists products and upon selecting one, a product detail is displayed. I would like to have productId as

  • Converting from Sinlge-Node Oracle Apps Instance to 2 Node Instance

    Hi, I am in the process converting my Single Instance Oracle Apps 11.5.10.2 instance on Windows 2003 server to a 2 Node instance. I want to move the DB Tier only to another Windows 2003 server. Plz suggest how I can achieve this. Can I use 'adcfgclon