On the AGO Function need to Create TODATE function with Diff levels - MTD,Q

Hi All,
My Basic Requirement is to Create Time Series Function on AAA ie ( Month To Date , Quarter To Date and Year To Date )
The Logic for the AAA = XXX / Previous 3 Months Revenue.
we know that we can use the AGO Function to create Previous 3 months Revenue with Month is Level . But the issue is .... i cant use AGO function since i need to perform Year to Date, QTD and MTD upon 'AAA' this OBIEE doesn't permit to use nested time series functions upon varying levels .
So How can i Resolve the issue ie creation of TODATE function on the AGO Function with Diff levels
Thanks,
Swapna S

hi,
for your requirement create three repository variables like
for previous 3 months create repository variable like
select to_char(sysdate,'yyyymm') -3 from dual;
for month to date first calculate first day of the month
select To_Char(Add_Months(Last_Day(Sysdate),-1) + 1,'MM/DD/YYYY') from dual;
after put a filter in answers date between first date of the present month and current date
create the same thing for year to date
calculate first date in the year like following query
select To_Char(Trunc(Sysdate,'YEAR'),'MM/DD/YYYY') from dual;
after that apply filter date b/w first date in the year and current date
i hope it works for your scenario
Regards
Naresh
Edited by: Naresh Meda on Nov 10, 2008 2:08 AM
Edited by: Naresh Meda on Nov 10, 2008 2:12 AM

