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

Similar Messages

  • How to calculate the sales in the last month of last year

    Hi all,
    I have a requirement need to implement ,
    the report has three columns,
    MONTH----SALES----SALES2
    201201----10------------100
    201202----20------------100
    201203----30------------100
    201204----40------------100
    201205----50------------100
    The Sales2 is the sales of last month of last year, that is sales in 201112, value is 100.
    How to realize this requirement ?
    thank you in advance!!!

    sorry,
    I think you maybe not understand my requirement.
    What I want to implement as follow,
    MONTH----SALES----SALES2
    201201----10------------100 (This is 201112's Sales)
    201202----20------------100 (This is 201112's Sales)
    201203----30------------100 (This is 201112's Sales)
    201204----40------------100 (This is 201112's Sales)
    201205----50------------100 (This is 201112's Sales)
    201206----60------------100 (This is 201112's Sales)
    If I set SALES2 =AGO(SALES,MONTH, <number of period>)
    how can I set <number of period> ?
    201201 should mapping to 201112
    201202 also mapping to 201112
    201203 also mapping to 201112
    201204 also mapping to 201112
    201205 also mapping to 201112
    201206 also mapping to 201112

  • Which Time variable should use compare this month with last month

    We want to calculate the increaed number of employees according to one action reason e.g. Entry to company compare with last month. In this case we have to use time variable in BEx query designer. Now can see 0calmonth has serval variable available.
    1) Should we use [0CMLMON] for last month and use offset for this month like [0CMLMON]-1 or [0CMLMON]+1 or use variable [0RSTTCM1], which variable should we use for this month and last month? Do we need to create variables by manually?
    2) Then using calculated KF to calculate the increaed number of employees, is this logic correct? If it is wrong, please info.
    Edited by: hi ni on Apr 22, 2008 7:58 AM

    Hi,
    For the comparison of last 2 months data, you can use two Restricted Key figures with reference to 0CALMONTH and it is better to use only customer exit variable for both RKF's.For the Last month use offset value as -1.
    Rgs,
    I.R.K

  • How to compare this week with last years week sales ?

    Hi all,
    I have a table called Sales with two columns  Date and UnitsSold
    Date is of type smalldatetime   and will have the date of the sales
    while UnitsSold is type int and will have the number of units sold
    I need to write a stored procedure that will compare between a week's sales from last year with a week sales from this year and show the percent in sales difference
    Thanks

    DECLARE @thisYearThisWeekStart DATETIME = DATEADD(DAY,1-DATEPART(weekday,'2014-01-01'),DATEADD(WEEK,DATEPART(WEEK,GETDATE())-1,'2014-01-01'))
    DECLARE @thisYearThisWeekEnd DATETIME = DATEADD(DAY,0-DATEPART(weekday,'2014-01-01'),DATEADD(WEEK,DATEPART(WEEK,GETDATE()),'2014-01-01'))
    DECLARE @lastYearThisWeekStart DATETIME = DATEADD(DAY,1-DATEPART(weekday,'2013-01-01'),DATEADD(WEEK,DATEPART(WEEK,GETDATE())-1,'2013-01-01'))
    DECLARE @lastYearThisWeekEnd DATETIME = DATEADD(DAY,0-DATEPART(weekday,'2013-01-01'),DATEADD(WEEK,DATEPART(WEEK,GETDATE()),'2013-01-01'))
    DECLARE @thisYear INT, @lastYear Int
    DECLARE @salesTable TABLE (date DATE, unitsSold INT)
    INSERT INTO @salesTable (date, unitsSold)
    VALUES
    ('2013-07-07',10),('2013-07-08',9),('2013-07-09',8),('2013-07-10',7),('2013-07-11',6),('2013-07-12',5),('2014-07-13',4),
    ('2014-07-06',12),('2014-07-07',13),('2014-07-08',14),('2014-07-09',15),('2014-07-10',16),('2014-07-11',17),('2014-07-12',18)
    SET @thisYear = (SELECT SUM(unitsSold) AS tUnitsSold FROM @salesTable WHERE date BETWEEN @thisYearThisWeekStart AND @thisYearThisWeekEnd)
    SET @lastYear = (SELECT SUM(unitsSold) AS tUnitsSold FROM @salesTable WHERE date BETWEEN @lastYearThisWeekStart AND @lastYearThisWeekEnd)
    SELECT @thisYear AS thisYear, @lastYear AS lastYear, CONVERT(float,ROUND(((@thisYear+.0)/@lastYear)*100,2))
    You should really use a calendar table.

  • SQL Query-return current month and the same month of last year

    hello-
    I would like to display the current month name, count of errors, year, and month number for both current year and previous year. Having trouble getting my query to display as following..... 
    Month   CountofErrors      Year      MoNo
    January                  57    2015          1
    January                 155   2014          1
    thank you!

    Its hard to answer without DDL and DML and sample data.
    Give a try
    select DATENAME(month,getdate()),Month(getdate()),YEAR(getdate()) ,COUNT(*) from dbo.errortable
    where DATENAME(month,getdate())='January' and YEAR(getdate()) in(YEAR(getdate()),YEAR(getdate())-1)
    group by DATENAME(month,getdate()),Month(getdate()),YEAR(getdate())
    --Prashanth

  • Firefox is saving one old month from last year and I can't manually clear it

    I have adjusted my settings so that Firefox no longer saves my history. The strange thing is, I am unable to manually clear an old month's history (November 2013...it is now end of Jan 2014). In other words, when I click on it and try to clear...it remains there. I have tried reinstalling Firefox and it keeps preserving that month's history. When I click "history", there is nothing new there (as per my new settings) except for Nov 2013. Can I get rid of it?? Thanks

    Hello,
    Try delete the places.sqlite file, before delete do a backup of your bookmarks:
    *[https://support.mozilla.org/en-US/kb/use-bookmarks-to-save-and-organize-websites#w_how-do-i-import-export-or-back-up-bookmarks How do I import, export or back up bookmarks?]
    *[https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data Profiles]

  • HT3702 I was charged $3.99 this month and last month for something on iTunes that I did NOT order. Please take this off my bill. Please and Thank You

    Please  help me fingure why I'm being charged $3.99 each month

    We are all itunes users just like you.
    We can take nothing off of your bill.
    Contact itunes support

  • Posting Depreciation for last year in the current year

    Hi,
    We have a situation in which we have to book depreciation for assets that were put into service since last year in the current year. The depreciation expense was accrued and reported when the year was closed out. However SAP wouldnt allow us to calculate the depreciation for anything before 01/01/2009. The assets were put into service in July of last year and hence we need to post 6 months of depreciation that we accrued last year in this posting period (when we will be capitalizing those assets). How do we go about doing this?
    Here is what we tried:
    1. Manual Depreciation: Doesnt work. The depreciation key we are using (LINA) doesnt allow manual depreciation
    2. Changing the ordinary dep start date: You can change this date to last year but it wont calculate the depreciation from last year. It just starts the useful life from last year. The depreciation that is being caught up starts from 01/01/2009
    3. Unplanned Depreciation: This is not an option because it goes to a different G/L account. The client wants it to be in the regular depreciation expense account only.
    Any suggestions?
    Thanks!

    Hi,
    So far my knowledge goes there is no way wherein you can capitalise assets in currnet year and account for dep from the previous year unless you go for post capitalisation vide ABNAN.Let me try to explain it by the following example.
    FY: April to March
    APC 10000/
    Rate od dep   10%
    Ord dep Start   01.10.08.
    Asset capitalisation date 01.10.08 but posted in the system on,  say   01.04.09.
    Line items for ABNAN
    70   Asset A/c     10000
    75   Acc Dep                          500(on 10000 @ 10% for 6 months)
    50 Rev for post capitalisation 9500.
    FB60 Line items.
    31   Vendor Account       10000
    40  Prior per dep                   500
    40  Rev from post capitalisation  9500.
    I do hope you will be able to clear your confussion.
    With best wishes
    Monoj
    Edited by: MONOJ SARKER on Aug 5, 2009 12:11 PM

  • Trunc date fonction for last year

    hi all,
    how can I get the first of each month of last year,
    OK, I explain more,
    I have a live database and a datawarhose and I need to purge all data of the month before actual month but of last year for the live DB.
    exp:
    the sysdate is *2010/12/09* and I should delete all record of table X between *2009/11/01* and *2009/12/01*
    how can I use the trunc fonction to do this automaticly
    thx a lot for your help, and excuse me for my english
    Edited by: 809634 on Dec 9, 2010 11:22 AM

    Hi,
    To use John's idea in a DELETE statement:
    DELETE     table_x
    WHERE     dt_col     >= TRUNC (ADD_MONTHS (SYSDATE, -13), 'MONTH')
    AND     dt_col     <  TRUNC (ADD_MONTHS (SYSDATE, -12), 'MONTH')
    ;where dt_col is the DATE column that decides if the row is too old to keep or not.
    Do you really need the first condition? What if today is December 9, 2010, and, for some reason, there is still data in table_x from October 2009 as well as Novmber 2009? The statement above would leave all the rows from October 2009, but the following statement:
    DELETE     table_x
    WHERE     dt_col     <  TRUNC (ADD_MONTHS (SYSDATE, -12), 'MONTH')
    ;would leave only rows from December, 2009 or later.

  • Last year I would watch tutorials on my iPad and using my Apple TV view them on my tv. Since maverick I can't airdrop from my pad to my Apple TV ? I can't even watch purchased tutorials through my tv and would like to know if there was a way to get it bac

    Way can't i do this now? Last year I would turn into creativeLive and watch tutorials on my tv using my Apple TV screening from my iPad . This was great. And allowed me to move around while learning. After Maverick that service disappear, I went into the apple store where I lived and they thought it was creativeLive not brought casting. But I have tutorials I have purchased that should be able to screen aren't showing up either. As this is important to me was wondering if there's something I can do to get it back before I go blind trying to study on the pad? Any help would be appreciated I bought the Apple TV precisely for this purpose, any one know why they changed a very helpful service?

    Are it's amazing what going to the apple classes can do for you, lol the problem was air play has turned off no doubt when the upgrades were done, but thanks to the training apple gave me I was able to reason the problem out yah! I love my apple.

  • Hotmail and Aol adresses bouncing my newsletters since this month

    Hello,
    This month, the last newsletter I sent reported hard bounces from some of my customers with hotmail.com and aol.com email adresses.
    The report says "bad destination system adress (5.1.2. bad destination system: no such domain)"
    I´m certain that these adresses are correct as they have received previous newsletters and invoices. In fact, one of them appears to have received the last newsletter, despite the system claiming it to hard bounce and automatically unsubscribing him.
    Hope there is a way to fix this.
    Thank you very much for your help.

    Hi Vicky,
    As mentioned in the ticket that you raised with us the reason why some of the Hotmail addresses are still bouncing is because they are listed on our internal blacklist. When your customer sent the campaign mentioned in the ticket some of the emails hard bounced and they were placed in our internal blacklist to avoid sending emails to addresses that are not existing over the Internet. If you check the campaign openings you will see customers that opened the campaign and are using Hotmail services.
    So in this case there wasn't a DNS route issue as it was in the case of Road Runner.
    From my knowledge if you do not login for over 90 days to your Hotmail account they can and will delete the account making the email address invalid over the Internet.
    So as mentioned in the ticket if you want to send them emails you need to validate that those email addresses exists over the Internet.
    This can be done ONLY by sending the double opt-in email and they need to confirm that they want to receive emails. Once they access the confirmation link from the email the address will be removed from our internal blacklist and you will be able to send them emails once again.
    Please note that forcing the double opt-in option from the admin panel will not work as we need to see that the email address is valid over the Internet.
    I hope this helps!
    Andrei Duca

  • Book revenue on this month but the cost of goods sold need to get from last month

    Hi experts,
    I have a question about cost and revenue. We have a standing service repair order and a contract to customer. Because the revenue is calculated by flight cycle so maybe when we get the flight cycle information for this month should be the midle of next month. Due to the monthly end close schedule I need to book the revenue on this month but the cost of the revenue we need the get the cost occur last month. For example, current month is May, 2014 and I book the revenue and posting date is May, 31, 2014. But the cost I just want the amount occurred in customer service order(IW31) on Apr, 2014. And the cost occured in May, 2014 should become WIP. Is it possible? Please advise.
    Thanks and Best Regards,

    Hi experts,
    I have a question about cost and revenue. We have a standing service repair order and a contract to customer. Because the revenue is calculated by flight cycle so maybe when we get the flight cycle information for this month should be the midle of next month. Due to the monthly end close schedule I need to book the revenue on this month but the cost of the revenue we need the get the cost occur last month. For example, current month is May, 2014 and I book the revenue and posting date is May, 31, 2014. But the cost I just want the amount occurred in customer service order(IW31) on Apr, 2014. And the cost occured in May, 2014 should become WIP. Is it possible? Please advise.
    Thanks and Best Regards,

  • Problem with bex query listing sales "this month" and "same month last year

    Hi,
    I've created a query in BW BEx, where I have a mandatory variable for 0calmonth, and I list 0material and sales (in volume, liter). And I have a restricted key figure giving me sales (volume in liter) restricted with 0calmonth = variable - 12, to give me the sale for the same month the user select, previous year.
    This seems to be working, the sum is correct, but when adding up the number for the sales in the month previous year, the numbers does not fit the sum in the end.
    I think the report only lists materials with sales the month selected in the variable, if a material has not been sold that month, but in the same month last year, it's not listed in the reports, but it's added in the sum in the end.
    Example.
    We have three records like this:
    material - calmonth - volume
    101 - 01.2010 - 5
    101 - 01.2011 - 8
    201 - 01.2010 - 7
    The report will give the following (calmonth variable = 01.2011)
    Material - volume this month - volume same month last year
    101 - 8 - 5
    Sum 8 - 12
    Any way to solve this issue? We noticed because we run BO - Webi on top of the BEx query, and BO sum's the values per material, and in webi the report would give us the sum 8 and 5.
    Any input is appreciated.
    Regards,
    Øystein

    Hi,
    thanks for your reply.
    The error is that the report only seems to list materials that has been sold "this month", and if the same material was sold the same month last year, it will also list the volume for this.
    But if the material is only sold in the same month last year, it's not listed in the report, but it's calculated into the sum at the end.
    The report is listing material, which is why the error presents itself, as you said
    Getting 8 minus 12 is correct unless you drill down by material. In that case, it should be 8 minus 5 and 0 minus 7.
    The row with 0 - 7 is not shown, and my guess is that the report will only list materials that has sales this month (which has been selected in the variable)
    Regards,
    Øystein
    Edited by: Oystein Gundersen on Mar 21, 2011 4:36 PM

  • ABAP Logic - This Month This Year to This Month Last Year problem

    Hi All,
    I have a following requirement ... the report currently compares This Month This Year to This Month Last Year. But this is not a valid comparison for the user until the end of the month is reached as only then is it comparing 2 full months. We would like to use a formula replacement path variable to work out which proportion of data we have for this month. ie. if its day 15, we have 50% of data (if there are 30 days in the month - this just an example), therefore we should only show 50% of This Month Last Years column so that the comparison between the 2 is sensical.
    So I'd like the formula variable to return a ratio or percentage which I can then use in a calculated key figure in the query to pro-rata the last year data.
    The query currently displays data by Fiscal Period, so when working out the ratio I would need to check which Fiscal Period we're in and also consider that the data is loaded every night, so on the 1st day of a Fiscal Period we are comparing everything up until yesterday.
    Can anyone see in problem with the logic of this, or better yet, has anyone done this before and maybe has some code for me? Is there another way I could be doing this?
    Edited by: Julius Bussche on Sep 19, 2008 4:31 PM

    Have you tried google for this Error Message...
    http://support.microsoft.com/kb/959077

  • I bought a pdf book last year and had no problem reading it for a few months then all of a sudden I could no longer open it and to this day. Any other pdf download off internet I can still open and read, except for that particular book. Operating system i

    I bought a pdf book last year and had no problem reading it for a few months then all of a sudden I could no longer open it and to this day. Any other pdf download off internet I can still open and read, except for that particular book. Operating system is Windows 7 Home Premium, Adobe Reader XI 11.0.07.  When trying to open file I get msg "You did'nt login or your session has expired. Please log in to read this document for the first time". (Like I said I have read it before). So I log in but that prompts me to give the name of the file I want to export or convert to Word or something else, which is not what I want to do of course. I have not purchased any service from Adobe or Acrobat as I only need to read. Thanks for your help..

    Thank you for your reply. Operating system is Windows 7 Home Premium, Adobe Reader XI 11.0.07.  When trying to open file I get msg "You did'nt login or your session has expired. Please log in to read this document for the first time". (Like I said I have read it before). So I log in but that prompts me to give the name of the file I want to export or convert to Word or something else, which is not what I want to do of course. I have not purchased any service from Adobe or Acrobat as I only need to read. Thanks for your help.

Maybe you are looking for