Simple formula going nuts!

Post Author: echoi
CA Forum: Formula
I've a very simple formula that... for the life of me, I can't figure out whats going on with it.
It is in a subreport, and all it's supposed to do is look up a string for every record and if it matches, it adds on the value of a different coulmn.  So here's the formula:
whileprintingrecords;numbervar hours;
if {Command.DESCRIPTION} = "Closed Labor Charges" thenhours := hours + {Command.QTY}else1234 // failure code
What's weird about this is that there are three records that should match the "Closed Labor Charges" but the formula returned the value for only one of those records.  That's typical, I could have holes in my formula.
What makes it even more odd from here on is that if I bring up 6 more records that have "Closed Labor Charges", the formula returns "1234" which is the failure code defined in the formula.  The records even contain the original match the formula found before and it's still returning a fail code.
What is going on here?

Post Author: V361
CA Forum: Formula
You may be able to peek into it a little by doing this.  add /0 to the formula, and save it. (You will get an error message, but save anyway)  run the report
whileprintingrecords;numbervar hours;
if {Command.DESCRIPTION} = "Closed Labor Charges" thenhours := hours + {Command.QTY}  /0else1234 // failure code
The formula should pop up in formula explorer, and should show some values.
(Not a great way to trouble shoot, but sometimes it is handy to see what the Formula is doing. )  Also, after you remove the /0 and convert back to the orginal formula, add {Command.DESCRIPTION} to the report (next to the formula), or in the details, and unsupress them, this way, you should be able to see the value for {Command.DESCRIPTION} just before the formula is evaluated.

