HFM Rules - Variable not working

Hi,
I am trying to setup a rule to calculate using balances from other scenarios. Instead of writing 100's of rows of rules I have created a variable. For some reason the variable is not working as it should. Below is what I have
If value="<Entity Currency>" or value = "<Entity Curr Total>" then
'Define prior forecast variable "PrForecast"
If pov_scenario = "S#JANFCST" then CrForecast = "S#JANFCST" and PrForecast = "S#BUDGETV1"
ElseIf pov_scenario = "S#FEBFCST" then CrForecast = "S#FEBFCST" and PrForecast = "S#JANFCST"
ElseIf pov_scenario = "S#MARFCST" then CrForecast = "S#MARFCST" and PrForecast = "S#FEBFCST"
ElseIf pov_scenario = "S#APRFCST" then CrForecast = "S#APRFCST" and PrForecast = "S#MARFCST"
ElseIf pov_scenario = "S#MAYFCST" then CrForecast = "S#MAYFCST" and PrForecast = "S#APRFCST"
ElseIf pov_scenario = "S#JUNFCST" then CrForecast = "S#JUNFCST" and PrForecast = "S#MAYFCST"
ElseIf pov_scenario = "S#JULFCST" then CrForecast = "S#JULFCST" and PrForecast = "S#JUNFCST"
ElseIf pov_scenario = "S#AUGFCST" then CrForecast = "S#AUGFCST" and PrForecast = "S#JULFCST"
ElseIf pov_scenario = "S#SEPFCST" then CrForecast = "S#SEPFCST" and PrForecast = "S#AUGFCST"
ElseIf pov_scenario = "S#OCTFCST" then CrForecast = "S#OCTFCST" and PrForecast = "S#SEPFCST"
ElseIf pov_scenario = "S#NOVFCST" then CrForecast = "S#NOVFCST" and PrForecast = "S#OCTFCST"
ElseIf pov_scenario = "S#DECFCST" then CrForecast = "S#DECFCST" and PrForecast = "S#NOVFCST"
End if
  If Right(pov_Scenario,4) = "FCST" then
   HS.EXP "A#YVR_SALES" &Dync3& ".C3#YVR_CY_IMP = A#YVR_CUSTPRICE_TOT.S#" &CrForecast & ".Y#CUR.P#CUR" &Dync3& ".C3#YVR_CY_IMP"
   HS.EXP "A#YVR_SALES" &Dync3& ".C3#YVR_CY_POT = A#YVR_CUSTPRICE_TOT.S#" &CrForecast & ".Y#CUR.P#CUR" &Dync3& ".C3#YVR_CY_POT"
   HS.EXP "A#YVR_SALES" &Dync3& ".C3#YVR_PY = A#NET_SALES.S#Actual.Y#PRIOR.P#CUR.W#YTD" &Tops
   HS.EXP "A#YVR_SALES" &Dync3& ".C3#YVR_CY_FCST = A#NET_SALES.S#" &CrForecast & ".Y#CUR.P#CUR.W#YTD" &Tops
   HS.EXP "A#YVR_SALES" &Dync3& ".C3#YVR_PR_FCST = A#NET_SALES.S#" &PrForecast & ".Y#CUR.P#CUR.W#YTD" &Tops
The rule loads fine without any error but after the calculation is performed the values are only pulled from the POV_Scenario not the scenario referenced in the variable. Any suggestion on how this could be fixed would be greatly appreciated.
Thanks

Hi,
You have already defined CrForecast = "S#JANFCST"
In that case, your right hand side should just be A#YVR_CUSTPRICE_TOT." &CrForecast & ".Y#CUR.P#CUR" &Dync3& ".C3#YVR_CY_IMP" and not A#YVR_CUSTPRICE_TOT.S#" &CrForecast & ".Y#CUR.P#CUR" &Dync3& ".C3#YVR_CY_IMP"
Regards,
S

