Report selecting last week of the last 12 months

Hi,
we're loading snapshots on a weekly basis into a cube, updating a 0calweek field from the loading date.
The requirement for one of the reports is to have the data for the last week for each of the last 12 months, incl the current month (query filter contains calmonth restricted by variable 0CML12CM).
For the current month, the last week available in the cube is to be selected.
Thanks for help!
Michel

Add a characteristic to your cube, which shows if the week is the last week in the month. This char can be updated during data load, to either store a Y or a N.
Then, in your query, you just get all the data where ZLASTWEEK = 'Y'
Cheers,
Andrew

Similar Messages

  • BEx analyzer 7.0 Report for last 3 months and current month

    I need to create a report for a key figure (net value) and character (material), 0calday
    Output format:
    column1 : net value - previous year
    column2 : net value - current year
    column3 : net value - current quarter (separate columns for 3 months)
    column4 : net value - previous quarter (separate columns for 3 months)
    column5 : net value - current month
    column6 : net value - 1st of month to current date (separate columns for each day).
    Please help.
    Points will be assigned.
    Thanks
    Mary.

    Hi 
      U R infoprovider should have following time characterstics 
      0FISCAL YEAR, 0FISCAL MONTH/QTR 
    column1 : net value - previous year
      On the basis of user input data derive the year and offset it by - 1 (VYEAR-1)and make a RKF for that  .
    column2 : net value - current year
      On the basis of user input data derive the year(VYEAR) and 
       make a RKF for that  .
    column3 : net value - current quarter (separate columns for 3 months)
      If QTR is there then derive the QTR on the basis of         0calday/else if month is there then determine month range       like 1-3 = Q1  4-6  = Q2 and it will be done in user exit  
    column4 : net value - previous quarter (separate columns for 3 months)
      On the same way as above u can determine the same 
    column5 : net value - current month
      On the basis of 0calday determine CALMONTH and create a      RKF for this 
    column6 : net value - 1st of month to current date (separate columns for each day).
      Create a Exit variable type range on CALMONTH for this and 
       keep the range as 01-current month(which will be derivefrom     0calday) 
    Thanks,
    Debasish

  • Select list that displays the next 12 months worth of Mondays

    I recently needed a select list that would allow you to choose from a years worth on Mondays starting with the current week's Monday. It will return the date of that Monday. I thought others might be able to use this too... Plus I wanted to be able to find this in the future.
    SELECT DISTINCT
    to_char(trunc(next_day(trunc(SYSDATE,'day'),2)-1+LEVEL,'iw'),'FMMonth DD, YYYY') AS Display
    ,trunc(next_day(trunc(SYSDATE,'day'),2)-1+LEVEL,'iw') as Return
    FROM dual
    CONNECT BY LEVEL <=((add_months(trunc(SYSDATE,'day'),12)-1)-(trunc(SYSDATE,'day')))
    ORDER BY 2;
    As of today (Friday, August 24th) the above would return:
    DISPLAY RETURN
    August 20, 2012 20-AUG-12
    August 27, 2012 27-AUG-12
    September 3, 2012 03-SEP-12
    September 10, 2012 10-SEP-12
    September 17, 2012 17-SEP-12
    September 24, 2012 24-SEP-12
    October 1, 2012 01-OCT-12
    October 8, 2012 08-OCT-12
    October 15, 2012 15-OCT-12
    October 22, 2012 22-OCT-12
    October 29, 2012 29-OCT-12
    November 5, 2012 05-NOV-12
    November 12, 2012 12-NOV-12
    November 19, 2012 19-NOV-12
    November 26, 2012 26-NOV-12
    December 3, 2012 03-DEC-12
    December 10, 2012 10-DEC-12
    December 17, 2012 17-DEC-12
    December 24, 2012 24-DEC-12
    December 31, 2012 31-DEC-12
    January 7, 2013 07-JAN-13
    January 14, 2013 14-JAN-13
    January 21, 2013 21-JAN-13
    January 28, 2013 28-JAN-13
    February 4, 2013 04-FEB-13
    February 11, 2013 11-FEB-13
    February 18, 2013 18-FEB-13
    February 25, 2013 25-FEB-13
    March 4, 2013 04-MAR-13
    March 11, 2013 11-MAR-13
    March 18, 2013 18-MAR-13
    March 25, 2013 25-MAR-13
    April 1, 2013 01-APR-13
    April 8, 2013 08-APR-13
    April 15, 2013 15-APR-13
    April 22, 2013 22-APR-13
    April 29, 2013 29-APR-13
    May 6, 2013 06-MAY-13
    May 13, 2013 13-MAY-13
    May 20, 2013 20-MAY-13
    May 27, 2013 27-MAY-13
    June 3, 2013 03-JUN-13
    June 10, 2013 10-JUN-13
    June 17, 2013 17-JUN-13
    June 24, 2013 24-JUN-13
    July 1, 2013 01-JUL-13
    July 8, 2013 08-JUL-13
    July 15, 2013 15-JUL-13
    July 22, 2013 22-JUL-13
    July 29, 2013 29-JUL-13
    August 5, 2013 05-AUG-13
    August 12, 2013 12-AUG-13
    52 rows selected

    I posted the above all proud of myself for figuring out the SQL to do the above, went into APEX to build my LOV and I get the following:
    LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.
    Is there a way to get APEX to allow me to use the above query as an LOV?
    Thanks,
    Rich

  • How to see Report for the last 12 months using saved filters

    Hi
    I need to display the last 12 months report using Saved filters
    When i tried to didplay the report it is showing like SQL error
    Can anyone help me how to diplay the report of last 12 months using Saved filter.
    Thanks & regards
    Manu

    Hi Refere the below thread,
    http://shivabizint.wordpress.com/2008/09/19/rolling-months-data-for-year-month-prompt-in-obiee/
    Curtesy by Shiva.
    Thanks,
    Balaa...

  • Re: Last 12 Months Rolling

    Dear All,
    I am using OBIEE 11g, Can any one help me pls..
    i have two prompts like Year and Monthname..
    For example: User selects 2013 June
    report has to display last 12 months from selected month, that i achieved using supporter report. (ref:: Last N months(Rolling months) data By year-month prompt in OBIEE | OBIEE by Shiva Molabanti)
    But here i have to allow user to select multiple months from the prompt.
    if user selects 2013 April,May,June here i need to take the maximum month in our case it is June.
    From june to last 12 months i need to display..
    how can i do this..give me an idea pls
    Regards,
    Bhargav 

    Hi Bhar,
    You are correct in your use of a "supporter report" You just have to use 2 columns in the supporter report.
    Structure your supporter report in this way:
    2 columns:
    Col1 = Max(Month)
    Col2 = Timestampadd(SQL_TSI_MONTH, -11, MAX(MONTH))
    Filter: Month = user prompted month(s)
    year = User prompted year
    Then in your final report, your filter is based on both column #1 of your supporter report, AND column #2 of your supporter report like so:
    Month <= Col1 of supporter report
    AND
    Month > Col2 of supporter report.
    Understand that this logic wont not work if the user selects wildly different months. ( 3 months from different decades )
    have fun, please mark as helpful if this gets you on the right track. Otherwise post and I will try to clarify.

  • Hi loading last 2 months data using abap routine

    we are planning to write a routine in infopackage level,
    using the option 6-ABAP routine, to select the last 2 month data ,
    we have the time characteristics 0CALMONTH, At present we managing the load by manually changing the selection for last 2 month every time ,
    It would be a great help if anybody can show a sample code to select last 2 month data,
    Thanks,

    Hi,
    data: l_idx like sy-tabix.
    DATA: lv_calmonth LIKE /BI0/SCALMONTH-CALMONTH.
    DATA: lv_day TYPE DATS.
    "previous month
    lv_day = SY-DATUM.
    lv_day+6(2) = '01'.
    lv_day = lv_day - 1.
    lv_calmonth = lv_day(6).
    READ TABLE l_t_range with key fieldname = 'CALMONTH'.
    l_idx = sy-tabix.
    MOVE lv_calmonth TO l_t_range-low.
    MODIFY l_t_range INDEX l_idx.
    "previous month - 1
    lv_day+6(2) = '01'.
    lv_day = lv_day - 1.
    lv_calmonth = lv_day(6).
    MOVE lv_calmonth TO l_t_range-low.
    APPEND l_t_range.
    p_subrc = 0.
    let me know if this works.... not sure about the last append.
    Olivier.

  • How to calculate age based on current month and over the next 12 months in Webi 4.1

    Hi,
    I am working on a report where I need to show employees who turned 65 from the time the report is run to over the next 12 months.I have the 'Date of Birth' field available. I am using Bex Query as a data source and webi 4.1. How do I calculate this in Webi 4.1. I appreciate any help.
    Thank you,
    Charvi.

    Hi Charvi,
    Get the all employees who are all in 64 age bucket till yesterday.  Keep indicator for these employees.
    Then obviously these employees will be falling in 65 age in coming 12 months/365 days.
    Same you can get at Bex level also. Create formulae :
    if employee age = 64 then 1 else 0.
    (AGE = 64 * 1 + 0)
    Then create condition on this formulae as Value = 1.
    Revert back your feedback.
    Regards, Vijay

  • 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

  • Suddenly I can't burn any tunes to disc.  I receive an error report - 4280.  What's the problem?  It all worked fine last week.

    Suddenly I can't burn any turnes to disc.  I receive an error report - 4280.  What's the problem?  It was all fine last week.

    Additional information: 
    -also ran "Repair" with new download of iTunes
    -am using the same spindle of CDs that worked perfectly a month ago.  Tried another brand also to be safe.  None worked.
    -ran CD/DVD diagnostics within iTunes with Apple Care - no issues apparent
    -also tried write-speed 20X on advice of Apple Care (don't know why they thought 20X would be the magic number after the other 3 I tried didn't work)
    -tried running itunes in another user account on the computer - same problem, same error code
    -Apple suggested it was a copyright issue.  I can't even burn music that I created/recorded myself, so that doesn't make sense.
    -They thought maybe Quicktime wasn't installed properly, so we checked a film in Windows Media - it played, meaning Quicktime was fine apparently. 
    Solution:
    Unclicked CD text option & Sound Check, ran burn from the File drop down menu (max speed) on a Philips CD-R and it worked!  Had been right clicking the playlist name and selecting Burn option from there.  That being said, it did not work on 2 other brands prior, with same settings.  Not sure why.  Just happy it's working again. Is it a brand issue?

  • Select Expert Record. Last 6 months and week start date on Monday

    Hello,
    i am trying to use the select expert record to grab the last 6 months worth of data. I require the week start day to be a monday and end on a sunday.
    Can someone please provide some advice the best way to do this
    kind regards
    david

    Hello Abhilash,
    Once again thanks for your reply.
    Yes this is correct, when it goes back 6 months i need it to skip the days prior and begin on a monday as we are reporting on a mon-sunday basis.
    I have tried your formula Date field >= dateadd('m',-6,currentdate) and it seems to grab 6 months of data, but the group weeks are not grouping from Monday to Sunday...
    kind regards
    david
    Edited by: davitali on Dec 2, 2011 9:35 AM

  • My Macbook Pro is about 4 to 5 years old.  I've noticed the last few months that speed was becoming much slower.  It slowed to a crawl last week and won't even turn on now.  Where do I take this to near Jackson, Michigan for service?.

    My Macbook Pro is about 4 to 5 years old.  I've noticed the last few months that speed was becoming much slower.  It slowed to a crawl last week and won't even turn on now.  Where can I take my Macbook Pro for service near Jackson, Michigan?.

    Things You Can Do To Keep Your Computer From Slowing Down
    If your computer seems to be running slower here are some things you can do:
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Repair the Hard Drive - Lion
    Boot from your Lion Recovery HD. When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    Suggestions for OS X Maintenance
    For situations Disk Utility cannot handle the best third-party utility is Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
      1. Carbon Copy Cloner
      2. Data Backup
      3. Deja Vu
      4. SuperDuper!
      5. SyncTwoFolders
      6. Synk Pro
      7. Synk Standard
      8. Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Additional Hints
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time, then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. Please help

    I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. I am accessing it via strong wireless connection and it works fine on other devices. Please help.

    zapgrap wrote:
    there is no information of locations.
    Then no information exists.  Use the Report a Problem button within the app to report it.

  • Computer iMac7,1 has been giving sundry problems for some time. Within the last six weeks I have reinstalled the OS (Snow Leopard), without affecting the overall contents of the hard drive. ±3 weeks later the problems became more serious and I again reins

    Computer iMac7,1 has been giving sundry problems for sometime. Within the last six weeks I have reinstalled the OS (Snow Leopard),without affecting the overall contents of the hard drive.
    ±3 weeks later the problems became more serious and I againreinstalled the OS and installed OS 6.6.7 from the internet.
    I used the option to restore from the external backup driveand went back some time as it was my intention to reinstall individualcomponent in an attempt to find out where the problem might lie. This hasintroduced an entirely new problem! If I open Time Machine from the desktop itappears that all backups from late 2009 to June 2011 are intact. But, in thiscase there are none of the restore functions &c on screen. The latter areonly shown if Time Machine is opened from the menu bar or from the dock but, inthis case, available are only backups in late 2009!
    I also opened the Apple Hardware Test in an attempt toestablish the nature of the problem. The ‘quick’ version said there’s nothingwrong; the more detailed one reported “Error detected, 4HD/11/40000004.” I haveagain tried to employ this test but nothing I do can induce it to open!!!
    What to do? I need help urgently and would appreciate anyadvice that offers solutions to the problem.

    To check your S.M.A.R.T status open disk utility and click on your drive and then click on the info icon.

  • MM-Report to see the materials which is not used from last 3 months

    Dear All,
    I want to find out the materials which are not used from last 3 months.Is there any report?
    Thanks
    Vishal

    Hi
    check MB5B
    give material and plant there
    select valuates stock radio button and NON-Hierarchical representation layout  on selection screen
    give last three month duration period on selection screen and execute report
    and see total  Goods receipt and total goods issue for material
    Regards
    kailas ugale

  • Sums up the last 4 weeks from the start date

    Hi all,
    Pls tell me how to find the give issue with example
    How to write queri in SQL
    sums up the last 4 weeks from the start date selected (meaning range of date 1st to 7th) (the 4 weeks should stop on the 31st).
    Thanks & Regards

    <DIV><FONT size=2>
    <P><FONT size=2>select</FONT></FONT> tstdate, weeks, (sum*<FONT
    color=#0000f0>7</FONT>) as sum<BR>from <SPAN
    class=224524108-18042006>  </SPAN>(select to_date(<FONT
    color=#0000f0>'&date'</FONT>,<FONT color=#0000f0>'dd-mon-rrrr'</FONT>) as
    tstdate,<BR><SPAN
    class=224524108-18042006>                    
    </SPAN>last_day(to_date(<FONT color=#0000f0>'&date'</FONT>,<FONT
    color=#0000f0>'dd-mon-rrrr'</FONT>)) as weeks, <BR><SPAN
    class=224524108-18042006>                    
    </SPAN>floor((last_day(to_date(<FONT color=#0000f0>'&date'</FONT>,<FONT
    color=#0000f0>'dd-mon-rrrr'</FONT>)) - to_date(<FONT
    color=#0000f0>'&date'</FONT>,<FONT color=#0000f0>'dd-mon-rrrr'</FONT>))
    /<FONT color=#0000f0>7</FONT>) as sum <BR><SPAN
    class=224524108-18042006>          
    </SPAN>from dual)<FONT size=2></P></FONT></DIV>

Maybe you are looking for

  • File upload - issue with European .csv file format

    All, when uploading the .csv file for "Due List for Planned Receipts" in the File Transfer Upload center I receive an error.  It appears that it is due to the european .csv file format that is delimited by semicolon rather than comma. The only way I

  • Pass parameter

    I have a page setup with an html widget that has 3 buttons.When I click on each, each loads a different html doc into the div I have setup - works great. Here's my question: Trying to pass a parameter from a link on one page to this page. I know how

  • WSDL generation from existing WebService

    Hello everybody, we have got an existing WebService which we want to migrate to XI. Because we don't want to change the clients interfaces we would like to import the WSDL and XSD and than generate a WSDL from XI. First problem: The WebService exists

  • [Ask] Best practice for making pools with CAM.

    Dear all, there's a few things I want to ask: Condition: - I have 48 disk with 300GB each and want to make some pool that contains /ctl , /archive , /data , /backup , /redo - i use software common array manager 6.9 - based on the information I got, w

  • Events vs albums?

    Hi all, I'm sure i could find the answer somewhere but I am struggling to find out what the difference is between events and albums? I get the obvious difference however will the photos just then be duplicated? I don't want to have duplicated photos.