0CALDAY with offset -1 question

Hello SDN,
I am using BW3.5 query designer.  In my rows, I have 0CALDAY.  In my columns, I have Volume, and Prior Day's Volume.
I am trying to calculate the Prior Day's volume.
Example dataset:
2008.01.01     10     0
2008.01.02     7      10
2008.01.03     5      7
What's the best approach to do this?  I am thinking to either create a variable with an offset of -1 or using cell editor.  The problem I am having with using a variable is that I am trying to avoid using a variable screen for a key date.  If I use "Current Calendar Day" variable for 0Calday with an offset of -1, then it makes all the values in the Prior Day's Volume =  sysdatum - 1 which is not what I want.
Thanks!
Brendon

Hi Brendon,
Are you using a standar cube or is it a custom made?
If it is a custom made, one way to do it is the following:
  In your cube define a new key figure (ex: valueDayBefore)
on your update or dtp rules
assign the same key figure you used to your original key figure to valuedaybefore,
in the characteristics, make a formula for ADDING (1 day to 0CALDAY ).
Ex:
Source:
0CALDAY ___VALUE
04.04.2008___10
05.04.2008___20
06.04.2008___30
Cube:
0CALDAY ___VALUE___VALUEDAYBEFORE
04.04.2008___10_______X             
05.04.2008___20_______10
06.04.2008___30_______20
07.04.2008___X________30
Now you can easily do the query you need.
I still dont know how to do it via Bex only, that is the way we resolved succesfully one similar requirement.
hope it helps.
DGF

