How to show revenue last four weeks?

Dear colleagues,
I have a report demand in BO where I am supposed to show revenue for the last four weeks. The input data is a date, f.eks 19th of may. Since 19th of May is week 28, I want to see 27, 26, 25 and 24. How can I make this formula? Is it a BODI job?
Hope you can help, will sign points!
Regards Silje

Hi Silje,
Very similar to your YTD question...
Again, this is normally solved in designer, hence the coding John gave you.
However in stead of doing it in a condition, like he described, i would rather do it in a sum(case...end) variant. So create multiple measure objects. That way you can select in one query ytd, full year last year, last period, last 4 weeks, etc. Using a condition would force you to create multiple queries.
so oracle syntax and using sysdate i.s.o. a prompted date as a bonus;
weeks start on monday this way...
sum(case when tab.datecolumn between sysdate-to_number(to_char(sysdate,'d'))+1 /* this monday */
and sysdate-to_number(to_char(sysdate,'d'))+1-28 /* monday four weeks b4 that */
then tab.amount end
Hope this helps,
Marianne

Similar Messages

  • How to show end time in week view?

    Hello
    I would like to know how I can get ical, to show the end time of an event? I really want this to show up in the week view.
    Is this possible?
    I have been checking around on this forum and many more, but no answer
    I really hope some one will help
    Regards
    DesrAw

    I am looking for the same thing. I actually would appreciate being able to see start and end times in every view. When I'm trying to see how many hours I'm working in a week, the easiest way is to see that, okay, Monday is 9-5, Tuesday is 9-4, Wednesday is 8:30-4:30, and so on. Those numbers are easy to calculate and add.
    Plus, in month view, I can't tell what kind of gaps there will be in my days, and my down time is extremely important to me!

  • How to show day name in week view

    In SL, when I viewed a calendar in the 'week' view, the day name showed on the top. Now, only day numbers show, not day name. how can I get the day names to show in the weekly veiw?
    Thank you.
    Peter

    Peter,
    I customized my "Dates" settings a long time ago, and do not remember the default Date settings.
    Here are my settings:

  • How to show start time in week mode on ical?

    I'm looking for a way to show the start time of an event in week mode in iCal. I know you can just click on the event but I want to be able to print and glance at it instantly.
    Any help would be great! Thks!

    Hi,
    There is a preference in iCal's Preferences to show event times. This does not transfer over to printing the calendar.
    Best wishes
    John M

  • How to Show Partial SSN in a Text Field

    Hi,
    I have text field on an apex page which takes SSN as input.
    How to show only last four digits of SSN after it has been entered.
    For Instance when I type 111-222-3333 and hit enter or tab, it should appear as XXX-XXX-3333.
    Thanks in Advance.
    Yogi

    Hi Yogi,
    You did not mention the most important thing.. Where are going to display the SSN ..
    if it is in report then:
    select regexp_replace ('111-222-3333','[0-9]{3}-[0-9]{3}','XXX-XXX') from dualOutput:
    SSN
    XXX-XXX-3333
    If you are going to show it on an item, then you should use that REGEXP in the source of your item... The source could be SQL or PL/SQL.
    If you need to show this format XXX-XXX-3333 as the values is being entered, the this plugin could be helpful:
    http://apex-plugin.com/oracle-apex-plugins/item-plugin/text-field-with-masked-input_63.html
    Best Regards,
    Fateh
    If you believe that my answer was correct or helpful, then please mark the answer as helpful or correct

  • Some subscribers are unable to download my podcast in the last 2 weeks. How do I fix this?

    I host a podcast and an issue is happening to my listeners (and me) in iTunes for the last two weeks. I am using a Mac and also a Windows computer with the latest version of iTunes. I have no problem downloading the podcast on my iPhone using Downcast as my podcast client (I don't like Apple's Podcast app).
    I have listeners contacting me asking why this is happening and don't know how to fix it.
    I have further details of the issue:
    The file starts to download in iTunes and then stops. The podcast is listed in the queue and it shows it is in the cloud. There is a little exclamation point next to the new episodes.  When I try to select download it starts and then stops downloading, still showing the exclamation point instead of the blue dot.  I can start to stream the podcast but it stops 3 minutes into the podcast. I hit play again and it picks up where I left off but only plays another minute and a half. This stopping and having to hit play again continues through the rest of the podcast.
    I haven't changed anything in the way I code the mp3's in the past two episodes, so unless Apple has changed policy or restricted new podcasts on the way they are coded, I don't know what to think. Bitrate 32kbps and sample rate 12,000kHz Mono.
    I just did some tests on a Windows 8.1 machine using iTunes 11.1.2.32 and it is not downloading any shows from the last 12 weeks (Aug, 22, 2013 was the last successful d/l).
    The podcast I host is Amateur Radio Newsline and the subscribe url ishttp://www.arnewsline.org/news/rss.xml
    More info...
    Not all podcast subscriptions are experiencing this issue, some download still without a problem.
    I have turned off automatic syncing.
    I tried various settings on the way it downloads, how many episodes it keeps and it changed nothing. Still having the issue.
    This is happening in both Windows and Mac versions of the software.

    I subscribed to your feed and was unable to download episodes - I tried several including the latest. The error message was that the download was interrupted.
    I was able to download the latest episode in a browser, and to play it in Safari. Evidently your server is reacting badly to requests from the iTunes application; I have no idea why this should be the case and can only refer you to the people running your server.

  • My iphone has calendar history for 10 years.  my icloud only shows about 6-8 weeks back.  how can i get icloud to show all the calendar events in the past that are on iphone?

    my iphone has calendar history for 10 years.  my icloud only shows about 6-8 weeks back.  how can i get icloud to show all the calendar events in the past that are on iphone?

    I encountered a similar problem when finally (and with much regret) I was obliged to migrate my MobileMe to iCloud last month.
    Many years of iCal history vanished without trace during this automated transition by Apple and iCloud then kindly synched the resulting vacuum back to iCal on my Mac.
    Fortunately, iCloud wasn’t able to decimate iCal on my other Macs because (1) they are still running Snow and (2) I had switched them off as a precaution.  Good job I did.
    My solution was to export my iCal data on one of those other Macs to a backup file – then I imported that backup file into my Lion-updated Mac’s iCal. That restored all the iCloud-deleted iCal data back on to my Mac and this was promptly synched automatically to my Calendar on iCloud.  So now it’s all there and showing.
    Perhaps you could do something similar?  In the meantime, be very careful not to let iCloud’s amnesia get synched to your iPhone (and other devices).
    Experience has taught me never to trust an “upgrade” until it is proven to be working correctly and always to keep in reserve another Mac with a properly-functioning system and all synching to it switched off...

  • How to get the last day of the week?

    Hii
    i can get the calender week number for any given date using
    SELECT to_char(to_date('04/04/2011','MM/DD/YYYY'),'WW') FROM dual
    can any body tell me, how to get the last day of that week ?
    and the answer should be 04/08/2011(8th april )
    thanks
    San
    Edited by: sandeep9 on Apr 4, 2011 3:50 AM

    Hi, San,
    Here's one way:
    WITH     sample_data     AS
         SELECT  DATE '2011-04-04'     AS dt
         FROM     dual
    SELECT  dt
    ,     TO_CHAR (dt, 'WW')     AS week_num
    ,     NEXT_DAY ( dt - 1
               , TO_CHAR ( TRUNC (dt, 'YEAR') - 1
                      , 'Day'
               )          AS end_o_week
    FROM     sample_data;Another way is to use date arrithmetic:
    WITH     sample_data     AS
         SELECT  DATE '2011-04-09'     AS dt
         FROM     dual
    SELECT  dt
    ,     TO_CHAR (dt, 'WW')     AS week_num
    ,     TRUNC (dt, 'YEAR')
          + (7 * CEIL ( (dt - (TRUNC (dt, 'YEAR') - 1))
                / 7
          - 1               AS using_date_arithmetic
    FROM     sample_data;

  • How can I make a report of all records with the date in the last two weeks?

    Hi!
    I have records with a date field, I want to create a report that only includes records with a date which is within the last two weeks of the system date, is this possible? Surely this is a basic database function, I would have thought, but I can find no help about it and there's very little in Mac Help about doing anything other than simple stuff with reports.
    I'm not a genius with databases, so help with any required formula or what have you would be great!

    Hi Jonathan,
    Here's a formula you can use with the Match function. 'Date' is the name of the date field, which must be a "Date" type field.
    'Date'>NOW()-14
    Match will select (highlight) all records matching the query. You'll then need to use Organize > Hide Unselected to show only the matches.
    Unfortunately, I haven't found a way to make the NOW() function work in a Find request, and neither Match requests nor Hide Unselected can be included in a recorded search, either of which would reduce repeating the report to a one-button operation.
    Regards,
    Barry

  • I got a new laptop (Macbook Pro) and my IPhone is synced with my previous laptop. I've recorded dozens of very long (un-emailable) Voice Memos over the last few weeks and need to get them from my IPhone onto my new laptop. How do I do this?

    I got a new laptop (Macbook Pro) and my IPhone is synced with my previous laptop (which I no longer have). I've recorded dozens of very long (un-emailable) Voice Memos over the last few weeks and need to get them from my IPhone onto my new laptop.
    How do I do this?
    (when I click on the Sync option I get the warning: "Are you sure you want to sync music? All existing songs and playlists on the iPhone will be replaced with songs and playlists from your iTunes library." I fear that if I click this I will lose all of my important Voice Memos as well)

    Just to add to what ChrisJ4203 said.  You can sync them to your new computer using iTunes by selecting to Include Voice Memos on the Music tab of your iTunes sync settings and syncing.  However, you still need to re-establish syncing with the new computer without iTunes erasing all the iTunes media from your phone (as the warning mentioned).
    If you copy your entire iTunes folder (not just your music) from your old computer to your new one, along with other non-iTunes media you may be syncing with iTunes (such as contacts, calendars and any photos synced to your phone from your old computer) by using migration assistant of following one of these methods: http://support.apple.com/kb/HT4527, then when you sync again with your new computer it will recognize your phone and sync as it did before.  You will still have to authorize the new computer for any Apple IDs used to purchase from the iTunes and App stores (in iTunes>Store>Authorize this computer). 
    After that you can sync your voice memos to your computer as mentioned earlier.
    If you want to archive your voice memos before you do anything with iTunes, you can use a 3rd party program such as PhoneView or Touch Copy.

  • How to show current year and last year sales in a WEBI Report

    Hi Guys
    How can show current YEar Sales in one column and Last YEar Sales in the other column based on a user prompt for the Current YEar Column.
    For Example is user enter 2010 for Year how can i show a Column for Sales-2010 and Sales 2009.
    Thanks

    If you can modify your Universe add an object named New Object Last Year whose SQL is:( yourTableName.Year + 1)
    Then in WebI create two distinct queries in your query Pane. In the first one you could do this:
    Query 1:
    objects: Year, Sales ... etc.
    filters:   Year Equal to '1. Prompt Year'
    Query 2:
    objects: Year, Sales ... etc.
    filters:    New Object Last Year Equal to '1.Prompt Year'
    Then in your report you can drag each object on their respective columns.
    If you don't want to use two distinct queries, use one like this:
    Query 1:
    objects: Year, Sales ... etc.
    filters:        Year Equal to '1. Prompt Year'
                 Or
                      New Object Last Year Equal to '1.Prompt Year'
    Edited by: PadawanGirl on Jun 23, 2011 6:28 PM

  • In latest version of MF there`s missing button, which was in previous version: between buttons back/forward and the typing bar there used to be little flash, which showed few last pages I have just browsed. How can I restore it?

    In latest version of MF there`s missing button, which was in previous version: between buttons back/forward and the typing bar there used to be little flash, which showed few last pages I have just browsed. How can I restore it?

    If you mean the drop marker then you can still get the History of the Back and Forward buttons if any by either Left-Click and hold for a second or by Right-Clicking them.
    If you still want the drop mark there also then there is this Extension at https://addons.mozilla.org/en-US/firefox/addon/backforward-dropmarker/
    Also the abbreviation for Firefox is '''Fx'''

  • How can I create a Filter for a four week period?

    Post Author: Sarahg
    CA Forum: Formula
    I am trying to create a filter so that on a sales report I can have a Year to Date figure and then the last 4 weeks shown. So far I have tried to creat a filter that shows current week number - 4 but this does not show the correct weeks.
    Any Ideas?

    Post Author: jsanzone
    CA Forum: Formula
    sarahg,
    You don't mention if there is a Universe involved or not, but if there were then you could create some objects that calculate measures based on a timeframe.  For instance, if you have a date field (date_fld) and a measure (x) in your database then you could create a measure such as:
    case when <date_fld> between getdate()-28 and getdate() then sum(x) else 0 end
    (the SQL code I'm using is in MS SQL server, so you may need to adapt if you're using a different DBMS).
    The key to dealing with the date field is in substracing 28 (i.e. 28 days), so any time that this report would run and include the above coding it would be a 28-day lookback.

  • HT4972 My IPad 2, IPhone 3GS ans iPod  no longer work with apple TV, I have 2 apple TV in my house and for he last 3 weeks the iPod was the only one we could use for appleTV now none of them works, the apple TV icon does not show up any more. Re-startedev

    My IPad 2, IPhone 3GS ans iPod  no longer work with apple TV, I have 2 apple TV in my house and for he last 3 weeks the iPod was the only one we could use for appleTV now none of them works, the apple TV icon does not show up any more. Re-started everything.

    Ok thank you so much, for your timely response.
    RESPONSES:
    1)   When I set up my iMac, I did not transfer any data directly from my windows PC.  I simply used the same iTunes login and account.  I have access to all of the files via the "Purchased" section of the iTunes store.  If I click "Download Previous Purchases"  text, I can download ALL of the purchases I have ever made.
    2)   I have the Apple TV 2, so good news, question answered.  I thought maybe it was the Apple TV 1, but it is the Black model, so bam.  Good response for you.  Well the whole damned reply is an awesome response, just pointing out that one piece of awesome.  I stated that it was an Apple TV 2, and yet you were still good enough to figure I could be mistaken, and provide me with knowleedge just incase.
    QUESTIONS:
    3)   So can my iMac not stream the data directly from itunes, without download?  Apple TV can, but perhaps that is something among many things that maker it unique, and awesome.
    SERIOUSLY.... THANK YOU... 
    I work in the computer support section for the Military.  The only problem is we use Windows , lol.  Well that and i've been gone for nearly 6 months on recover.  I go back next month though I hope.  But working in that field gives me the abilty to judge responses that run inside the same vein.  Your response was so awesome that I half thought I might have written it myself. 

  • I bought my iPhone 5 almost an year ago and since the last 2 weeks my battery lasts about 2 hours or less, while before it lastre a whole day. Can anybody tell me why is this happening or how can i solve my problem, please? Thank you.

    I bought my iPhone 5 almost an year ago and since the last 2 weeks my battery lasts about 2 hours or less, while before it lastre a whole day. Can anybody tell me why is this happening or how can i solve my problem, please? Thank you.

    You can follow these steps to save battery.
    1. Turn on Auto-Brightness - The iPhone has an ambient light sensor that adjusts the brightness of the screen based on the light around it (darker in dark places, brighter when there's more ambient light) to both save battery and make it easier to see. Turn Auto-Brightness on and you’ll save battery because your screen will need to use less power in dark places.
    Find it in the Settings app -> Brightness & Wallpaper -> Auto-Brightness On
    2. Reduce Screen Brightness -the brighter the default setting for the screen, the more battery it requires. Keep the screen dimmer to conserve more of your battery.
    Find it in Settings -> Brightness & Wallpaper
    3. Stop Motion (iOS 7) -It's really cool, but it also drains battery. You may want to leave it on to enjoy the effect, but if not, turn it off this way: 
    Settings -> General -> Accessibility -> Reduce Motion -> move slider to green/on
    4. Turn Bluetooth Off-  Turn off Bluetooth except when you’re using it to squeeze more juice from your battery.
    Find it in Settings -> Bluetooth -> Move Slider to Off
    5. Turn Off Location Services -
    This allows your phone to know where you are and give you exact driving directions, give that information to apps that help you find restaurants, and more. But, like any service that sends data over a network, it needs battery power to work. If you’re not using Location Services, and don’t plan to right away, turn them off and save some power.
    Find it in Settings -> Privacy -> Location Services -> Slide to Off
    6. Don't Automatically Update Apps (iOS 7)-
    If you've got iOS 7, you can forget needing to update your apps by hand. There's now a feature that automatically updates them for you when new versions are released. Convenient, but also a drain on your battery. To only update apps when you want to, and thus manage your battery better:
    Settings -> iTunes & App Store -> Updates -> move slider to off/white
    7. Auto-Lock Sooner -
    You can set your iPhone to automatically go to sleep – a feature known as Auto-Lock - after a certain amount of time. The sooner it sleeps, the less power is used to run the screen or other services. Try setting Auto-Lock to 1 or 2 minutes.
    Find it in Settings -> General -> Auto-Lock -> Tap your Preference
    Few more things that would consume battery even when not is use are the applications that run in background.
    Follow the below steps to quit all running applications.
    1) Double tap on the home button on the iPhone ( this will display all apps that are running in the back ground).
    2) Just click on the tiny red X to quit application ( if iPhone is running on iOS 6 and below) else just swipe yhour finger over the running app upwards to quit ( if running on iOS7).