Similar Messages

  • Calcmanager rules are not working

    Hello there,
    we have existing EPM environment 11.1.2.1, We just Installed a new EPM environment 11.1.2.3. After the installation and configuration I exported Calc manager rules from 11.1.2.1 and imported them in to 11.1.2.3 environment.
    It looks like Business rules are not working there. Below are the symptoms of the problem.
    (1) Rules keeps giving random validation errors. (Same rule validates in 11.1.2.1 fails in 11.1.2.3)
    (2) If I create a new rule for my planning application (lets say Test_Rule) and check the DB table I don't see any object being created. (Select * from HSP_OBJECT where OBJECT_NAME = 'Test_Rule')
    (3) Any updates I make to the rules in 11.1.2.3 is not being saved.
    It looks like Calc Manger is having hard time talking to planning DB.
    Any help will be appreciated.
    Thanks!

    If you have upgraded from 11.1.2.1 to .3 you would need to upgrade the planning application. Assuming that you have done that, for validation, you would need to provide validation value for all your Run Time Prompts.
    This can be done in the variables tab of the Rule Designer.
    Let me know if you have issues after these steps.
    Sree Menon
    Calc Manager Team

  • The UniquekeyValidator Rule is not working in the EO edit dialog.

    The UniquekeyValidator Rule is not working in the EO edit dialog. We have Jdeveloper9i V. 9.0.3.2. The unique flags are checked in the primary key attribute and the custom message is never showed.
    Is there a Known bug about that? if yes.. does exist any patch to fix that?
    Thank u

    Thank u for your answer.
    Yes, of course .. i�ve already apply the unique key validator for the entity.. so that custom error message is the error im trying to get in the application.
    Other issue is when im trying to edit that error message: when im going to edit the message the previous error im entered is not there. Is it normal?

  • Substitution rule is not working correctly

    Hi PS Gurus,
    We have a problem in one of the newly created projects that the substitution rule is not working correctly; the data is not copied to the WBS element Cust. Enhancement tab.
    Project 1 is working fine and the data is copied & Project 2 and Project 3 are not getting all the data copied to the WBS element,
    In that project profile (substitution rule is given), substitution rule is also maintained 
    So please help why in one project substitution rule in working & other isnu2019t.
    Many Thanks in Advance.
    MM

    Hello Menaka,
    Select the WBS element in the project builder.
    Cleck on Edit --> Validation Substitution --> Substitution
    You will get the list of Substituitions, Double click on the required Substition rule.This action will generate a log, whether substitution has been succesfully caried out or with some error.
    Kindly provide us that error log to guide you further.
    Regards
    Ravi

  • Rules are not working correctly in OCS 10.1.2

    Hi,
    A few days ago we have encountered a problem in which the BCC rules or any other rules are not processed out of the user's mailbox.
    For example, a user goes to Oracle Mail (the web access, but not WAC), goes to Filters and creates a new rule for dealing with incoming mail (delivered or read, doesn't matter). The rule is processed ONLY if the the user asked to move/copy the mail to a subfolder IN HIS MAILBOX.
    If the user asks to forward ("Send a blind copy to") the delivered mails to a different mailbox (e.g. in OCS or to externally to gmail), the mail is NOT processed by the filter.
    Other than that mails are treated normally, incoming and outgoing. Manually forwarding to other OCS users also works, as well as forwarding to external mail systems such as gmail. Only the 'automatic' forward rule does not work.
    We have checked that the rules/filters are created with " oesrl -p" - and they are created.
    How can we troubleshoot this issue? Has anyone encountered it?
    System details:
    OCS 10.1.2
    Platform: Red Hat AS 4
    DB version: 10.1.0.4.2
    Thanks,
    -- Itay.

    Update:
    Problem resolved. restarted the SMTP-out service.

  • (Substitution Variables) not working in "SQL Developer" Environment !!!!!!!

    this photo illustrate how that (Substitution Variables) not working in "SQL Developer" Environment :-
    http://www.imagehosting.com/show.php/1555180_ddddd.PNG.html
    any solve for this problem ?????!!!!!!!!!!

    There is a dedicated forum for SQL Developer related questions
    SQL Developer
    I should admit however, that query you have provided ( with substitution variables) works like a charme in my environment (SQL Developer 1.1.0.23 build 23.64)
    Best regards
    Maxim

  • Payload variables not working

    Hi all,
    I've been trying to use Profile Manager to specify user e-mail accounts on Mac devices (eg, MacBooks) but I've been encountering a couple of problems. I've tried searching around and didn't find any answers.
    First of all I'm running the latest Mountain Lion Sever. All clients have up-to-date Mountain Lion too.
    Problem 1: Payload variables not working
    I'd like to automatically setup Gmails on the MacBooks. Now the users' email addresses are already set to their gmail accounts. So all I have to be able to do is use the %email% payload variable as the username when I go set up the (IMAP) mail accounts in the Profile Manager. However, when I download the profile to the device, it does not convert the payload variable; ie, it tries to log into gmail with the username '%email%'. Other payload variables do not work either.
    Oddly enough, the payload variables work as they should with iOS devices...
    Problem 2: Profiles stuck on 'Sending'
    After enrolling the devices, it seems a hit and miss whether the MacBook downloads the correct profiles from the server... Is there a way to force on the MacBook to update/refresh its profiles? Also, when I update profiles within Profile Manager, the changes are pushed to iOS devices fine but not to MacBooks. Those tasks are all stuck on Sending... Logging in, restarting etc. sometimes helps but not always... Is there a reason why?
    Thanks in advance.
    P.S. Sorry I posted in the wrong forum first...

    Same problem here. Some profiles are being sent, some are stuck on the server. I have no idea why this difference.
    Any luck solving the issue?

  • Payload variables not working & Profiles stuck on 'Sending'

    Hi all,
    I've been trying to use Profile Manager to specify user e-mail accounts on Mac devices (eg, MacBooks) but I've been encountering a couple of problems. I've tried searching around and didn't find any answers.
    First of all I'm running the latest Mountain Lion Sever. All clients have up-to-date Mountain Lion too.
    Problem 1: Payload variables not working
    I'd like to automatically setup Gmails on the MacBooks. Now the users' email addresses are already set to their gmail accounts. So all I have to be able to do is use the %email% payload variable as the username when I go set up the (IMAP) mail accounts in the Profile Manager. However, when I download the profile to the device, it does not convert the payload variable; ie, it tries to log into gmail with the username '%email%'. Other payload variables do not work either.
    Oddly enough, the payload variables work as they should with iOS devices...
    Problem 2: Profiles stuck on 'Sending'
    After enrolling the devices, it seems a hit and miss whether the MacBook downloads the correct profiles from the server... Is there a way to force on the MacBook to update/refresh its profiles? Also, when I update profiles within Profile Manager, the changes are pushed to iOS devices fine but not to MacBooks. Those tasks are all stuck on Sending... Logging in, restarting etc. sometimes helps but not always... Is there a reason why?
    Thanks in advance.

    Same problem here. Some profiles are being sent, some are stuck on the server. I have no idea why this difference.
    Any luck solving the issue?

  • Valdiation rule does not work on PrimaryBillToCity field

    Hello to everyone,
    Valdiation rule does not work on PrimaryBillToCity field (and other address fields)
    Have someone a workaround ?
    Thanks.
    ML

    I do not believe it is possible to do validation on the address fields in the address block.

  • Membership rules does not work with UDF column name having the max length

    Found a bug in OIM .
    Membership rules does not work with UDF column name having the maximum length
    Steps to Reproduce
    1.Create a UDF having max column name length for eg UDF_USR_PERSONAL_SUB_DOMAIN_CO (lable = Personal Code)
    2. Create a simple Rule like Personal Code = 7000
    3. Assign this Rule as a member ship rule of a Group.
    4. Create a user with Personal Code = 7000.
    5. User doesnot get the group membership.
    Thanks
    Suren

    Yes , i verified logs as well .
    If you just decrease the column name length , w/o making change to any other attributes , it starts working ..
    Thanks
    Suren

  • Navigation Rules are not working

    Hi
    I had written my application in Java Creator.
    Now i am shifted to -- NetBeans
    Here my Navigation Rules are not working.
    I am unable to navigate between pages.
    can anyone please help me, why navigations are not working.
    and how to write navigation rules in Netbeans.
    Thanks
    Praveen

    Could you explain more about your problem?
    -Do you have the navigation rules in your faces-config.xml?
    like:
    <navigation-rule>
    <from-view-id>/page1.jspx</from-view-id>
    <navigation-case>
    <from-action>#{Controller.toPage2}</from-action>
    <from-outcome>success</from-outcome>
    <to-view-id>/page2l.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>

  • BW hierarchy variable not working in Crystal Report 2008

    Hi,
    I have created BEx 7.0 report which has hierarchy on 0customer object, the report is working fine whith hierarchy variable. I have created Crystal Report by using this query as source. I have followed below link to create grouping to get data through hierarchy variable.
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BWHierarchiesinCrystalReports
    But report does not work for hierarchy variable and report is blank. When I give filter of child node which has actual data then I get report output. For ex.
    Below hierarchy for 0customer
    11396
         - 737007
         - 123456
    When I run report for 11396 then no data display but when I run 737007 child node I get report output but with blank group name.
    Can anyone came accross this issue. Please guide me . Thanks in advance.

    Thanks Ingo for your reply..
    The word filter means, I have hierarchy node variable in the BEx report that has become Parameter in CR. When I give hierarchy node variable value of parent node then there is not data display but for the child node I get the data.
    For ex. In the info cube there is data for 730707 customer but in the customer hierarchy the parent node of 73707 is 11396. I am giving 11396 in the variable pop screen for hierarchy variable. I do not see any data but for 73707 I get data.
    User does not know 73707, he always enter 11396 customer no. and he gets data in BEx query that is source of CR. but crystal report is not showing data for 11396.
    One more point I want to tell here, I am saving CR at my local system not to SAP BW server.
    Hope this clear my issue.
    Harish Swami
    Edited by: hswami27 on Jan 31, 2011 8:17 PM

  • New rule  is not working from 'ojaudit' though I use  loadSet="Audit"

    When customizing new rules in audit framework using the Jdev Extensions API, I used the below content in extension.xml file.
    <hooks>
    <jdeveloper-hook xmlns="http://xmlns.oracle.com/jdeveloper/1013/extension">
    <addins>
    <addin loadSet="Audit">oracle.test.Launcher</addin>
    </addins>
    </jdeveloper-hook>
    <feature-hook>
    <description>Manages the final static member names.</description>
    <optional>true</optional>
    </feature-hook>
    </hooks>
    The new rules created are executing only when I audit from Jdev UI. But these are not executing when I use this new rule in 'ojaudit' at command line.
    How can we achieve this?
    Is there anything to modify in my extension.xml file?
    There is a case where it works both from UI and ojaudit, but it is not working always. That is in my case just observer the above code:
    If I dont use loadSet="Audit" in <addin> tag, this rule executes only in UI when auditing but it wont execute when I use 'ojaudit' at command line. And when I use the attribtue loadSet="Audit", only a few times it is executing for 'ojaudit' at cmd line.
    Is this inconsistent a bug?
    And could you suggest me how the ojaudit works?
    And could you point out any documentation of how the ojaudit works? I mean the flow ?
    Thanks in Advance.
    Regards
    Madhu

    It works fine when I modified the 'loadSet' attribute to 'loadset' where all letters are in small case.
    Thank You.

  • Row Level Security - Data filter - Roles Variable Not working in OBIEE 11.1.1.7.1

    Hi all,
    Previously, we were using OBIEE 11.1.1.5.0 and we were able to assign users to application roles by using the initialization block to assign the ROLES session variables.
    1. My USER_SECURITY table in Oracle database:
    USER_NAME | USER_ID | ROL
    user1       | 1723    | GobalDataRole
    user2       | 1739    | GobalDataRole
    user3      | 1743    | GobalDataRole
    2. The SQL query in my session initialization block:
    select USER_NAME, USER_ID, ROL
    from USER_SECURITY
    where USERNAME = ':USER'
    3. The row-wise initialization option is not checked.
    4. In the Oracle Enterprise Manager Fusion Middleware Control, we created new application role: GobalDataRole and sync with rpd.
    5. The GobalDataRole is used in the RPD to filter the data under permissions --> data filter. GobalDataRole only has access to Country A data.
    6. Result: under my account, also in rpd Manage --> Sessions, user variable details
    User_name , user_id & Rol variable is working fine as expected,
    When we log in as user1, we can see in My Account, user assigned to: BI Consumers; Authenticated Role; GobalDataRole
    When we log in as user2, we can see in My Account, user assigned to: BI Consumers; Authenticated Role; GobalDataRole
    When we log in as user3, we can see in My Account, user assigned to: BI Consumers; Authenticated Role; GobalDataRole
    User1, User2, and User3 are able to see the data correctly according the their data access setup.
    Now, we using OBIEE 11.1.1.7.1 and using the same method, but we not able to assign users to application roles by using the initialization block to assign the ROLES session variables anymore.
    Result:
    User_name & user_id variable is working fine as expected, but the ROl variaible is not capturing the DB value,
    When we log in as user1, we can see in My Account, user assigned to: BI Consumers; Authenticated Role
    When we log in as user2, we can see in My Account, user assigned to: BI Consumers; Authenticated Role
    When we log in as user3, we can see in My Account, user assigned to: BI Consumers; Authenticated Role
    User1, User2, and User3 can see all data (which is wrong) because they are not assigned to the correct application role that sets the data restriction/filter.
    Has anyone encountered the same issue? Any advice on how to solve this?
    Thanks in advance!
    Satheeshkumar P

    Thanks user10615659     ,
    - Yes the variable ROLES available in OBIEE 11.1.1.7.1
    - Tested the init block and variables in offline rpd its working as expected.
    - In online rpd, except ROLES and GROUP variable remaining variables working fine.
    - Verified log file in both online and offline init block testing - the init block execution is successful.
    Thanks

  • Text Variable not working correctly

    In CS3 I could create a TEMPLATE (.indt) with the "creation date" text variable in it and when I opened it it would have the CURRENT DATE (the date the new file was generated from the template) . In CS4 it opens with the date the TEMPLATE was MADE and not the current date (the day the new file was generated). I need the template to open with the current date (the day the template was opened). I tried using the "modification date" variable which works the FIRST time but if I open it the next day the date changes. I need the date to remain the same as the creation date. Does this make sense? Why did Adobe change the behavior of this? Please help.
    -John Streeter

    Hi Rakesh,
    Just curious what is the purpose of creating a hidden column as suggested? Anyway, I have created it but nothing changes.
    Allow me to clarify my situation again.
    I have three columns:
    1. Actual This Year
    Type: Selection
    2. Actual Last Year
    Type: Selection
    3. % of Actual This Year / Actual Last Year
    Type: Formula
    Definition: (Actual This Year) %A (Actual Last Year)
    All columns use &0T_FYEAR& as text replacement variable. As such, all title would have year text.
    The first two columns have been restricted with Fiscal Year variable, 0P_FYEAR.
    1. Actual This Year
    0P_FYEAR
    2. Actual Last Year
    0P_FYEAR - 1
    Upon executing the query, I got the first two columns displaying their titles right, but the third column does not.
    For example, let's assume I entered 2008 for 0P_FYEAR variable, the columns would display the following titles:
    1. 2008
    2. 2007
    3. &0T_FYEAR&
    I need the third column to display current fiscal year i.e. 2008 but it does not.
    Appreciate your help!

Maybe you are looking for

  • Ipod will not update new songs from itunes

    My ipod will not update new songs from itunes. I've purchased several songs from the music store, updated my playlists and as added some from my CD collection and they are not transfering from my library to my ipod. I've tried numerous configurations

  • No sound with QuickTime

    Lately I've formatted my hard drive and reinstalled windows XP. PROBLEM: Quicktime doesn't seem to work properly anymore. The image is just right, but no sound can be heard at all. If I move the playback cursor, QuickTime player freeze and a sound lo

  • GetClass().getGenericSuperclass() problem

    I read the hibernate article (https://www.hibernate.org/328.html) on how to use generic dao pattern. But whilst reading, one generic concept (I think) make me confused. It subclasses the GenericDao<T, ID ...> interface with GenericHibernateDao abstra

  • When will recent upgrade from IPHOTO to PHOTO allow me to export pics to Shutterfly?

    How can I export Photo pictures to Shutterfly? Recent Yosemite upgrade replaced IPhoto with Photo hat will not permit export to Shutterfly.

  • Syncing contacts that were already there

    I got my BlackBerry months ago and successfully synched all my contacts. Yesterday however when I went to my contacts none were there and it tells me to add a contact. I tried to add one to see if i could retain the rest after but nothing. Turned it