Similar Messages

  • NqsError:22044 Nesting of Ago or TODATE funct with diff level not supported

    Hello All,
    I am facing an issue while using the timeseries function in OBIEE.
    Firstly, I need to calcuate the To-date function for a measure at Year-Level( Time Dimension) and then I need to calculate the Month Ago function on that column, So the function would look like this
    "Ago(ToDate(Measure, Year) , Month, 1) "
    But it is throwing me an error as shown in the subject line, can you please let me know if there is any workaround for this one.
    Let me know if you need more clarification on this one.
    Regards
    RG

    Hi,
    I have faced the same issue, i have resolved by using below method obiee-date-expressions-reference i have to map your Period (day,month,year etc) able and fact table
    while joining in physical layer you can use it.
    Ex: lets try it below kind for your case
    Last Day of the Previous Month
    TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE))
    From right to left the first TIMESTAMPADD returns the first day of the Current Month. The second TIMESTAMPADD subtracts a month to arrive at the first day of the previous month.
    Last Day of Previous Year
    TIMESTAMPADD( SQL_TSI_DAY , -1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1,
    CURRENT_DATE))
    From right to left the first TIMESTAMPADD returns the first day of the current year. The second TIMESTAMPADD subtracts one day to arrive at December 31st of the previous year.
    Refer :
    http://obieeelegant.blogspot.com/2011/06/obiee-date-expressions-reference.html
    hope it's clear.
    Thanks
    Deva

  • What is the need of creating partner functions for sales document type.

    Hi SAP (SD-GURUS),
    Actually we create partner functions  before creating customer ex: sold to party, ship to party, bill to party, and payer.
    These partner functions are going to be copied into sales order while processing sales order.
    Again what is the need of creating partner functions for sales document type.
    Thanks&Regards
    sreenivas peruru

    There are some Partners you could enter at Sales ORder Level. E.g. Sales Person, Employee Responsible, Forwarding Agent, Broker, etc.
    Thus these partner Determination need to be carried out at Sales Order Level & not at Customer Master level.
    So we have to configure partner Determination for various levels e.g. Customer Master, Sales Order, Delivery level etc...
    Hope this helps...
    THanks,
    Jignesh Mehta

  • Need to create P.O with reference to only P.R

    2)Need to create P.O with reference to only P.R. Mean without P.R system should not allow to create P.O how to do?

    hi
    try this
    go to SPRO-MM-Purchasing- Authorization Management-Define Function Authorizations for Buyers
    click on Function Authorizations: Purchase Order
    create  a new entry and
    check ref to PR then
    goto SU01 and on parameter tab enter the Parameter id = EFB and parameter value is what you define in the functional authorization key
    Enter the desired key as a parameter under the parameter ID EFB in the user master
    Also make sure that,In OMET in details of function Authorization>Possible ref. objects>Tick only Ref. to purchase requisition and not anything else.
    this way u can restrict the user from creating po with ref to pr

  • I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    do I need to create another account with a different email account
    Yes, the email addresses need to be unique to each device. You may use the same Apple ID on each device, but the email address used by each device needs to be different.

  • Function module to create Inbound delivery with reference to Purchase Order

    Hi experts,
    I want to create Inbound delivery with refernce to Purchase Order. But I want to create item wise. For example If one purchase order is there with 10 line items. 10, 20, 30, 40, 50......100.
    If I am showing report for Purchase Order with select option and if I select first 5 line items 10, 20, 30, 40, 50 then my program should be create one Inbound delivery for selected line items only. I have tried BDC for Tcode VL31N, but its not worked. Is there any Function module to create Inbound delivery with reference to Purchase Order for selected line items????????

    Hi,
    Try FM RV_DELIVERY_CREATE or GN_DELIVERY_CREATE.
    For creating a delivery wrt PO u 1st need to have a sales order i guess.
    Regards,
    Amit

  • Function module to create log entry with notification

    Hi All,
      I need to create log entry with respect to functional location and it should be attached to notification in transaction LBK1.
    for creating log entry we have separate function module - DIACL_LOG_ENTRY_CREATE.
    for creating Notification also we have separate function module
    BAPI_ALM_NOTIF_CREATE.
    how to link this notification to log entry.
    is there any function module available.
    Its urgent.
    Points will be awarded.
    Regards,
    vinoth.

    Hi,
    Try FM RV_DELIVERY_CREATE or GN_DELIVERY_CREATE.
    For creating a delivery wrt PO u 1st need to have a sales order i guess.
    Regards,
    Amit

  • Need to create a textinput with effects

    I need to create a textinput with effects- it should show a blue icon infront of it when the icon is focused and the blue icon should fade afterwards. I am pretty sure I need to use skin but the problem is I have only two states with textinput control and not sure how I would use those to ensure a handling mouse hovering effect. Right now I am not able to create a custom component bacuae I have to modify the whole code wherever there is textinput control.
    Thanks in advance.
    Rachel

    You might find this blog post useful: http://flexponential.com/2010/01/24/custom-focusskin-for-spark-components-in-flex-4/

  • I need to create a link with confirmation..

    Please I need a help o this :
    I need to create a link with confirmation, it means that after clicking the link it does not redirects to the next page, but first it displays a question like "Are you sure you want to go to page XYZ" ? Yes / No  .If you click "No"  then message just dissapears, if you click "Yes" it goes to the next page...
    Any dea ? thanks in advance...

    <a href="XYZ.php" onclick="return confirm('Are you sure you want to go to page XYZ?')">XYZ.php</a>

  • Hello. I have an iPad2, and iMovie software. My main problem, for the moment, is the length of the videos: I can´t create a video with more than 56 seconds. When I try, the app shuts off... Can anyone help me?

    Hello. I have an iPad2, and iMovie software. My main problem, for the moment, is the length of the videos: I can´t create a video with more than 56 seconds. When I try, the app shuts off... Can anyone help me?

    Sorry. We can't help you. It's no longer an iPhone. Apple won't touch it.
    Take it to whoever replaced the screen and see if they can help you.
    iPhones are not user servicable and Apple does not sell iPhone parts at all. I'd be surprised if you were actually able to back it up at this point. It sounds like it's completely borked.

  • Need to monitor event ID with Event Level :Critical , Also how to generate (powershell or otherwise) an event with Event Level :Critical

    Need to monitor event ID with Event Level :Critical , Also how to generate (powershell or otherwise) an event with Event Level :Critical

    Hi
    First, we Need to clarify what do you want.
    1) You want to Monitor a Windows Event with the severity "Error" (there is no Critical for Windows Events, only Error").
    2) You want to create an Event in SCOM. I think you if you talk about "Event" in SCOM you mean actually an Alert.
    There is no direct way like a tool/powershell script  of only creating an Alert in SCOM only if you are going to use the SCOM SDK
    http://msdn.microsoft.com/en-us/library/hh329086.aspx or using the Orchestrator Create Alert activity.
    If you want to create a SCOM alert depending on a Windows Event you either can create a rule
    http://technet.microsoft.com/en-us/library/ff730470.aspx or a Monitor
    http://jimmoldenhauer.blogspot.ch/2013/03/scom-2012-how-to-generate-alerts-from.html 
    Cheers,
    Stefan
    Blog: http://blog.scomfaq.ch

  • How to create a dimension with one level

    I created a cube with some dimensions, that have only a level, and this kind of dimensions bring me some problems when I want to use "OracleBI Spreadsheet Add-In" to consult the cube.
    The problem is that I can’t create a hierarchy with only a level, so the dimensions are created without a hierarchy.
    When I make a query in the “Query Builder” of "OracleBI Spreadsheet Add-In", I have some problems in the step of choosing what levels I want to select for a determined dimension, if that dimension is a dimension without a hierarchy.
    What really happens is that, I can see all the values for the level in the left box, but I don’t achieve to put one of these values on the right box. I can click in the next button, to jump to the next dimension, and all the process of selection for the other dimensions occurs without problems, except for the dimensions that haven’t a hierarchy.
    If I select only dimensions that have a hierarchy, all works perfectly, but if I select one or more dimensions that don’t have a hierarchy, the following problems occur:
    => I can’t select the values of the level that I want to see (only for dimensions that don’t have a hierarchy)
    => When I click in “end” button of the “Query Builder”, it doesn’t finish and blocks.
    The solution is to create a hierarchy, but I can’t create a hierarchy with only a level. Is it possible to create a “top level” without a source column in the dimension table? So I will have two levels, and with these two levels I can create a hierarchy that resolves the problem.
    What is the solution for this problem?
    Regards,
    Rui Torres

    How I can resolve my problem?
    I don’t want to use the CWM2 PL/SQL packages, because with these packages I only can create MOLAP cubes.
    I only want to create ROLAP cubes, but I can't create a hierarchy with one level.
    Why the "OracleBI Spreadsheet Add-In" doesn’t work with dimensions, that not have hierarchies?
    How I can resolve this BIG problem?
    It is very URGENT!!!!
    Regards,
    Rui Torres

  • I need to create RFC function module which creates the IDOC

    Hi-
    Any idea how to create RFC function module which creates the outbound IDOC. If you have any sample code please forward to me.
    Thanks,
    Sony

    My Problem is
    Whenever they create Invoice using T-code's like FV65(Parked Document), automatically should create IDOC's...
    I have used message type FIDCC1 but this message type is usefull only for Posting documents.
    1. Whenever they create parked document, entries will be stored in BKPF(Parked Document-Filed-BKPF-BSTAT = 'V') and Bseg....
    2. I have to read entries from those tables and should create IDOC...
    3. I checked FM's(FI_IDOC_CREATE_FIDCC1, FI_IDOC_PREPARE) but are not useful...
    4. Now I need to write one RFC function module and that FM should create the IDOC's....
    Can anyone please help me out?
    Thanks,
    Sony

  • Need to create a function that will act like the save as browser function

    I need to create a button on a web page that will open up a save dialog box and then save the current web page as an .html file on the persons hard drive. The reason for this is because the window is a pop up that does not have the browser menu or any toolbars showing just the what we call print view. This window was used only as a print view so people can print the form out but now the powers that be want a save button as well so the people can save it to there HD. I can do this in IE using javascript but no other browser allows that so I need to create something in java. I have read about the setHeader() to download the file but I am sort of new and from what I've read it all sounds like you will be downloading a specific file and not the web page as a file. Anyone have any ideas as to how I can accomplish this? It doesn't have to be the save as dialog box just a way the person can get the current web page on their HD for viewing offline and done at the press of a button. Thanks.

    You'll be wanting to output a PDF or the like instead of a web page. That's the solution to your problem.
    Please next time consider using a line break or two when you post. Thank you for your consideration.

  • Need a function module to create production order with reference

    Hi
    I need a function module to create a production order with reference to an existing order. There is no BAPI available for SAP 4.7 release. I found that the function module CO_ZF_PRODUCTIONORDER_CREATE does not create with reference to an existing order.
    Any help will be rewarded.
    Pavan

    Dear Pavan,
    Unfortunately there is no FM for this..
    Cheers
    Nitesh

Maybe you are looking for