Problems with current week

I am having problems with a YTD style measure and I don't know how to deal with it.
I need to sum from one date - the same day each year - 1st april - to the current week. The current week is defined as the last data build date. For previous years, the cumulative is from the 1st april to the parallel week to the current week.
There is an indicator in the database table that shows what week is the current week.
How should I store an attribute in a hierarchy that indicates it is the current week ? As a property ?
How would I sum from the 01st april to a current week using an attribute stored in a property in the Date dimension ?
My Date dimension is daily and based on calendar weeks and calendar months.

Hi ,
Does the week is part of the hierarchy ? if so, you want to have range between two days, the 01/04 and the last day for that relevant week . Something like ..
{[Date].[Calendar].[Day].&[20130401]:ClosingPeriod([Date].[Calendar].[Day], MyRelevantWeek)}
You can achieve the relevant week by filtering the weeks without the right property :  Filter([Date].[Week].[Week] , [Date].[Week].CurrentMember.properties("RelevantWeek") = 1) .
If you want to have a dynamic 1st to April for the relevant year, you'll need to build this member with the current year : strtomember("[Date].[Calendar].[Day].&["+str([Date].[Year].Currentmember.properties("key"))+"0401]")
Hope it helps :)
Regards, David .

Similar Messages

  • Problem with current scope forum

     I have searched my computer for trojan downloader and it was found and removed however the search said having a problem with current scope.
    Skin222

    Hello Skin222,
    Your problem is beyond the scope of support. This forum is for feedback and questions related to the current versions of the ADO.NET Entity Framework and LINQ to Entities including object-relational mapping and entity data modeling.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problems with current version of AIR. Won't load and also can't uninstall

    I have recently purchased a new Mac and loaded the most recent version of AIR but now when I try to run it I keep getting the following message
    This application requires a version of Adobe AIR which cannot be found.
    Please download the latest version of the runtime from
    http://www.adobe.com/go/getair,
    or contact the application author for an updated version.
    I am also getting this message when I try and run the uninstaller so I can I can try and re-install.
    Does anyone have any suggestions?
    Thanks.

    I had AIR 3 on my MacBook Pro before I updated it to Lion. I use AIR 3 to run McMillan Study guides Master your CDCs. when I updated my mac to lion and tried to run the application the application couldn't find AIR 3 on my mac. So I uninstalled it and tried to install it again. when I tried to install it the installer program doesn't open. please help me this program is crucial for my upgrade training. 
    From: lisachao <[email protected]>
    To: A1C PD <[email protected]>
    Sent: Monday, October 24, 2011 12:35 PM
    Subject: Problems with current version of AIR. Won't load and also can't uninstall
    Re: Problems with current version of AIR. Won't load and also can't uninstall created by lisachao in Installation Issues - View the full discussion
    Is this the error you are getting when you are installing AIR 3.0?  Or is this the error you are getting after you've already installed AIR 3.0 and attempting to run AIR applications?  If it's the latter, which applications are you trying to run?  Can you please send us your logs so that we can investigate further?  Thanks!
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/3987820#3987820
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/3987820#3987820. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Installation Issues by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Problem with Fiscal weeks

    Hi,
    I have to write a query which should fetch data for the last 6 fiscal weeks from the data from which it is run.
    eg
    SELECT TO_CHAR(SYSDATE,'YYYYIW')-6 FROM DUAL
    The above query would give me the last 6th fiscal week from the current date, but this query fails when the date lies in the first 6 fiscal weeks, it would return something like 200595 which should be 200546. The problem is that the number of the fiscal weeks for a year are not fixed. it might be 52, 53 or 54 also.
    Is there any function existing in oracle that would handle the above problem? if not can ayone help me to find a workaround for that.
    Thanks in advance
    Ramesh

    Is it a problem with week starting end of year and ending at the begining of the following year ?
    If yes, you maybe need to work with WW instead of IW, and try something like :
    SQL> exec :dt:='02062006'
    PL/SQL procedure successfully completed.
    SQL> ed
    Wrote file afiedt.buf
      1  select to_char(to_date(:dt,'DDMMYYYY'),'YYYYWW') "WEEK",
      2         case when to_char(to_date(:dt,'DDMMYYYY'),'WW') -6 > 0
      3              then to_char(to_date(:dt,'DDMMYYYY'),'YYYYWW') -6
      4              else to_char(last_day(trunc(to_date(:dt,'DDMMYYYY'),'YYYY')-1),'YYYYWW')
      5                   + (to_char(to_date(:dt,'DDMMYYYY'),'WW') -6) end WEEK_MIN_6
      6* from dual
    SQL> /
    WEEK   WEEK_MIN_6
    200622     200616
    SQL> exec :dt:='05012005'
    PL/SQL procedure successfully completed.
    SQL> select to_char(to_date(:dt,'DDMMYYYY'),'YYYYWW') "WEEK",
      2         case when to_char(to_date(:dt,'DDMMYYYY'),'WW') -6 > 0
      3              then to_char(to_date(:dt,'DDMMYYYY'),'YYYYWW') -6
      4              else to_char(last_day(trunc(to_date(:dt,'DDMMYYYY'),'YYYY')-1),'YYYYWW')
      5                   + (to_char(to_date(:dt,'DDMMYYYY'),'WW') -6) end WEEK_MIN_6
      6  from dual
      7  /
    WEEK   WEEK_MIN_6
    200501     200448
    SQL> Nicolas.

  • Problems with Current use of Main Stage on tour as live rig.....

    Set up...
    •MacBook 2.2 Ghz
    4 GB ram
    System 10.5.2
    (airport off when using MainStage)
    •MOTU Ultralite connected via Firewire (and powered by AC adapter)
    •M-Audio Axiom 61 Controller (connected via USB)
    •M-Audio Expression Pedal
    •M-Audio Sustain Pedal
    •Main Stage 1.0.2
    •Motion Sound Stereo Keyboard Amp
    I'm using this as my live keyboard rig with the band I play keys and lap steel in (Son Volt). We've been on tour for about a month, the set up worked flawlessly until about a week ago when it started developing problems I've been unable to figure out/fix. Here is a brief description of my "Concert"...
    •I have 1 Concert.
    •I don't think I am using a "set", if I even know what one is, a sub set in a concert I'm guessing...I think I just have a Concert.
    •There are 14 or so Patches in my Concert.
    •All are culled from sounds in logic/garageband, Organs, pianos, wurlitzer, vox, rhodes, a couple variations, and one sound that has piano with a pad sound along with it. None are that complicated, though the way they react to the controllers, especially the volume pedal as they are scrolled through seems a little unpredictable.
    •The problem started about a week ago....we would start our set, and I'd get into it, use a couple sounds, then I'd use the sound with the Piano and Pad stacked, this would play fine, but then, when I'd let the rig sit dormant after using that sound, when I'd come back to it after playing steel on a couple songs, the rig would produce no sound. It would also stop showing that it was receiving MIDI info, at least based on looking at the keyboard-display that shows the keys you've played as you play them. I'd switch to other sounds, move the controllers...no-go. I'd be forced to quit and re-start the program. A hassle during live performance, to say the least.
    •I haven't had a lot of time to troubleshoot this, and honestly my MIDI skills are kinda weak, but here is what I tried...
    •I started over, and basically made the concert over from scratch, it works fine at soundcheck or when I mess with it...but in performance it always goes down OR...even more disturbing, now it has taken to playing random notes, not even with the currently selected sound, and freezing with those notes in play, held down. They are unstoppable, even with changing the sound, and once again, a re-start is required (I have found the MUTE button on the MainStage window, but no "panic" button or the like.)
    •At tonights show I had to restart twice, and that stacked sound, which I'm coming more and more to feel like is somehow the culprit, didn't even sound completely when selected before using (the piano sound only was reproduced, the "pad" sound didn't sound.
    Any suggestion about what to try? Could this have something to do with running out of RAM (the MacBook is Maxed and I'm not including too many Patches in my Concert)? Conflicting controller settings? The keyboard controller itself (it seems unlikely). Some other simple set up, configuration or preference I might be unaware of? I set up my Concert with the sounds and patches available, without any consideration for any "differences" they might have, configuration or controller-wise. I just assumed I could drag em' all in there and use them no prob. Maybe I'm mistaken, but, if anyone has any good ideas or suggestions on how I might make this rig more reliable it'd be much appreciated. I LOVE the sounds, and don't want to have to (what I consider) step down to the sounds of my XP-30 or pony up for a Nord.
    Thanks in advance, Mark.

    Try using the application 'console' in the Utilities folder. Make sure you have both the system and console logs open from the File Menu. I resize both windows to @ 1-2 inches tall across the bottom of your screen.
    If there are any USB or firewire issues. There are ways to search the logs back in time, if you know the time and date the problem occurred, look for that weeks log file (use help) search that day, or search for resets.
    One other, try to keep lower speed USB devices together on one usb port. And put all the high speed devices on the other, faster with faster bus, and slow on a slower bus.
    System profiler shows which usb devices are on the 'USB High-Speed Bus (faster) and USB Bus (slower)'. Check with M- Audio and MOTU for USB port speed configuration they are.
    Hope it helps

  • HTTP to ABAP Proxy - Problem with "Current User" parameter

    Hi experts,
    We have a HTTP to ABAP proxy sceario, where I used an HTTP Destination to connect to the proxy.
    We're trying to use the option "Current User" in that destination in order to login to ECC with the same user that in PI adapter plain.
    The user exists i both systems, PI and ECC, with the same password.
    Checking that parameter we get the following error:
    <SAP:Error><SAP:Category>XIServer</SAP:Category><SAP:Code>INTERNAL.UNAUTHORIZED</SAP:Code><SAP:P1>401 </SAP:P1><SAP:P2>Unauthorized</SAP:P2><SAP:P3>(See attachment HTMLError for details)</SAP:P3></SAP:Error>
    We think that PI is not getting the password.
    Does aybody know how to do this?
    Thanks and regards,
    LUIS B.

    Hi Chirumamilla,
    If we put user and password in SM59 (unchecking "Current User") the commuication works without problems.
    We don't want to leave a user set there, beacuse we are looking to access to PI with different users and login to ECC with the same user.
    Thanks,

  • Problem with current item in forms 9i

    I call form from another form the first time the form runs correctly, but if I close it and re-open it again, when I tried to move the cursor to any item in the form using the mouse, the cursor moves correctly but when I need to get the current item value using ':system.cursor_value' then the cursor returns to the first item and get the value from the first item. This problem only with the mouse. But if I move to the item-using keyboard there is no problem.

    979801 wrote:
    If I use LOV in place of List Item,Then I have to populate a LOV at run time.How could I maintain a record group n attach to LOV at run time?
    On my previous post I have mentioned record group as follows:
    select * from tbl_state where s_id=:tbl_address.s_id;
    If :tbl_adress.s_id chaned during the time of run, then output values of list_city (LOV) is also changed.

  • Problem with Current row of a VO???

    I have a Advanced table region in which i add many rows..and i get the data in to it from the lov page (lov mappings).
    for each row i add... i have to set a item in main page table region doing some validations the data i get from lov region.
    with examples..more detailed..
    i have paymentAmount and AllocAmount...i get the payment Amount from LOV...after doing some validation on paymnetAmount i have to set the same value to the AllocAmount.
    ARTransactionLine is the VO which contains the above mentioned attributes....and advanced table i mentioned above is based on this VO.
    for this purpose im using the following code..
    ARTransactionLineVOImpl
    vo=(ARTransactionLineVOImpl)findViewObject("ARTransactionLineVO1");
    ARTransactionLineVORowImpl TransDetailsVORow = (ARTransactionLineVORowImpl)vo.getCurrentRow();
    payment_amount = TransDetailsVORow.getPaymentAmount();/*for this paymentAmount i made a lov mapping..so that currentrow contains the value of paymnetAmount from lov page*/
    if(/* some validation*/){
    TransDetailsVORow.setAllocAmount(payment_amount);
    now when i do this ..for the first row it is working fine...but for the second row it is failing...getCurrentRow() is giving the values of previous row..not the current row...
    first of all what does this getCurrentRow return???
    help me ...n tell me where i was wrong...

    I m sure you have not gone through the tutorials completely.
    ARTransactionLineVOImpl vo =(ARTransactionLineVOImpl)findViewObject("ARTransactionLineVO1");
    ARTransactionLineVORowImpl TransDetailsVORow = (ARTransactionLineVORowImpl)vo.getCurrentRow();
    with this row i am doing the below opeations..
    Number x=TransDetailsVORow.getPaymentAmount();
    /* some validations*/
    TransDetailsVORow.setAllocAmount(x);
    Change to
    ARTransactionLineVOImpl vo =(ARTransactionLineVOImpl)findViewObject("ARTransactionLineVO1");
    ARTransactionLineVORowImpl TransDetailsVORow = (ARTransactionLineVORowImpl)vo.first();
    while (TransDetailsVORow!=null)
    Number x=TransDetailsVORow.getPaymentAmount();
    /* some validations*/
    TransDetailsVORow.setAllocAmount(x);
    TransDetailsVORow = (ARTransactionLineVORowImpl)vo.next();
    Tapash

  • Display and lock up problems with 3 week old MBP!!!

    Hi all,
    I hope that someone here can help with a scary problem that I have experienced with my (otherwise perfect!!) MBP!!
    Occasionally, so far always after a boot up or wake up (but never on the login screen!), the MBP will lock up completely and the display will become corrupted as in the images I have posted below (fingers crossed!)!
    As I said, it locks up the MBP so that the only action I can take is to force a reboot by pressing the On/Off button for the required amount of time.
    I took the MBP to an Apple shop after making an appointment with a Genius (wonderful, lovely Spanish girl, name of Eva!!!!). Sadly, as the symptoms could not be recreated in the shop there was not a lot Eva could do, she did recommend a re-install of OS X, and also suggested that I let them have the MBP for a day so that they could hook it up to something (for a full eight hours!!) or other and test it. Eva did say that she had not seen the problem before (I took my camera to the shop and showed her the pics of the screen), but that it did not look good!!
    So, I decided to take it back home and ask for help here!!!!
    Any advice would be welcome!!!
    Screenshot 1...
    Screenshot 2...
    Regards
    Blakey

    i would go back and show them these pics, also try doing stuff that is graphics intensive, my guess is that you have a bad video card, doing things that heat it up should get it to happen
    one thing that you can use stress the vid car is the opengl example programs included with XCode (its included with the programs on the CD that came with the computer), so i recommend opening a few of those, and then doing a few `yes>/dev/null` in the terminal, also make the window semi-transparent, and put it on top of quicktime playing some movies, that should help stress the video card and put extra heat on it
    if you can get that to consistently cause the problem then take it back to Apple

  • Problem with Current Tab Image property of tabs

    Hello. I am having trouble changing my tab entries to appear as images. When editing a standard tab I went to the section labeled "Images". Then I put values in for "Current Tab Image" and "Non Current Tab Image", and after running the page the images do not appear. The tabs still appear as text. Does anybody know what the problem is?
    The paths that I tried to use for the images are:
    button.gif
    #WORKSPACE_IMAGES#button.gif
    Any help would be greatly appreciated.
    Thank you,
    -Jason

    Never mind, I figured out the solution.
    I'll explain what needed to be done for those of you that come across the same problem.
    I had to edit the Page Template, and go to the section "Standard Tab Attributes". All I had to do was change the text "#TAB_LABEL#" to "#TAB_IMAGE#"

  • Problems with current location after upgrading to IOS 5 for IPhone 4

    I have an Iphone 4 and upgraded to IOS 5, but now my current location isn't working? Any suggestions?

    Basic troubleshooting steps clearly outlined in the User Guide are restart, reset, restore from backup, restore as NEW.
    Go through these steps sequentially until your problem is solved.  If after these 4 steps you're still having problems, then you likely have a hardware issue and will need to bring your phone into Apple for replacement.

  • Problem with current position (UMI-7764)

    Good afternoon,
    I'm using servomotors PSKF321 (SEW) and servodrives MDX61B (SEW). I'm using the PCI-7344/UMI-7764 to control the motors. When I was performing some tests in MAX, I realized that I don't have feedback from axis 2, 3 and 4. Axis 1 is working fine, i can control perfectly the motor, I can make movements to different positions. I checked the connections from the drive to the UMI and they are the same that i used to axis 1. I changed to other axis and it doesn't work. I tried to change the connections from the axis2 and 3 to axis 1 they work. I tried to put in annex the xml file related to the configurations of the PCI but it wasn't accepted. It is possible that my problem is a wrong configuration of the PCI?
    Thanks for your time,
    Hugo Tomada
    number: +351965319388/+351912655946
    email:[email protected]
    skype: hugotomada

    Good afternoon,
    I'm sending the connections that I made in the UMI-7764.
    Thanks for your time,
    Hugo Tomada
    Attachments:
    UMI-7764.pdf ‏7 KB

  • Application import problems with current apex on 11.1.0.7 and 11.1.0.6

    Hello,
    i have Application Express 3.2.1.00.10 up and running so far.
    11.1.0.7 patch is applied.
    I can't import an recently exported application with apex.
    error: The requested URL /apex/wwv_flow.accept was not found on this server.
    If i try to copy the application i got:
    ORA-01536: Speicherplatz-Zuteilung für Tablespace 'SYSAUX' überschritten
    Unable to copy application 123.
    Certainly there is no trouble with sysaux tablespace.
    Importing an export file with sqlplus works.
    - How to modify the export file to generate a new application?
    - Is it possible without running in any primary key violation?
    Thank you
    Michael

    Hi Michael,
    one of your error describes that the SYSAUX tablespace can not allocate more memory. You need to extend one sysaux datafile:
    Example extend sysaux datafile to 2GB:
    ALTER DATABASE
         DATAFILE '/data/xe/oradata/sysaux.dbf' RESIZE 2048000K;

  • Problem with current date field...

    I want to display the current date and time, but when I change the data format in the binding tab to "Date and Time" and assign a pattern that includes date and time, all I get is the current date, NOT the time. TIA!

    I have tried applying these scripts in the initialize event to all manner of objects, text field objects, date/time objects, numeric objects, current date objects, and it shows nothing. If I could just edit the date/time format of the current date object when it is set to "Runtime Property-Current Date/Time" I MIGHT be able to use it. I really appreciate your help thus far. Would it be possible for you to share a pdf file that you've made where this works so I might disect it? No matter what pattern I specify in the "Field" palette, it shows it's own formatting.
    UPDATE: I did go back after trying it a few times to change the value after Page1 to match the name of my field.
    UPDATE 2: Here is a link to what I've done. Take a look and let me know what I'm doing wrong, or change it and share it back. Thanks so much for your help!!!
    https://www.dropbox.com/s/1so2hcao372k37z/Script%20Examples.pdf
    Vipin Bhargava wrote:
    I have found 3 more variants. You can write below code on initialize event. It will automatically display the current data & time during the preview
    1.   xfa.form.form1.Page1.TextField1.rawValue
    = util.printd("dd.mm.yyyy HH:MM", new Date()); 
    2.  xfa.form.form1.Page1.TextField2.rawValue = util.printd("dddd d. mmmm yyyy HH:MM ", new Date());
    3.  xfa.form.form1.Page1.TextField3.rawValue = util.printd("date{EEEE, D. MMMM YYYY} time(de){HH:MM:SS Z}", new Date(), true);
    Hope this helps,
    Vipin

  • Using Mavericks OS, purchased program through App Store of which had problems with current OS, therefore deleted program with intent on reinstalling same from App Store, I am unable to redownload this program because it is greyed out and shows installed.

    Purchased application in App Store (Opus Domini). Did not play will with OS X Mavericks. Deleted program to re-download from App Store. However my list of purchases shows this program as installed and is greyed out. Need to re-download. Have talked with company and they are working on an update for OS however this will take some time.
    Thanks.

    An app is considered to be installed if it shows up in a Spotlight search of local volumes. Bring up a search window in the Finder by pressing the key combination command-F. Search This Mac for the name of the application. Delete all copies that are found.

Maybe you are looking for

  • I can't find the Pages application

    i have already bought Pages as an app on my ipad and have now bought a macbook air. I went onto the apple store and downloaded the Pages app for mac's but now can't find the app even when i search for it, just the individual documents from my pages a

  • Motion Blur

    I have created a dvd (to be played on a TV) as I was viewing it a few of the clips had motion blur. What cause this? How do I fix this problem? Does it stem all the way back to how I imported it into Final cut express or exported it?

  • Time outs

    I have suddenly found that I am being asked to "Re-Sign In" after a period of time on iCloud when using my Mac.  I have never encountered this in the past and am wondering why, all of a sudden, this has begun to occur?  Also, is there a setting that

  • BPEL async calls OSB which calls BPEL async

    In this scenario, I use the bpel-10g transport with an opmn ULR to call the back-end BPEL process. The bpel-10g transport seems to be the only way to include the callback address. I'm getting an error like this: <fault><remoteFault xmlns="http://sche

  • Jrun 4 and II7

    Does Jrun 4 work with IIS 7? - Alex