Last Year Inovice Total need to be calculated in a new column in OBIEE 11g

Hi,
I have a measure Net Invoiced Amount, and now my client is asking to get a new column in which last year's Net Invoiced Amount total needs to be calculated.
We need to select the Dates dynamically, it is 2012, so the column should the invoiced amount total for 2011, if it is 2013 then amount should be 2012. Can we do this in RPD. If so, please tell me how.

Hi,
Method1:
TIMESTAMPADD( SQL_TSI_DAY , -1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM DATE Column) * -(1) + 1,
DATE Column))
Note: create alias table from your fact (call it as fact table name_YTD) Join th aliases to the dimension tables exactly like how your normal fact table is joined to the aliases, except for the time dimension.
Method 2: by using Time series functions (Ago fxn)
Ago(<<Measure>>, <<Level>>, <<Number of Periods>>)
Example:Ago("Human Resources"."Fact - Absence"."# Days" , "Human Resources"."Time"."Year" , 1)
Method 3: if your using obiee11g --> from analysis itself you cand solve it
AGO(expr, [time_level], offset)
Thanks
Deva

Similar Messages

  • YTD , Last year YTD help needed in OBIEE 11g

    Hi all,
    I have a report which looks this way
    Banner Name
    *Sales YTD*
    *Sales Last year YTD*
    YTD values are based on actual date of running report.
    *so ex: the report is ran on 10-feb-2013, the Sales YTD will be from
    01-Jan-2013 till 10-Feb-2013.*
    * Sales Last year YTD will be 01-Jan-2012 till 10-feb-2012.*
    I have achieved Sales YTD with my Time dimension.
    My time dimension has the data for Last year , year ago date!
    Can you please help me out on how to proceed for the Last year YTD
    calculation?
    Its helpful to share any syntax..
    Regards
    Kumar

    Hi,,
    you can use Todate Function.
    Take a Look @ this http://mkashu.blogspot.in/2013/08/obiee-model-time-series-in-obiee.html
    Regards,
    VG

  • Calculating YTD column in OBIEE 11g

    Hi ,
    Here is my requirement :
    I have to create a report , which shows several measure values (revenue , gross mergin etc as rows of a pivot table) against a certain period (Months , i.e. Jan , Feb ....etc as columns of a pivot table ) . Taking period prompt as presentation variable prompt . For example , If 'Jan' is selected from period dropdown list ,then only Jan values are shown . I am able to do upto this part .
    Next , I have to add one YTD column (calculated ) , which will eventually sum the values of upto selected period value , i.e if selected month is 'Mar' then March values will be shown in one column and 'Jan + Feb + Mar ' values will shown in another .
    How to achive this ?
    FYI , I am taking essbase 11.1.2.0 as datasource and using OBIEE 11.1.1.5.0 version .
    Thanks in advance.
    Edited by: 937268 on Jul 2, 2012 3:04 PM

    Hi,
    by using time series Ago function method and also by suing obiee-date-expression method you can solve it.
    YTD:
    http://download.oracle.com/docs/cd/E21764_01/bi.1111/e10540/dimensions.htm#i1023744
    http://gerardnico.com/wiki/dat/obiee/function_time
    http://www.vlamis.com/blog/2011/6/17/doing-time-series-calculations-in-answers-11g.html
    OBIEE - date expression method
    http://obieedue.blogspot.com/2011/06/obiee-date-expressions-reference.html
    Thanks
    Deva

  • ITunes will not let me authorize to play music. Claims I already authorized 5 computers. I have not (to my knowledge). Bug? My computer crached last year and a new HD was installed. Computer is Mac from 06 with Mac OS X10.5.8

    Have a Mac Power Book  bought 2005 when living in the US. Installed iTunes and set up an account. Have since dowloaded music, videos etc worth $1000s to my computer.... Last year 2012 my HD crashed and I had a new installed with operating system OS X 10.5.8. Can't upgrade to later systems. Before the crash I had long  since moved out of the US and forgotten my old user ID and password for iTunes as I hardly ever purchased any music or used the program. Luckily I had my library saved on external HD and on my iPod. I just bought an iPod Nano this Xmas and when I was going to download music to it I realized I had problems. iTunes claims being the latest version (10.6.5) but the Ipod Nano want 10.7 to be able to work with iTunes. I then started to try to access my music and  iTunes that I had not been using since the crash. It was an upgraded version and had new unfamiliar functions. I tried, to the best of my ability, to set up the account but to my frustration I can no longer access the $1000s worth of purchased music and music videos. ITunes just give me " I have already authorized this computer Including this one, you have authorized one computer out of your available 5". I only have this computer with iTunes! Is it a bug and how can I access my music?? I undestand I most likely will have to purchase a brand new computer to be able to use my iPod Nano I allways loved Mac and it's programs for its simplicity as I am no computer vizard but I am now desperate and at my wits end HELP!!

    In iTunes, do Store->View my AppleID
    Click "Deuthorize ALL"
    Then, on any computers you still have, do Store->Authorize this computer.  If there are less than 5, you will have no problem.
    You can only do "deauthorize all" once a year, so in the future, if you ever throw a computer away, remember do to "Store->Deauthorize this computer" first.

  • I have an ipod nano 4GB and use pc windows xp . since last year my ipod didnt sync any new songs saying "the ipod cannot be synced the required folder couldnt be found" and when i try to update the itunes version another error occured. plz HELP!!!!!!!!!

    I have an ipod nano 4gb and use pc with windows XP. since last year my ipod suddenly didnt want to sync any new songs saying " the ipod "MOAMEN" cannot be synced. the required folder couldnt be found" and when i try to update the itunes version another error occurs and i dont know when i tryed to format ipod i didnt find "format" button. so plz give me suggestions instructions i extremely bored !!!!!!!!!!!!!1

    Uninstall/Reinstall iTunes then try to rebuild the library.
    http://support.apple.com/kb/HT1925  (uninstall/reninstall)
    http://support.apple.com/kb/HT1451 (recreate library)

  • Last year sales calculation in calculated column

    Hi everybody!
    Please help me to solve issue with last year sales calculation in calculated column. I have 'Fact' table with sales for every period in it and related table 'Time' with 1, 2, 3 'PeriodID' column for string MAT 2011, MAT 2012, MAT 2013.
    I know the solution for measure:
    =CALCULATE ( SUM(Fact[Sales]); FILTER (ALL ('Time'); 'Time'[PeriodID] = MAX(Time[PeriodID]) - 1))
    But for the purpose of my analysis I need to make a calculated column. What I want to see looks like this table:
    Product
    Period
    Sales
    SalesLY
    A
    MAT 2013
    17
    10
    B
    MAT 2013
    20
    23
    C
    MAT 2013
    45
    33
    D
    MAT 2013
    13
    16
    A
    MAT 2012
    10
    8
    B
    MAT 2012
    23
    31
    C
    MAT 2012
    33
    5
    D
    MAT 2012
    16
    22
    A
    MAT 2011
    8
    0
    B
    MAT 2011
    31
    0
    C
    MAT 2011
    5
    0
    D
    MAT 2011
    22
    0

    Thanks for the idea!
    It's an option. I slightly modified expression to make it more generic:
    =CALCULATE
          SUM (Fact[Sales]);
          FILTER (
                        Fact; Fact[Product] = EARLIER (Fact[Product]) && Fact[PeriodID] = (EARLIER(Fact[PeriodID]) -1)
    Where Fact[PeriodID] is calculated column with '=RELATED (Time[PeriodID])' formula. To my opinion this is more universal approach.
    But it has the cons. EARLIER is memory demanded function. In case of 32-bit OS or numerous nested EARLIER error might occur.
    Is there any alternative solution?

  • HT6170 Since i got my iPhone 4S, Last year. it's the 8gb experminetal version. My phone's volume always appears. All the time. And since i got the iOS 8 yesterday. It got even worse, it won't get out anymore. I'm super mad. I need an answer real soon

    Since i got my iPhone 4S, Last year. it's the 8gb experminetal version. My phone's volume always appears. All the time. And since i got the iOS 8 yesterday. It got even worse, it won't get out anymore. I'm super mad. I don't know what's going on. Is it my case? But, i don't use a case anymore. It doesn't even lessen. And when i take pictures for like 10 seconds, i get like 50 photos. Without even clicking the button. This is a real problem for me Apple, and i need you to do something about it. I need an answer real soon.

    I got Troubles too with iphone 4s with the new iOS 8, its unstable, apple said its for that model to but its not totally true, well few troubles disappear if you do this:
    First you need to Sync your iphone like regular you do it, but check you could made a Saffety and restore back up manually in your computer.
    then when this it's already done, disconnect your iphone, then restore your iphone as factory settings, beware! don't do this if you don't have your Saffety copy first!
    when you restore your iphone as factory settings iTunes will ask you if this is a new phone or a previous phone, well, select previous iphone and select the back up copy you made, and let iTunes restore all, that fix a few issues in my phone, but the real problem its iOS 8 its not good for 4s.

  • I bough a refurbished iMac last year, unfortunately Im in need of a Logic board, but when I search FD093LL/A, no company seems to recognize this model but I do see all models, or at least most, starting with MD...whats the difference?

    I bought a refurbished iMac last year, unfortunately I'm in need of a new/used Logic board, but when I search and contact Company with Mac parts, no one seems to recognize FD093LL/A witch makes it tough to identify parts, but I do see most Part Numbers starting with MD. Any reason why?
    Thank you

    Refurbished models have a different order number. Replace the F with an M and see if the specifications listed match your computer’s.
    (115253)

  • HT4528 Good afternoon ...  I would like to know how I can do to communicate with Verizone company to see if I can unlock my iPhone 5 which acquired in NY last year, buy it because you sold me released but is totally false ...  I welcome your comments ...

    Good afternoon ...  I would like to know how I can do to communicate with Verizone company to see if I can unlock my iPhone 5 which acquired in NY last year, buy it because you sold me released but is totally false ...  I welcome your comments ...

    Krawly11 wrote:
    That's what they told me at the time of purchase and that's why the team acquired ...
    But when I get to Venezuela and introduce NANO-Sim in a line to use the phone here just does not respond to the network ... None of the 3 phone lines we handle here ...
    It is a 64G IPhone 5 ... 
    Regardless, it is not a matter of carrier locking.  Verizon iPhone 5 phones were never GSM sim-locked to begin with.  Every iPhone Verizon has sold since the introduction of the iPhone 5 has been sold with an unlocked GSM slot, as required in the USA by their agreement with the FCC.  They have not been allowed to sell any iPhone 5, iPhone 5c nor iPhone 5s devices with GSM carrier locking in place.
    Your connection problems are from some other cause - it is NOT a carrier locking issue.

  • I need help! i downloaded new music and plugged my iphone into my computer and after i did that i lost all my pictures and everything that i need!!! it restored my iphone back to setting from february of last year when i last had an iphone, HELP! PLEASE!

    I need some help fast please!! i have had the iphone since august and have videos and pictures i need like 100% need, and today i downloaded music and plugged my phone into my computer. The phone synched and it did to the settings when the iphone 4 first came out last year, dating back to when i first had it on february 24th, 2011. I need to restore it back but everytime i try to do it through itunes it puts me back to the same settings, i hope someone knows how to fix this problem, i would greatly appreciate any help!!!!

    Check here and see if you got an automatic backup when you pluuged into iTunes.   (Fingers Crossed) 
    Documents and Settings\USERNAME\Application Data\Apple Computer\MobileSync\Backup
    If the recent backup is there, simply restore your phone from that backup.  It sounds to me that instead of syncing the phone just by connecting it to the computer, you may have restored the phone to your ancient backup.  No problem if you have the newer backup, but a huge problem if you don't have the recent backup.
    If, in fact, you did restore the phone instead of getting a backup thru the (automatic) sync process, I'd strongly suggest getting the difference between the two straight in your mind.
    My other suggestion would be to understand that your iPhone is "managed" thru iTunes.  You need to connect the two whenever possible instead of using the charger.

  • I need to see an important iCloud email from last year, but it's not in my inbox

    I Need to read an important email that was sent to me last year. But after a couple months the read emails disappear from my inbox. Is there still a way to read it again. The email provider I use is @icloud.com

    Hello JessMarSmi,
    Thanks for using Apple Support Communities.
    Email messages in your iCloud Inbox will not be deleted automatically.  If you need to search for an email you received, you can do so by tapping in the Search field at the top of your Inbox in Mail.
    Write messages - iPhone
    Take care,
    Alex H.

  • I purchased and installed the Photoshop Photography Program last year but my computer crashed and now I need to re-install it again...can someone help?

    I purchased and installed the Photoshop Photography Program last year but my computer crashed and now I need to re-install it again...can someone help?

    Hi Sangeeta,
    For a fresh download on a new hard drive, it's best to start with the CC desktop app. Sign into adobe.com and download it here: creative.adobe.com/products/download/creative-cloud
    You can then launch the desktop, sign in and download PS & LR.

  • I purchasede pdf last year, now I cannot edit a document, what do I need to do?

    I purchased pdf last year, now I cannot edit a document, what do I need to do?  Can someone help me please?  Do you have a phone number I can call?

    Let be clear on some terms please.
    pdf is a file type opened/viewed with Adobe Reader or Adobe Acrobat
    Please check what program opens pdf files on your system.
    Open a pdf
    From the top bar Help > About Adobe ______
    Is this product Adobe Reader or Adobe Acrobat  - Professional or Standard?
    Adobe Reader is free, there is no cost. Assuming you have Acrobat...
    What do you want to edit within the pdf. (Minor edits are possible, major edits are not)
    Have you editted anything with Acrobat? The file in question may be protected by the author; dissallowing changes.

  • I ordered Adobe XI pro last year and need to reinstall it.  I cannot find my serial number. I downloaded the software online.  Can you look up my order. I ordered it last year around this time.

    I ordered Adobe XI pro last year and need to reinstall it.  I cannot find my serial number. I downloaded the software online.  Can you look up my order. I ordered it last year around this time.@

    Once you get your S/N and download the software, back them up to a CD or backup HD. Not doing that is like purchasing a CD, installing software, and tossing the CD in the trash.

  • Calculating this month of last year revenue

    Hi,
    i am preparing a new dashboard like below
    month total revenue total revenue of last year (january - 2011)
    january 125.00 120.00
    can you please share your experience how can i do this?

    Hi,
    If you always want to show the previous years data (ie not only last year, but last two/three/.. years) then you can use AGO function in
    RPD.
    Refer for AGO-
    http://gerardnico.com/wiki/dat/obiee/ago
    OR,
    But if you are using for a single last year then in the column formula use - 'January'||cast(year(current_date)-1 as char)
    (If its always January you want)
    Hope this helped/ answered.
    Regards
    MuRam
    Edited by: MuRam on Jun 12, 2012 5:08 AM

Maybe you are looking for

  • How do I get autofill to work? it does not fill in my forms. Does not show on toolbar iether.

    I have been to help but nothing explains this to me.

  • Horizontal Scroll unavailable when Left Sidebar region present

    Hi, I have created a classic report in Apex 4.0 which has so many columns (end user requirement) that one has to horizonatal scroll to review the whole of the report content fields returned. This is fine... Up until the point that I implement a sideb

  • Messaging service in "starting" status 8.8

    When the server (Windows 2003) is started the Business One Messaging Service gets stuck in "Starting" status and messages fail when sent from B1. Client is using B1 8.8 PL07. The service is set to start automatically when the server starts. They are

  • Cheque Priniting - Numbers

    Hi, If there are 5 pages in the Cheque print, i want cheque numbers to be printed on all the pages like. Cheque Number - 200 i want :  1st page(void)  -200A              2nd Page- void -200B             3rd page -void -200C           4 page -void - 2

  • Mac 10.6.8 slow outbox mail

    Have exprienced for the first time slow outgoing mail. do you have a solution... Have spoken with my internet provider and runned tests without results. All my settings seem to be correct.