How to calculate the measure for the next month using the AGO Function

Hi,
I need to calculate the measure for the current month and the next month.
Can anyone please let me know the syntax to use AGO function for the above requirement.
Regards,
Ambika Nanda.

Hi.
You can also use Oracle analytic functions LAG and LEAD inside the EVALUATE obiee function. The second one will give you the next measure.
For example the report is:
TIMES.CALENDAR_MONTH_DESC
SALES.AMOUNT_SOLD
LAG column: EVALUATE('LAG(%1, 1) OVER (ORDER BY %2)' AS DOUBLE, SALES.AMOUNT_SOLD, TIMES.CALENDAR_MONTH_DESC)
LEAD column: EVALUATE('LEAD(%1, 1) OVER (ORDER BY %2)' AS DOUBLE, SALES.AMOUNT_SOLD, TIMES.CALENDAR_MONTH_DESC)
And the result is:
CALENDAR_MONTH_DESC--------AMOUNT_SOLD--------LAG--------------LEAD
2000-01----------------------------------8025513.84---------------------------8474475.88
2000-02----------------------------------8474475.88----- 8025513.84-----7439568.24
2000-03----------------------------------7439568.24------8474475.88-----7062040.48
2000-04----------------------------------7062040.48------7439568.24-----7497971.40
Regards
Goran
http://108obiee.blogspot.com