Similar Messages

  • The trackpad of my 13" macbook pro (mid 2012) has geen going nuts for about a week now. It randomly clicks and drags the cursor to all places on screen, it randomly clicks, selects and swipes. Have tried spm reset and pressure on whole trackpad. Help?!

    It goes nuts for hours and the next day it acts completely fine. My macbook is impossible to work with when the problem is active; it randomly clicks, drags, selects and even selects words (in a yellow colour) to come up with latin(?!) translations.
    Ive tried the reset (option+cmd+r+p) and it seemed to work at first but now it doesnt seem to have any effect whatsoever.
    Also tried to apply pressure to the entire surface of the trackpad or just the top corners; no effect whatsoever.
    It's been quite an expensive purchase for a young student like me and i've really enioyed it until last week.
    I'd be relieved if someone came up with a solution; especially since its warranty has expired for half a year now.

    Hi there Bram3,
    You may find the troubleshooting steps in the article below helpful.
    Portables and Magic Trackpad: Jumpy or erratic trackpad operation
    http://support.apple.com/kb/ts1449
    -Griff W. 

  • Triggering events for the Lost Triggers!!! Going Nuts....

    Gurus,
    Oracle ver 11g
    I am going nuts and crazy here....
    Can you think of any possible reasons that I have lost all my objects that I created for triggers ( approx 65 objects) and how to get back those objects.
    I don't have the script to re-create all those objects again as I did it manually using the Toad and I am 1005 sure I saw all the objects created and was able to see them in sql*developer tool.
    We had a server crash and we had to reboot the server where this oracle is residing, but other than that I am have no reason how the objects disappeared...
    My belief is create trigger is a DDL command Right? so the objects should be there in the DB.but I am not able to see them any possible reasons>?? please advice when time permits
    Thanks
    Sheik

    Thanks ennisb for your reply.
    Do you have an export handy that you could restore from?
    ** No, I am not sure how I could do this. and whether we are doing it. Basically are you asking whether we are backing up the DB daily ( No I guess we are not backing up).
    Is Flashback logging turned on?
    ** Guess Yes, the Flash back is turned on.
    When was this server crash?
    ** I am sure I saw the objects on 8th Apr and were created on 7th and 8th and the Server crash was Y'day ( 09th).

  • Query on simple formula write in transformation

    Hi Bw Experts,
    i am loading 0calday(20100401) to Standard cube(BI 7.0) from flat file.In the cube output i need only month and year(i.e 04.2010).I have to write the simple formula in transformations on 0CALDAY Field.What is the formula i have to write?
    Could you please help me out?
    Thanks

    Hi,
    you can achive this using the Filed routine or formula
    DATE_MONTH(0calday) which will display month and year.
    or write filed routine
    RESULT = TRAN_STRUCTURE-0CALDAY+0(6). (BW 3.x)
    RESULT = SOURCE_FIELD-0CALDAY+0(6). (BI 7.0)
    Regards
    Kp
    Edited by: prashanthk on Jul 31, 2010 7:12 PM
    Edited by: prashanthk on Aug 1, 2010 6:21 AM

  • Help!  Simple Formula, Unique Output?

    Post Author: kjameson70
    CA Forum: Crystal Reports
    In order to save space, I am creating a simple formula to include a company name, location, contact & phone instead of putting each field into a Text Box, which makes the Detail section of the report the same size whether data is reported or not. 
    Creating the formula is easy, but I want each field to print on a new line, instead of in the same row or to wrap. 
    How do I tell the formula to go to the next line? **
    Current Formula:  + + +
    Preferred Result:   Company   Location   Contact   Phone
    Not:  CompanyLocationContactPhone2
    What needs to be done to get the Preferred Result?
    This result is one of many columns on the report.

    Post Author: SKodidine
    CA Forum: Crystal Reports
      & chrw(13) & & chrw(13) & & chrw(13) &

  • Lately my iphone 5 is going nuts for some reason. siri pops up for no reason

    my phone is going nuts, it seem to activate siri on its on and takes pictures on the home scrren and some time the home button get stuck , please i need your help in solving this issue, my phone is new , it happens sometime when my phone is on a table with nothing touching it

    Sounds like you have a home button fault as both symptoms relate to the home button, e.g. Siri is normally activated by holding the home button. Screenshots are normally taken by pressing the sleep/wake button and the home button together so then you are switching on the phone it probably assumes the home button is also being pressed and takes the screenshot.
    You will need to make a Genius Bar reservation at your local store and take it in. They are able to replace the home button module on the iPhone 5 which is most likely what they will do. Just ensure you have a backup in case they do decide to replace the phone.

  • Adobe  Reader has not worked on my Safari for months. I have tried a new download 20  times! Works fine on my Google Chrome. Im running MacOS 10.9.3. Help! GOing nuts!!!!

    It has been months since I the adobe reader has been able to read a pdf link from Safari. I have to use Google CHrome if I want to read a pdf. I am running OS 10.9.3. My Mac is only 2 years old. I am going nuts trying to run the download... i have tried countless times and I still get adobvve reader bocked for this website on everything!
    sue

    Ah, Ok. I didn't know what was triggering the message. That is launching indeed. (I have to ask because many people a week don't know what it means).
    This message is the big problem, because it isn't even getting as far as the license agreement.
    I found a little discussion of this. It seems rare, especially on a Mac, but here is one person's advice. Worth a try:
    The error that you are facing might be due the reason that the user logged in doesn't have permissions to access the following directory: "~/Library/Application Support/Adobe". Can you please try the following steps with the user account in which you are facing the error:
    1. Remove the Adobe Reader from Applications directory by moving it to Trash.
    2. Now delete the following directory: "~/Library/Application Support/Adobe". Please note that this path is for the Library folder present inside the user directory that you are currently logged in.
    3. Restart the machine.
    4. Now re-install Adobe Reader XI.
    Tip: In Finder use GO TO FOLDER from the menu and type in "~/Library/Application Support/Adobe" (without the quotes but with the ~)

  • Sort descending a column generated by a simple formula?

    I have just upgraded to Numbers 3.2 from '09 and I have discovered this nasty problem where I can not “sort descending” a column generated by a simple formula.
    Imagine the sequence 1, 2, 4, 8, 16, 32, 64…
    — Let's add the first number, “1” in B1
    — Click on B2 and make it equal to B1*2
    — And so on, click your B2 cell and drop to bottom.
    We get this nice succession:
    OK. Now imagine we want to “sort-descending” this. We press on top and choose the descending option. And then we get this annoying result:
    How I can to fix this problem?
    This worked perfectly on previous Numbers versions ('09) and of course in Excel or OpenOffice. And it's a very “simple” and common feature.
    Or maybe I'm forgetting or misunderstanding something?
    Thanks for your support :-)
    Cristóbal Vila.

    Sorting has changed since the previous version.
    You can sort this by selecting the column with the sequence, then copy
    then select the menu item "Edit > Paste Formula Results"
    now sort
    another way is to place a "count" in column A... 0 thru whatever
    and place a formula to computer the power of two from that count:
    In this case I entered 0 in cell A1, then 1 in cell A2
    select cells A1 and A2 and fill down as needed by dragging the yellow dot that appears when you hover the cursor over to bottom edge of the selection
    In cell B1 I entered the formula "=2^A1"
    no select cell B1 copy
    select column B,  paste
    now you have a sort-safe table and may sort as needed

  • Creating a single variable from a simple formula

    Hi guys,
    I'm ploughing my way through the basics of expressions, constantly running into syntax errors as I still haven't found out the logic behind it all. It is still a great mystery to me when to use spaces, [ ] { } and ( ) not to mention =.
    I was trying to create a variable called "y" from a simple formula. My scripting looks like:
    veloc = 3;
    amplitude = -5;
    decay = 0;
    y = amplitude*Math.sin(veloc*time)/Math.exp(decay*time);
    [value[0],y[1]]
    But whatever brackets and things I put around this formula, whatever spaces or newlines, somehow AE doesn't accept it. When I replace the formula for a wiggle, the fifth line is accepted, and when I replace the "Y" in the fifth line for "value" there are no errors, so obviously AE considers the formula not valid. What is the difference between the output that wiggle(,) gives and the output of this formula? How should I write this expression? Is there any website resource where the logic behind the bracket, spacing, newline, order etc. of this script language is demystified? And I mean really at basic, really baby level. I am pretty good at maths, but the programming hieroglyphs and their secret rules still don't make sense to me.
    Any help is greatly, greatly appreciated.

    Hi Mylenium, thanks for your fast answer. I tried both
    veloc = 3;
    amplitude = -5;
    decay = 0;
    y = amplitude*Math.sin(veloc*time)/Math.exp(decay*time);
    [y[1]]
    and
    veloc = 3;
    amplitude = -5;
    decay = 0;
    y = amplitude*Math.sin(veloc*time)/Math.exp(decay*time);
    y[1]
    but it's a big no-go still. I am really not getting the logic of the format. AE reports Class 'Number' has no property or method named '1', or that the outcome should be of dimension 2, not 1. Any more ideas?

  • Can not access email addresses when they are a link. F/F goes nuts and "untitleed " keep flashing across the top of the screen.I have to get out of that page fast or manually shut down thwe computer.

    Can not access email addresses when they are a link. F/F goes nuts and "untitled " keep flashing across the top of the screen.I have to get out of that page fast or manually shut down the computer

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • I bought an app that still goes nuts on advertising.  I deleted it and want my money back.  Can I get it?

    I bought an app that still goes nuts on advertising.  I deleted it and want my money back.  Can I get it?

    Hello,
    Thanks for using Apple Support Communities.
    If you'd like to request a refund for a purchase from the App Store, you can submit your request by following the directions below.
    To report a problem or request assistance with an item purchased from the iTunes Store, App Store, Mac App Store, or iBooks Store:
    Visit reportaproblem.apple.com in your browser.
    When prompted, enter the Apple ID and password used to initiate the purchase of the item, then click Sign In.
    Find the item you're having a problem with, then click Report a Problem next to it.
    From the Choose Problem menu, choose the issue you're having.
    Follow the onscreen instructions. You might be asked to describe the problem in a text field.
    Click Submit, and we'll review your problem.
    Report a problem with an item purchased from the iTunes Store, App Store, Mac App Store, or iBooks Store - Apple Support
    Take care,
    Alex H.

  • Aperture going nuts

    Booted up Aperture today, and it's as if it were posessed!  Not sure if this is some Apple prank in light of Halloween, or whether the application itself is drunk.  I've encountered two wacky issues:
    1) Aperture seems to have "lost" my top-rated picks from a recent interior photography shoot.  When I click on the file, it has a yellow badget (Image Not Found).  It won't allow me to export it.  The image is neither in my Aperture Trash nor my OSX Trash (neither of which have been empited since the images from this shoot were imported).  All other images from this shoot are fine, only the top-rated picks.  Very strange.  See screenshot below.
    2) Other images from that shoot (these are all RAW files) laod fine, except they exhibit drastic colors everytime I load up Aperture.  In some instances the images turn purple, other times yellow.  I can even export these as JPGs and they look completely wild!  See attached images.  RAW adjustements work fine, but there is no way to get back the original colors.  There seems to be adrastic shift in white balance and tint.
    I've already Repaired my Aperture Database and repaired permissions, all to no avail.  These 6 top-rated images (which the client had requested) have just disappeared.
    Does anyone have ANY thoughts on how something like this can even happen? I am running the latest Aperture on 10.8.5 iMac (Late 2012 model, 3.4Ghz i7 with 32GB RAM).
    Please anyone, help because I am pulling my hair out right now, and there is no phone tech support to call!
    http://www.materialized.com/temp/aperture_wild_2.jpg
    http://www.materialized.com/temp/aperture_wild_1.jpg

    Some further observations:
    Images seem to corrupt (and disappear) when I attempt to export originals.  Prior to that, I can make RAW adjustments and export the image as a version (JPG), but once I elect to export the original, Aperture goes nuts.  In one case the image turns purple/pink, in other instances it just turns plain black.  In another instances still, it shows that the image was not found (if that's true, how was I able to export versions and make RAW adjustments just a second ago?).

  • Backup going nuts

    I've posted questions about this problem with the backup (under 10.8.3) and watching it discovered that while normally the backup takes 3-5 minutes and occasionally 5-10 minutes for large updates of applications, every few days the backup will go nuts and backup 25-50 GBytes. The console logs will show the normal 2-4 GBytes required for padding for 200-1,000 MBytes of files but then just keep going for an hour or two before stopping for no obvious or apparent reason. I've deleted the .v100 file on the TC, move the disk out and back in the spotlight, done checks of the sparsebundle, etc. and nothing indicates anything is wrong.
    It would be nice if someone would make some suggestions what's left to check to determine why the backup is going nuts every 3-4 days and eating lots of unncessary disk space. The backup got better under 10.8.3 but this is still an issue which needs explanation since the log and the backup don't match.

    Does anyone know how to see what the backup is doing or what it's backing up? For the fourth time in 10 days it wrote the lines for the latest example:
    Found 99 files (2.2 MB) needing backup
    2.88 GB required (including padding), 533 GB avaiilable
    And then it went and ran for two hours to backup up over 50 GBytes of what I don't know.
    This is what it does every time and it's not consistent when it does it except it's every 3-4 days. I realize it's not really important since it deletes space to do a backup when the HD runs out of space, but doing these backups and deleting the space when it's full interfers with the disk usage and network resources with other applications running. It doesn't matter if I turn the backup off because it resumes where it was when I turn it back on.

  • My mouse goes nuts when listening to any au

    Specs
    3200+ AMD 64-bit 939
    GB DDR400
    6800OC
    extreme-music sound card
    I recently replaced my aging PCI52 to the extrememusic and now every time I play any audio what so every; my mouse goes nuts. It freezes and then moves across the screen. When all the audio is disabled my pc works fine.
    Please help
    Note:
    Onboard audio is disabled

    wow dancing mouse that react to music?? :smileyvery-happy: joking.....hehe
    Have you try changing the mouse to other USB port(assuming you are using usb mouse)

  • Flash Problems - Help Going Nuts!

    Hi all,
    I have a brand new MacBook Pro (13in) with all the latest patches for Mac OS, Safari and Flash etc etc... Unfortunately I do not seem to be able to get even a simple internet video to work, for instance even a small video on YouTube cannot run without constant stops and starts. How on earth do I get internet video to work properly, has anyone got any ideas as this new machine seems worse at viewing internet based video than my old Windows based Sony Vaio which I used in the 90's !!!! I cannot believe that a machine with 4GB of RAM and a decent fast processor cannot even be used to watch YouTube !!!!
    I have tried everything I can think of, I have reinstalled my Flash player, reinstalled Safari, repaired permissions on my HD, reset PRAM etc etc until I have lost all patience. Nothing seems to work. I have this same problem on any browser I try and use. To prove this I have tried, Safari, Chrome, FireFox and none of them seems able to play video off the internet without constant stopping and starting, it makes the whole idea of multimedia a complete waste of time as it's worse than pulling teeth.... It' driving my NUTS!!!! ARRRRRR...
    Can anyone suggest how I can restore my sanity and get internet video to work on this new wonder machine. I'm a website developer and have a client who just happens to use a LOT of video on his new site.... Trying to develop for this client on my Mac has turned into a NIGHTMARE. I'm even thinking the unthinkable and considering trying a Windows based PC as at the moment I can't seem to make any headway.:-(
    Any help GREATLY appreciated.

    *brand new MacBook Pro*, yet your profile info shows that you're running Tiger! If this is going on using wifi, then please state and tell us what happens when you connect directly to the internet. If nothing seems to fix your issue, take it back to whence it came and let them deal with it.

Maybe you are looking for