IF command does not work on the value of a global variable

Dear all!
I created a global variable &CurQ, assigned it to my application and my current database and assigned a value "Q3" to it. Then I created a simple business rule: Forecast (IF (&CurQ==Q1) Forecast=Actual; ELSE Forecast=Plan; ENDIF;). "Forecast", "Actual" and "Plan" are Scenario dimension members. After validating and running this command I found that Forecast member always picks the values of "Actual" member although it should pick the values of "Forecast" (given that &CurQ has the value of "Q3"). I tweaked around with my IF command and found that it always picks just the first statement after the condition regardless of whether the condition is true or false. So I am stuck and can't guess where the problem hides. I will be very grateful for any hint!

Hi,
Try using your variable in your fix and using the @ISMBR function as your condiation.
e.g.
FIX(&CurQ)
Forecast (
IF @ISMBR(Q1) Forecast=Actual;
ELSE Forecast=Plan;
ENDIF;)
ENDFIX
Regards,
-John

Similar Messages

  • My "undo" command does not work in the new version of GB.  Please advise.  This is a real problem.  I had no issues with  GB from iLife 11.

    My "undo" command does not work in the new version of GB.  Please advise.  This is a real problem.  I had no issues with  GB from iLife 11.

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • LOV filter - Auto Submit not working after the value is made to VS.filter

    JDeveloper 11.1.1.4.0
    I have cascading LOV filters for a table with fields id, deptid, projectName. The filters are for deptid and projectName. When I select a deptid, the projectNames belonging to that deptid should be populated. I have set Auto submit for deptid filter and partial trigger for project Name. So if I select a deptid and when I navigate to Project Name filter I get the list of project Names in the Project LOV filter.This worked fine as long as I didnt change the value for LOV to Vs.filtercriteria.deptid. Once I changed it the LOV filter for Project Names only got refreshed once I hit ENTER key after changing the value of Deptid. But I have to keep the value for LOV to Vs.filtercriteria.deptid. Other wise the records in the table after applying the filter values didnt function properly. I dont know whether the AutoSubmit does not work when the value is changed to Vs.filtercriteria.deptid

    duplicate post.
    Frank

  • I have a MacBookPro 2011. The Empty Trash command does not work. I mean I can not empty my trash

    I have a MacBookPro 2011. The Empty Trash command does not work. I mean I can not empty my trash. what should I do? since now there are more than 5000 items accumulated in my trash.

    Thanks everybody for your comments.
    I just found a way out from the disscussion : I can't use empty trash or secure empty trash.
    The same formula proposed by Zyriab solved my question.
    This solved my questionRe: I can't use empty trash or secure empty trash.

  • The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assi

    Hi ,
    We have enabled context sensitive DFF in Bank Branch Page for HZ_PARTIES DFF , We have created Flex Map so that only bank branch context fields are only displayed in the bank branch page and  as we know party information DFF is shared by supplier and Customer Page so we dint want to see any Bank Branch fields or context information in those pages.
    We have achieved the requirement but when open existing branches bank branch update is throwing below error message :
    "The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assistance."
    this error is thrown only when we open existing branches, if we save existing branch and open then it is not throwing any error message.
    Please let us know reason behind this error message.
    Thanks,
    Mruduala

    You are kidding?  It took me about 3 minutes to scroll down on my tab to get to the triplex button!
    Habe you read the error message? 
    Quote:
    java.sql.SQLSyntaxErrorException: ORA-04098: trigger 'PMS.PROJECT_SEQ' is invalid and failed re-validation
    Check the trigger and it should work again.
    Timo

  • CRM R12.0.6  Map Type does not exist in the value set

    Hi Everyone
    When attempting to access Service Request Types in our CRM UAT Release 12.0.6 environment an error message appears referring to 'Value General for the flexfield segment does not exist in the value set'.
    Checked the flexfields for the value set but did not set up a value for MAP_TYPES
    Checked our PROD environment but no value set up as above.
    Currently in progress of mapping service requests to responsibilites in UAT, could this be the cause and how to resolve? No mapping as yet for service requests set up in PROD. Has anyone else experienced this?
    Thanks very much, Louise

    Hi IWolbers,
    >>I have a recurring problem where all of a sudden I can no longer see the values of my variables when I debug my unit tests. I cannot find a pattern as to when this happens but I experience this across one of every 20 tests that I write. Occasionally
    this has also happened during normal debbuging of running code on my machine.
    So you mean that it worked well before, am I right? 
    If you debug the same app in other VS machine, does it work well? So we could make sure that whether it is related to the VS IDE.
    Please disable all add-ins in your VS IDE, and then reset your VS settings, debug it again.
    https://msdn.microsoft.com/en-us/library/ms247075(v=vs.100).aspx
    Or you could run your VS in safe mode, debug it again, at least, we could know that whether it is the add-in's issue.
    https://msdn.microsoft.com/en-us/library/ms241278.aspx
    To make sure that it is not the project files' issue, create a new blank solution, copy the project files to the new solution, clean and rebuild the solution, check the result.
    >>Once I step over this to the next line (screen shot 2) I get the error message 'The name '[variable name]' does not exist in the current context'
    How about debugging it with "Step Into" instead of "Step Over"? Or you could add breakpoints between 234 line to 241 line, after the breakpoint is hit, check the watch window again. How about the result?
    In addition, do you check other debugger window like local or others?
    Best Regards,
    Jack
    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.

  • SQL*Plus COPY command does not work

    SQL*Plus COPY command does not work in SQL Developer. I am using SQL Developer 1.5.1 on Windows XP.
    copy from <source_db_connection> to <target_db_connection> create <target_tab_name> using select * from <source_tab_name>
    Does it work on different versions of SQL Developer ?
    Anyone had any success in trying COPY command in SQL Developer?
    Thanks in advance.

    While it hasn't been updated for v1.5, this page lists the supported SQL*Plus commands. COPY is explicitly listed as not supported.
    theFurryOne

  • Delete command does not work

    delete command does not work.. it just freezes neither roll back happens.. please advice

    Always: If possible, give the exact command & output from your terminal, pefrerrable with copy & paste. We cannot see your screen and magically spot the problem.
    In general, you should also include your database version and OS, although I doubt that this is relevant in this particular case.
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • I have an event in my calendar that was sent by someone who does not work for the company anymore and I am reminded 2 times a week. How can I remove it?

    I have an event in my calendar that was sent by someone that does not work for the company anymore and I am reminded 2 times a week. How do I delete it?

    Tap on the event to open the event. Click the 'Edit' button in the event bubble, then press the 'Delete Event' button at the bottom of the Edit pop-up. It's a little different for events that come through Microsoft Exchange, you tap the event to bring up bubble and click the 'Details' button, and then press 'Decline' to remove the event.

  • TS1702 When I update to IOS6 on my 4S Facebook does not work properly, the news feed never updates it only says no new storeys and shows a picture of an antenna. When I reset my phone and go back to IOS5 Facebook works fine. What's up with IOS6 ????

    When I update my iPhone 4S to iOS six Facebook does not work properly the newsfeed doesn't load properly and I can never see what's going on all I see is a picture of an antenna and a little thing underneath it says no new stories when I reset my phone back to iOS 5 then it works just fine and I don't have any issues so there must be something wrong with iOS six that isn't letting Facebook load properly

    No I did not use any unauthorized methods for anything, I simply reset my phone back to factory.
    <Edited By Host>

  • I get this error when I go to imovie, I have instalerat on via appstore, but it does not work. The QuickTime components necessary to view, edit, import and export various types of films are not installed. The components included in the iMovie installer. R

    I get this error when I go to imovie, I have instalerat on via appstore, but it does not work.
    The QuickTime components necessary to view, edit, import and export varioustypes of films are not installed. The components included in the iMovie installer.Reinstalling iMovie.

    I get this error when I go to imovie, I have instalerat on via appstore, but it does not work.
    The QuickTime components necessary to view, edit, import and export varioustypes of films are not installed. The components included in the iMovie installer.Reinstalling iMovie.

  • HT204187 Email account does not work on the Mac but works on my iPad and iPhone. The account information was added on the Mac. I keeps rejecting my password.

    I have seral email accounts on my Mac. One does not work on the Mac but works on my iPad and iPhone. The account information was added on the Mac. I keeps rejecting my password.

    You don't input the information in manually for iCloud mail. It is automatically set up for you when you sign into iCloud via System Preferences and choose the Mail checkbox. Sign out of iCloud or deselect Mail in iCloud preferences. Open Mail's preferences and choose accounts tab. If iCloud account still exists in the list, delete it. Sign back into iCloud or check the box for mail. The account will be auto created for you.

  • I just bought an Iphone4 from straight talk and my camera does not work. The shutter wont open and when it does open there is a black screen. I am very upset. I have wanted this phone for awhile and now that I have it, it does not work properly. Need help

    I just bought an Iphone 4 from straight talk. My camera does not work. The shutter does not open and when it does open there is a black screen. I am very upset. I have wanted this phone for awhile. I want the issue fixed.
                                                                                                                                                     Thanks

    Take the iPhone to an Apple store genius bar for testing, and if it is defective and under warranty they will replace.  Since you say iPhone 4, was this a used or refurbished iPhone? 

  • Short key for copy does not work all the time now.

    After I have installed the latest OSX - Yosemite, my short key for copy does not work all the time.  It is infrequent how it works. I'm using the same keyboard that I have always used, my wireless logitech keyboard for mac.  Please help.

    I've plugged in my default mac keyboard and the short key copy still does not work.

  • I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords but it does not work for the macbook.

    I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords several times but it does not work for the macbook.

    You will have to provide the correct password to delete the existing account, if you have tried but are not getting the password reset email, contact Apple for assistance by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password.