Similar Messages

  • How to build a dll for labview pda, which uses the intel ipp primitives in it

    Hi all,
    For my application, I need to call a c dll from Labview PDA, and in the c function i need to use intel IPP function. When i call my dll, i get an error saying the ippfunction i use, say "ippsCopy_16s missing c or vi file". Can someone tell  me what I might be doing wrong?

    Hi Vani,
    When using a DLL in a PDA there are some special considerations you have to take. Please take a look at the following knowledgebase describing the process.
    Eli S.
    National Instruments
    Applications Engineer

  • What is the workflow for deleting a VM using the Python SDK?

    Following the available Azure Python SDK documentation, I use ServiceManagementService.delete_deployment() followed by ServiceManagementService.delete_hosted_service().  This works correctly to delete the VM, however it leaves the boot VHD still present.
     If I wait until the orphaned disk no longer has an associated VM (through the Disk.attached_to field), I am able to successfully call ServiceManagementService.delete_disk().
    Is this the correct way of doing this?  Seems like there might be a better way to suspend/stop the VM, detach the disk, delete the VM and delete the disk, but I see no API for detaching a disk from a VM.
    Much preferably, I would rather delete a VM and know that the associate disk(s) are also automatically deleted.
    Thanks in advance.

    Sorry for the delay.
    The procedure you follow is correct. Sometime, when you delete the VM, the VHD of the VM remains in the lease connection. Once the lease is disconnected you will be able to delete the VHD.
    However, you may refer the following link which provide clear procedure for performing common service management tasks from Python:
    http://azure.microsoft.com/en-in/documentation/articles/cloud-services-python-how-to-use-service-management/
    Regards,
    Manu

  • Calculate NWC (Average for last 4 Month)

    Do someone know how to calculate NWC (Average for last 4 Month) using @AVG?FIX ("2002", Jan)     "Net Working Capital (Average for last 4 Month)" = @AVG(SKIPMISSING, "Net Working Capital", "2001"->Oct,"2001"->Nov, "2001"->Dec, "2002"->Jan);ENDFIXIn my case, we split the Year and Month Dim in our outline.Can this script work in under our situation???Thanks

    Try usingFIX ("2002", Jan) "Net Working Capital (Average for last 4 Month)" = @AVG(SKIPMISSING, "Net Working Capital"->"2001"->Oct,"Net Working Capital"->"2001"->Nov,"Net Working Capital"->"2001"->Dec,"Net Working Capital"->"2002"->Jan); ENDFIX

  • How to set up two POP e-mail accounts using the same POP and SMTP servers

    I have an e-mail address based on a domain I purchased which is based on my company name. Now retired, I have purchased a new domain with a simpler, personalised name. My original e-mail account uses the incoming (POP3) and outgoing (SMTP) mail servers operated by my ISP; mail.btinternet.com.
    I have set up a new account on my PC in Microsoft Outlook, and have successfully sent and received emails using the new e-mail address taken from my new domain name.
    I have now tried to mirror this on my iPhone, but every time I enter all the relevant data for the new e-mail address, user name, password, mail servers etc., and then press 'save', I get a pop-up which says: "xxxx" is Already Added  This POP account has already been added to your iPhone. ("xxxx" is the name given to my original e-mail account).  Nowhere have I input "xxxx" in the course of setting up the new account.
    I need both accounts operational during an extended switch-over period as I alert everyone to the e-mail change over. Can anyone suggest a solution to this problem?

    What targeting the Mail.app preference file, do the following:
    Quit the Mail.app first and using the Finder, go to Home > Library > Mail. Copy the Mail folder and place the copy on the Desktop for backup purposes.
    Using the Finder, go to Home > Library > Preferences > com.apple.mail.plist. Move the com.apple.mail.plist file to the Desktop.
    Note: Moving the com.apple.mail.plist file out of the Preferences folder will require re-entering all email account information when re-launching Mail.
    The only exception to this is if you have a .Mac account which will be recreated automatically and/or if you created an email account as part of the computer setup assistant when first turning on the computer when new.
    Launch Mail and decline any prompt to import mailboxes. After re-entering all email account information, the Mail.app should rediscover the existing account named folders and mailbox files at Home > Library > Mail.
    After confirming all mailboxes were successfully rediscovered, you can delete the copy of the Mail folder and old com.apple.mail.plist file from the Desktop.
    Test if this resolves the problem.

  • [svn:fx-trunk] 10545: Make DataGrid smarter about when and how to calculate the modulefactory for its renderers when using embedded fonts

    Revision: 10545
    Author:   [email protected]
    Date:     2009-09-23 13:33:21 -0700 (Wed, 23 Sep 2009)
    Log Message:
    Make DataGrid smarter about when and how to calculate the modulefactory for its renderers when using embedded fonts
    QE Notes: 2 Mustella tests fail:
    components/DataGrid/DataGrid_HaloSkin/Properties/datagrid_properties_columns_halo datagrid_properties_columns_increase0to1_halo
    components/DataGrid/DataGrid_SparkSkin/Properties/datagrid_properties_columns datagrid_properties_columns_increase0to1
    These fixes get us to measure the embedded fonts correctly when going from 0 columns to a set of columns so rowHeight will be different (and better) in those scenarios
    Doc Notes: None
    Bugs: SDK-15241
    Reviewer: Darrell
    API Change: No
    Is noteworthy for integration: No
    tests: checkintests mustella/browser/DataGrid
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-15241
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase .as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColu mn.as

    Hi Matthias,
    Sorry, if this reply seems like a products plug (which it is), but this is really how we solve this software engineering challenge at JKI...
    At JKI, we create VI Packages (which are basically installers for LabVIEW instrument drivers and toolkits) of our reusable code (using the package building capabilities of VIPM Professional).  We keep a VI Package Configuration file (that includes a copy of the actual packages) in each of our project folders (and check it into source code control just as we do for all our project files).  We also use VIPM Enterprise to distribute new VI Packages over the network.
    Also, as others have mentioned, we use the JKI TortoiseSVN Tool to make it easy to use TortoiseSVN directly from LabVIEW.
    Please feel free to contact JKI if you have any specific questions about these products.
    Thanks,
    -Jim 

  • Both my boss and I have the iPhone 5C for Verizon.  When I text, I have the little microphone next to the space bar, allowing me to use the speech to text function.  He does not.  How do you turn this on or remedy this problem?

    Both my boss and I have the iPhone 5C for Verizon.  When I text, I have the little microphone next to the space bar, allowing me to use the speech to text function.  He does not.  How do you turn this on or remedy this problem?

    Does your boss have Siri turned ON? See Settings > General > Siri.

  • How can I derive Measures for coming periods like (Next Qtr – Measure)

    Hi All,
    How can I derive time series measures for coming periods just like Qtr Ago and Year Ago I want Next Qtr and Next Year columns in my fact, how can I achieve this?
    I have a report which talks about Actual recorded values to the projected values of current quarter , Ago Quarter , Next Quarter
    Ago Qtr | Current Qtr | Next Qtr
    xxx | xxxx |xxxxx
    yyy | yyy |yyyy
    Ago(measure, level, no of periods)
    Thanks,
    SMA
    Edited by: SMA on Sep 21, 2010 4:23 PM

    Hi All
    I have derived Next to Next Qtr starting date using the following formula
    TIMESTAMPADD( SQL_TSI_QUARTER , 3, TIMESTAMPADD( SQL_TSI_QUARTER , -(1), TIMESTAMPADD( SQL_TSI_DAY , -( EXTRACT( DAY_OF_QUARTER FROM "Business Intelligence"."Dso Date Dim"."Date")) + 1, "Business Intelligence"."Dso Date Dim"."Date")))
    Extracted quarter from the derived date as well
    EXTRACT( QUARTER_OF_YEAR FROM "Business Intelligence"."Dso Date Dim"."Next Qtr Start Date")
    However I could not create a measure for next quarter using Ago or ToDate functions in BMM of OBIEE
    Please let me know if any one worked on this before
    Thanks,
    SMA

  • HT204053 i have an apple id on my ipod & another for my macbook & iphone.  how do i change the id for my ipod to match the one for my macbook & iphone?

    i have an apple id on my ipod & another for my macbook & iphone.  how do i change the id for my ipod to match the one for my macbook & iphone?

    To change the ID:
    For iMessage, go to Settings>Messages>Send & Receive (Receive At in iOS 5), tap the ID sign out, sign back in using the other ID.
    For FaceTime, do the same thing in Settings>Facetime.
    For Purchasing, do this in Settings>iTunes & App Stores (Settings>Store in iOS 5).
    For iCloud, you'll have to delete the account, create a new account with the other ID, and migrate your data to the new account.  Before deleting the account, if you have any photos in photo stream that are not in your camera roll or backed up somewhere else save these to your camera roll or you will lose them.  To do this, open the photo stream album in the thumbnail view, tap Edit, tap all the photos you want to save, tap Share, then tap Save to Camera Roll.  Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account. When prompted about what to do with the iCloud data, be sure to select Keep On iPod.  Next, set up a new iCloud account using a different Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom).  Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.

  • Hello how can i transfer photo for my old computer to the new one

    hello how can i transfer photo for my old computer to the new one

    If your computers are connected to the same network, you can turn on Sharing to allow you to see the contents of one from the other and do transfers. If there is no network, you can use "target disk mode" explained here: http://support.apple.com/kb/PH13842
    Otherwise, you will need to use external storage such as a USB flash drive.

  • How to get column names for a specific view in the scheme?

    how to get column names for a specific view in the scheme?
    TIA
    Don't have DD on the wall anymore....

    or this?
    SQL> select text from ALL_VIEWS
      2  where VIEW_NAME
      3  ='EMP_VIEW';
    TEXT
    SELECT empno,ename FROM EMP
    WHERE empno=10

  • How to enable remote debugging for a session other than the current one

    Hi all,
    I am trying to figure out how to enable remote debugging for a session other than the one I am currently using.
    More specifically, we have an application that is making database calls to Oracle 11gR2. Something is causing an exception during this invocation. My system is currently not set up to recompile said application, so I can't just add the debug call to the code and recompile. Therefore I would like to be able to log into the database (as sys, if necessary) and invoke dbms_debug_jdwp.connect_tcp on the desired session.
    The docs indicate that I should be able to do so:
    dbms_debug_jdwp.connect_tcp(
    host IN VARCHAR2,
    port IN VARCHAR2,
    session_id IN PLS_INTEGER := NULL,
    session_serial IN PLS_INTEGER := NULL,
    debug_role IN VARCHAR2 := NULL,
    debug_role_pwd IN VARCHAR2 := NULL,
    option_flags IN PLS_INTEGER := 0,
    extensions_cmd_set IN PLS_INTEGER := 128);
    But when I try (even as sys), I get the following:
    exec dbms_debug_jdwp.connect_tcp('1.2.3.4',5678,<session id>,<session serial>);ORA-00022: invalid session ID; access denied
    ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
    ORA-06512: at line 1
    00022. 00000 - "invalid session ID; access denied"
    *Cause:    Either the session specified does not exist or the caller
    does not have the privilege to access it.
    *Action:   Specify a valid session ID that you have privilege to access,
    that is either you own it or you have the CHANGE_USER privilege.
    I've tried granting the 'BECOME USER' privilege for the relevant users, but that didn't help. I read something about having to set some kind of ACL as of 11gR1, but the reference documentation was very confusing.
    Would someone be able to point me in the right direction? Is this even possible, or did I misread the documentation?

    Interesting deduction, that would be very useful indeed. I hate recompiling just to add the debug call, and it can't be done in our production environment. But it seems unlikely to me it would be implemented this way.
    I would cross-post this in the SQL AND PL/SQL forum though, as this is really a database issue, not with the SQL Developer tool. Do add the links to the other posts in each.
    Regards,
    K.

  • So my phone is plugged into the computer for a software update and the update went halfway through and hasnt made any advancements. how do i get my phone back without losing anything?

    so my phone is plugged into the computer for a software update and the update went halfway through and kind of stopped. it says its still updating but I cant figure out how to stop it and just get my phone back. how do i get my phone back without losing anything?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • We bought an iphone 4s for our daughter. We transfered it to straight talk. She can make calls and text no problem. She can use the WiFi but is unable to use the internet or mms. How do we update the APN?

    We bought an iphone 4s for our daughter. We transfered it to straight talk. She can make calls and text no problem. She can use the WiFi but is unable to use the internet or mms. How do we update the APN?

    To clarify for anyone who is still having any problems doing this.
    1. Unlock your phone with the carrier ( I know the process will work if it is jail broken but I am assuming you dont want to void the warranty on your phone) NOTE: even if you purchased the phone outright at Wal-Mart it is still locked to ATT so you will have to unlock the phone.  If it's already unlocked skip to step 2.  This works and will work even if you update the phone. 
    1a Here is the link to unlock a ATT iphone. Simply follow the instructions https://www.att.com/deviceunlock/client/en_US/
    2. Get a T- mobile SIM. Even if you don't want the service, if you feign interest, they will send you one for free or 99cents. If you need it now you can get one at a T-mobile store too.
    3. Once you have both your Straight talk SIM and your T-mobile SIM follow these instructions:http://www.youtube.com/watch?v=mFFf5uqk18M
    4. If you have any remaining questions look at all the responses posted previously on this thread or check out the Howard Forums Wiki: http://wiki.howardforums.com/index.php/Straight_Talk_iPhone
    Everything should work flawlessly at this point.  If not let me know and I'm happy to help when I can.  I hope this makes doing this very easy for everyone in the future. God Bless -J

  • HT201596 80 % of my itunes files are located on a 3tb external drives; the remainder on a 4TB drive. ALL my files are on the 4TB. How do i get iTunes just to use the files on the 4tb drive so I can use the 3tb for other purposes   THX  .

    Hi,  80 % of my itunes files are located on a 3tb external drives; the remainder on a 4TB drive as I ran pout of space. ALL my files are on copied on to the 4TB drive . How do I get iTunes just to use the files on the 4tb drive so I can use the 3tb for other purposes   THX  .

    Select the desired location in preferences, then consolidate the media files to it.
    iTunes 12 for Mac: Change where your iTunes files are stored - http://support.apple.com/kb/PH19507 - Unfortunately this is misnamed.  It should say "Change where your media files but not where your library files are stored" - more information at: https://discussions.apple.com/message/22026652#22026652 - and steps 5-8 in https://discussions.apple.com/message/24491967#24491967

Maybe you are looking for