Maybe you are looking for

  • Can I see how many times a shared album has been viewed?

    I primarily use Revel to share photos of events since the files get too big to email more than 2 at a time.  Usually, there is a very limited group of people that would be interested but the link to one album was shared on Facebook and I'm curious to

  • Open PDF in same browser when the preference is set to open in new window.

    The corporate policy for all applications is to open the PDF document in new browser/reader but our application needs the reader to open in the same browser even the preference "Display PDF in Browser" is unchecked.... The setPreference from javascri

  • Problem while converting requasation to PO??

    Hi Friends,, I need some urgent help with this issue, we are unable to convert the req to a PO due to error SD 18024 on the MM side.  On the SD side the error message No pricing listed because PO was not selected" occurs.  The SO is complete, Credit

  • Import/Export Legal Regulation Control w/ One Legal Regulation

    Hi, In a separate thread, Dhillipan helped me configure a legal regulation using Country/Country Group (config activity: Activate Legal Regulations at Country/Country Group Level) which was very helpful to restrict Sales Orders / Deliveries from a sp

  • Error while installing Oracle 11gR2 64 bit on windows764bit

    Hi, I want to install Oracle 11g database on my system. I have downloaded setup files for that. But while doing installation after 60% completed i am getting an error messagebox saying. File Not Found c:\Oracle11g\product\11.2.0\db_home1\bin\orandce1