Similar Messages

  • Replacement path variable with offsets

    Hi experts,
    I have the requirement to report receivables (open items) historically by fiscal year / period.
    More precisely, each period should show the open items that are open at the end of the period.
    Example:
    001.2010 (shows open items from 31.01.2010)
    002.2010 (shows open items from 28.02.2010)
    ...etc.
    The idea is that the user enters a fiscal year/period using a manual entry variable.
    The open items should be calculated as follows:
    KF: Amount
    Posting Date <= Variable
    Clearing > Variable or unassigned
    Variable is a replacement variable that is replaced by attribute "Date To" from the user entry Variable (Fiscal year period)
    E.g. if the user enters 008.2010, then this value is automatically replaced by 31.08.2010.
    Generally this works.
    However, to view the values for the last 12 months, a structure is needed consisting of 12 elements with offsets in order to show the 12 months prior to the selected period (e.g. 001.2010 - 002.2010 - 003.2010 ....etc.)
    The problem is that the replacement only considers the user's variable entry and ignors the offsets.
    Example:
    User enters 008.2010.
    In the column strucure I show 3 months 006.2010, 007.2010, 008.2010.
    Then all columns would show items open on 008.2010 - the offsets are ignored.
    Any idea, why this happens and how it can be resolved?
    This problem has given me a headache for days.
    Your help is much appreciated.
    Thanks and regards,
    Alex
    The user should be able to enter a fiscal year / period and

    take an e.g.
    u have characteristic say ch1
    u want to restrict it with replacement path variable
    first of all create a variable var1
    click what it is based upon for e.g. 0calday, 0material etc.
    make it user entry variable
    select single or multiple entry
    make it mandatory
    save it and hit okey
    click on ch1
    right click and say restrict
    in new window create a new variable
    give its name and technical name
    processing path is replacement path
    go to next tab of replacement path
    select several ooptions
    replace variable with another variable
    select a variable called var1
    change the offset length and offset start with different parameters.
    hit okey
    this way u have restricted ch1 with replacement path variable var1
    now when u run report u have to enter value of var1
    which will then further feeded to ch1
    this way u can create replacement path variables at lots of instances and then u can always feed the value from var1 at different time
    make sure as this ur requirement is date
    try to use 0calday as reference infoobject all the times....

  • I have a PowerMac G4 running ProTools that no longer boots up.  All I get is a file folder on the screen with a flashing question mark in it.  Ran the Utility disk and all systems passed.  Any ideas?

    I have a PowerMac G4 running ProTools that no longer boots up.  All I get is a file folder on the screen with a flashing question mark in it.  Ran the Utility disk and all systems passed.  Any ideas?

    You need to use the computer's install disks to repair the hard drive or install a new OS.
    (58033)

  • My MBP (mid 09)/ folder with a flashing question mark.

    My MBP (mid 09) is showing a folder with a flashing question mark. I tried the usual things like PRAM Reset and booting with a external drive. I also changed the hard drive and could use it as a external drive on an other Mac - so this seems to work. Another drive could not be used too. The Apple Hardware Test does not work - my Superdrive is broken. Any ideas?

    https://discussions.apple.com/docs/DOC-3046
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • Problem with offset values

    Hi Experts,
    I have a problem with offset values. I have create a variable on OFISCPER, it's characteristic value, indivdual value, mandatory and ready for the input. I need to show the varibel period and the l previous period and so on till 12 periods. I used the offset values (-1, -2, etc.) but when I execute the query I can show just the variable period and the period previous I don`t see. The query is based on multiprovider and don´t has filters. Can anyone help me?

    Leonel,
    You may nt need to have 12 columns in the query designer.
    You could include the keyfigure and restrict it to the variable and create the offset for the 12 periods
    Check this http://help.sap.com/saphelp_nw04/helpdata/en/00/e8d13f7fb44c21e10000000a1550b0/frameset.htm
    -Doodle

  • At startup I get grey screen and a folder with a flashing question mark.  How do I reset my MacBook Pro to the manufacture defaults?

    At startup I get grey screen and a folder with a flashing question mark.  How do I reset my MacBook Pro to the manufacture defaults?

    Click here and follow the instructions. If the computer originally shipped with Mac OS X 10.6.8 or earlier, when you reach step 5, insert its original disk, restart with the C key held down, use the Disk Utility to erase the internal drive, and install a fresh OS.
    (113954)

  • Upgraded to ios6 on my iphone 3gs and email is not displaying images. It has a blue box with a blue question mark inside

    I just upgraded to ios 6 on my iphone 3gs and I noticed on a couple of incoming emails that the images and information are not being displayed. There is a blue square box with a blue question mark inside. I already tried to press the home key and power key to restart. The email still does not display correctly. I went on my laptop to retrieve that same email and I was able to see the graphics and information, so the problem is on the iphone. I received two emails like this, so I'm missing all the important information. I also tried to retrieve my email through the internet browser and I still have the same problem. Any suggestions? Thanks!

    I forgot to mention that I have an Ipad 2 also and I can view the email information on there also. I received an email from Party city and it said to click here to print out the coupon. So I click the coupon and there is the little blue box with the question mark. This is the first time I've seen this happen, as I have printed out the coupons before. Maybe it has to do with the IOS6 update, because this just started to happen right after the update.

  • I have replaced my ibook hard drive but when I start up I get a folder with a flashing question mark. I have tried installing the OSX disk using the "C" key but can't get any further than the flashing "?." What do I do? What is the problem?

    I have replaced my ibook hard drive but when I start up I get a folder with a flashing question mark. I have tried installing the OSX disk using the "C" key but can't get any further than the flashing "?." What do I do? What is the problem?

    Which iBook do you have?
    http://support.apple.com/kb/HT1772?viewlocale=en_US
    Which version of the OS is installed, and which version are you trying to install?
    You could try starting up with Startup Manager and see if it will allow you to select the OS X install disc as the startup disk. If so, maybe you can proceed from there. I would recommend repairing the hard drive first since you are evidently having a bit of a problem with it.

  • My MacBookPro has a white screen with a grey file folder in the center of the screen with a white question mark blinking in it. What does this mean?  And how can I get my computer back up and running normal?

    My MacBookPro has a white screen with a grey file folder in the center of the screen with a white question mark blinking in it. What does this mean?  And how can I get my computer back up and running normal?

    Start up in Safe Mode.
    http://support.apple.com/kb/PH14204?viewlocale=en_US
    Repair Disk.
    http://support.apple.com/kb/PH5836
    Reset PRAM.
       http://support.apple.com/kb/PH14222

  • Firefox is not displaying alt codes correctly, substituting a black diamond with a white question mark in their place.

    Alt codes (such as &#174; for "registered" and &#153; for "trademark") are being displayed as a small black diamond with a white question mark inside of it. This has also started happening to more simple characters such as exclamation marks, dashes and apostrophes.
    Any ideas?

    Thanks for your reply cor-el.
    My posting actually included the alt code syntax, and is now rendered as the corresponding special character. I guess this isn't a surprise!
    And no, it was rendered just fine. This morning when I went into the browser to see the problem, it was not mis-displaying as it had been...it had somehow changed and was behaving very nicely. That's all fine, but I'm a little bit wary of this FF browser functionality now...steady as she goes.
    Also, I did check the (View > Character Encoding) you recommended, and after experimenting a bit discovered that using "Unicode (UTF-8)" made the wierd black diamond/white question mark character come back in all of the same places it was occuring...up until this morning. I've set my browser default to "Western (ISO-8859-1)" now, and everything is displaying as it should.
    Thanks for your reply and suggestions. I hope others will learn from these experiences.

  • TS1440 iMac freezes, no choice but to hard shutdown, turn back on, white screen with folder and question mark appears

    Hi,
    so my iMac (it's not the most recent iMac if it makes any difference, and I'm running mountain lion 10.8.3) often freezes and I do a hard shutdown as I cannot force quit the applications or click on the apple in the top left to shut it down. When I come to turn it back on, I'm greeted with a white screen, in the middle of which is the dreaded folder with the flashing question mark in it. I've noticed that just before a freeze occurs, it starts running slowly and if I try going onto Facebook for example, it says that it cannot connect to facebook.com despite the internet connection being fine as I can browse things on Google. I have also noticed that before a freeze, in Finder, in All My Files, no files show. I went through this http://support.apple.com/kb/TS1440 and the problem still persists. Sometimes it does load fine if I shut it down again but when I eventually open up safari, if I had been on youtube for example, it will reload the page from a few videos before and not the one I was on when it actually froze.
    Any help would be hugely appreciated,
    Thanks
    Side note: When it says I must choose a community in order to post this, it only gives me a choice of 3 which are Mac OS X v10.4 Tiger, v10.5 Leopard, v10.6 Snow leopard, so apologies if this is posted in the wrong place - is there any way to get it moved to the correct place?

    Yes,easy fix but difficult to buy,think you can get them from the states (off the top of my head about £15).When you go to the apple store,tell yhem what you suspect and they will test if it is the cable or if its the hard drive,dosn't take that long and it's free.If you know what to do you can take the back off and with strong magnifying glass you might be able to see the fray look at the bend of the cable.

  • Customer Exit Variblae with Offset

    Hello Everyone,
    Can any one tell me whether we can use offset on Customer Exit Variable or no?
    I have
    Variable 1. Calmonth_01 in first Column which is also input varialble.
    Variable 2. Calmonth_02 is second Columnt which is Exit  Variable on which offset is not applied.
    From third Column i m using second variable with offset.
    According to me it has to work. but i m report it is not working.
    Plz help.

    Hi,
    If you have any Input Variable on 0CALMONTH and based on the input month if you want to display the reports either + or 1 Months then you can use Off Sets it will work, no need to go for Customer Exit Variables.
    1. Create a User Entry Variable on 0CALMONTH eg name of variable = ZMNTH
    2. Restrict the Keyfigure with ZMNTH in column one.
    3. Restrict the Keyfigure with ZMNTH-1 in column two, it will display Previous month data based on Input month
    4. Restrict the Keyfigure with ZMNTH+1 in column three, it will display next month data based on Input month
    Steps 3 & 4 are using Off Sets only.
    For any Customet Exit variables see
    https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    Thanks
    Reddy

  • My macbook pro is still under warranty.  I have just put it into Mac 1 to be repaired because I had the folder with the dreaded Question mark on it....new hard drive.  I was told that if I wanted my data retrieved, I would have to pay $445 p/h. Ahh!!!

    My macbook pro is still under warranty.  I have just put it into Mac 1 to be repaired because I had the folder with the dreaded Question mark on it....new hard drive.  I was told that if I wanted my data retrieved, I would have to pay $445 p/h. Ahh!!!  Shouldn't that be covered by warranty?

    My newest Mac just did the same "folder of death" dance. It's too late for you now, but you might consider a passport backup drive.You can get 2&3 T-bytes now fairly reasonably priced. A given with computers is they will crash, just a question of how bad and when, so you can be prepared for the next time.

  • Embedded images replaced with blue square/question mark

    Guys,
    Am new to Macs so it's probably user error however, I regularly receive mails with embedding images in them. On my PC I had they came in fine however on my new Mac all the images get stripped out of the e-mail and saved as attachments. This means all the image place holders in the mail show as small blue squares with a white question mark in them and doing quick look on the attachments shows the correct images!
    Is there a config setting that stops mail stripping the images off as attachments when they're "in" an e-mail??
    Hope someone can help as this is bugging me now!!
    Thanks,
    Mark

    Don't know if this suggestion will help but..........
    I experienced problems with attaching images to outgoing mail. When I did this with my new iMac (OSX 10.4.11) the attached files were replaced with a blue square containing a question mark.
    I browsed various forums and found quite a few references to the same problem and I tried all the various 'fixes' to no avail.
    Earlier today I called Apple's tech support and spoke with Mujahid. He went through the problem, established that it was 'system wide' on my iMac and then he suggested that I trash Mail (v2.1.2) and re-install Mail (only Mail) from the disks that came with my Mac. I followed his instructions and after a shut down/restart cycle, Mail now functions correctly. When I attach an image file to an outgoing email, the file no longer appears as a blue square with ? mark but as the original image.
    I wonder if the same sort of fix might resolve the problems with Safari?
    Thanks to Mujahid.
    Regards.
    Niall

  • Hi all, I'm still having problems with my security questions as they were not the ones I answered. Now I'm confused

    Still having problems with my security questions as they were not the ones I answered and now I'm confused.

    Howdy Paul,
    If you are having an issue with your Apple ID security questions, you can reset them using the steps in this article -
    If you forgot the answers to your Apple ID security questions - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

Maybe you are looking for

  • How do you get songs not in your library?

    I have some songs that are not in my library so I can't download them into my iPod. HELP PLEASE!!!!!!!!!!!

  • ITunes is stuck in a loop "preparing apps to sync" Windows 8.1

    I am trying to restore a back up of my iPhone 4s on to a new 5s.  The sync application is stuck in an endless loop of "preparng apps to sync."  The program quits, starts again and stalls on "preparing apps to sync."

  • One touch access cant find modem

    Phone: N95 8GB All latest software and drivers installed. PC suite manager working fine. Phone connected by cable to USB port. On the PC in device manager, can see the N95 as a modem. All other aspects of connecting to the PC working fine. However wh

  • IBook G4 with graphics weirdness, possibly overheating?

    I have an iBook G4 that's about two years old. It has been fine up until a couple of months ago. Now, after about fifteen minutes, the screen display starts to break up with static, lots of different colors, etc., flickers, and then goes dark. Someti

  • When to use binary search ... little urgent.

    Hi evryone, Plz let me know under what kind of conditions can we use binary search addition cause if I use it for every read statement the database acees in se30 goes higher than normal. If i randomly select only a few big read table statements the d