Maybe you are looking for

  • How can I stop my iPhone 5 deleting e-mails from the server?

    I know this question has been asked before, and has been answered in respect of iPhone 4 models, but I don't seem to be able to find any answers for this problem with the iPhone 5. When I delete an e-mail from my iPhone, it means I can't access it fr

  • Change font size in Sidebar Bookmark

    I have a text file with all my logins/passwords that I have open in Firefox sidebar. The problem is they open in font size 12. I want it 8 or so. Is there a way to decrease font size or not?

  • Cannot Install CS3. Please Help.

    The other day I opened up photoshop and I got a message that said, " Licensing for this product has stopped working: You cannot use this product at this time. You must repair the problem by uninstalling and then reinstalling this product or contactin

  • Enable neon in standalone mode of zynq board

    Hello everyone, I'm trying to develop a simple applicaiton to process some float matrix data on a zynq board in standalone mode, and I want to use neon to speed up the float data processing, below is my operation: 1. add compiler flag "-mcpu=cortex-a

  • IPhoto 5 delete my desktop picture

    I've just installed iPhoto 5 and every time I run a presentation my desktop picture goes away and the default blue one replaces it. If I relaunch the system my picture is there again. Is there any solution to this? iMac 600 Mhz Mac OS X (10.3.9) 256