Temporary variables in business rule in essbase

hi,
I want to add temporary variable in my business rule. I have declared the variable as below:
VAR TaxRate;
"ROA Tax Rate"
TaxRate = "ROA Tax Rate"->"GLBU_CVD CONSOLIDATED"->"OU_NUTRITIONAL CHEM"->"All DEPTS"->"Working"->"Forecast"->&FcstYear->"USD"->&FcstMths;
It is validatoing correctly but when I am running the rule it is giving the error as:
Error executing formula for [ROA Tax Rate] (line 18): Cannot assign [DOUBLE] objects of different length
A I doing something wrong with the declaration? (ROA Tax Rate is the member name)
Please suggest.

Hi,
Try this,
VAR TAXRATE = #MISSING;
"ROA Tax Rate"
     TAXRATE= "GLBU_CVD CONSOLIDATED"->"OU_NUTRITIONAL CHEM"->"All DEPTS"->"Working"->"Forecast"->&FcstYear->"USD"->&FcstMths;
                         //Intersection of your data;  (i.e., A->B->C)
Regards,
Avneet

Similar Messages

  • Using variables in Business Rules

    Hello Experts,
    Do you know if it's possilble to declare (and use) text variables in Business Rules?
    I want to do some strings treatment (concatenation, substring) and I need to use variables.
    Regards,
    Rodrigo

    Hi,
    thanks for your answers.
    But without variables I don't know if it's possible to do the following:
    I have a member dimension (that is from text type) and I want to access to it's content and, with some string treatment, reach to a member that I will FIX.
    How can I access to the content of the text dimension member?
    I give you the example:
    Let's supose that the name of the text dimension member is TEXTMEMBER.
    For Example if I use @SUBSTRING("TEXTMEMBER", 0, 3).
    If I write the member like the above I'm not reaching to the content of dimension member....
    Do you know how to do this?
    Regards,
    Rodrigo

  • Business rule for Essbase cube calculations in 11.1.1.3?

    Hi,
    Can we use business rules to use @XREF from data transfer from one cube to other cube.Why I went for business rule is, I can put set of business rules in a Sequence and any new user can run this Sequence on demand and even we need prompt also in that.
    So, I want to clarify whether I can use the business rules for Essbase calculations along with calc scripts??
    Appreciate the response.
    Thanks

    Right,
    Actually, Business rules are running essbase cubes in every case.
    Remember planning and BRs are adding extra layers like prompts, forms, security, processes...
    Think Business rules are extended version of calc scripts with some more functionality. They are ultimately running on essbase cubes...
    Regards,
    Ahmet

  • Business rule in essbase studio

    Hi Experts,
    Plz tell me if i can write business rules in Essbase Studio 11.1.2 ??
    Thanks in advance!
    Regards,
    Lolita

    So your SQL is taking the absolute value of the dates (first assigned to - created) and then multiplying it by 24? And if there's a null, value it with a zero?
    In a BSO database, the formula for this would look like:
    ReportedAssignedHRs = @ABS((FIRST_ASSIGNED_TO_FCR_GMT_DATE - UNIT_GMT_CREATED_DATE) * 24) ;
    That of course assumes you load the first assigned to and the created members to the outline.
    You could stick this as a member formula in the outline (and then you wouldn't technically need the "ReportAssignedHRs =" bit although you can put it in) or have it as part of a calc script.
    In an ASO database, the formula would be in the outline (I suspect it makes sense there in a BSO database as well, but maybe not if summing the dates doesn't make sense):
    Abs(([FIRST_ASSIGNED_TO_FCR_GMT_DATE] - [UNIT_GMT_CREATED_DATE]) * 24)
    In both technologies, if there's no value, by default it's null or missing, so there's no need to put in a null value via an IF or CASE statement.
    Regards,
    Cameron Lackpour
    Edited by: CL on Aug 31, 2011 9:39 AM
    Whoops, should add you can now put the ASO formula into a sort of, kind of calc script and the Missing or Null value in Essbase usually gets reported as Null, not zero. You could force a zero but why?

  • User Variable in Business Rule or Global Variable

    I wanted to call the User Variable value of Planning application under the Globel Variable of Default Value. Example I have created one Globel variable under the Default value the user varible value need to pickup so any thought how I can do this.
    I know in the Form if you use &UsrVar this will show the user variable value in the Data form but it is not showing the User Variable value in global variable or inside the Business rule.It is giving an error message there is no substitution variable has been defined. Please explain.
    Thanks in Advance,
    Irsh
    Edited by: 818693 on 17 May, 2011 7:22 AM

    Hi,
    User variables are meant to be used in web forms and web forms only. You can certainly pass their values to business rules when you used them in POV or page section of the form during save. All you need to do is to create another business rule (local or global) variable in business rule on the corresponding dimension and use it in your business rule. If you enable running the business rule on save and using the form values for variables options in form properties, business rules would replace the values of business rule variables with the values that are set in user variables.
    Cheers,
    Alp

  • Using Global variables in business rules

    In EAS after expanding the Business Rules section there is a Global Variables section. I have created some global variables in this section and I am trying to use them in the Rule editor and not having much luck. Are they retrieved differently to local variables...Currently this is how I am calling them within a FIX....
    FIX([Global_Varaiable])
    calculation;
    EndFix
    Please correct me if I am wrong, also can any one provide some good documentation and some gd links for writing business rules. I'm just starting out to create some business rule which runs on save on some input forms I am creating and finding it rather difficult.... :-(..
    Many Thanks
    Stephen

    Hi,
    Global variables will work in the same way as local variables so you are using them correctly.
    Business rules are just really glorified calc scripts, if you want to know about calc script commands have a read of the tech ref :- http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_techref/frameset.htm?launch.htm
    It will have all the calculation commands and functions and descriptions on how they work.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Syntax for using AND with a variable in Business Rule Source

    I've never fully gotten my head around the AND/OR syntax of calc scripts. What I'd like to do is as follows in some basic pseudo code:
    FIX( ("A97" AND [Selected_Entity]) OR ("B76" AND [Selected_Entity]) OR ("C63" AND [Selected_Entity]) ).
    I want my webform's business rule to execute on the selected Entity in the form (eg. A97) ONLY if that entity is part of a restricted list of members (in this case, 3 entities out of 200).
    Thanks for any advice!

    Hi,
    I am not sure if I have totally understood what you are trying to achieve so sorry if I have misread it.
    But what you could do is set up a variable in the Bus Rule, lets call EntVar.
    It is set up as a local variable of type member and dimension Entity with a run time prompt "Enter Entity"
    Now in your script it could look something like this....
    FIX(&CurrentYr, "Working".......)
    "AccMember"(
    IF(@ISMBR([EntVar]) AND ([EntVar]=="A97" OR [EntVar]=="B76" OR [EntVar]=="C63") )
    AccMember=.......;
    ENDIF
    ENDFIX
    Once you have tested the business rule, you can get your form to pass through the entity into the variable.
    Is this what you are trying to do?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Hyperion Business Rules and Essbase

    I have an allocation business rule that uses the DATACOPY command to copy data from one cost center to another. I would now like to have the sum of 2 cost centers copied into the allocation cost center. In an Essbase calc script, I accomplished this by FIXing on some dimensions and then:
    DATACOPY cc1 TO alloc_cc;
    alloc_cc = alloc_cc + cc2
    This works fine in a calc script, but the business rule does not like the "alloc_cc = alloc_cc + cc2" line. How do I accomplish this task in a business rule?
    Thanks.
    Terri T.

    when I validate, I get this message.
    Detail:Cannot calculate. Essbase Error(1200354): Error compiling formula for [alloc_cc] (line 13): expected type [NUMBER] found [STRING] (["CC2"]) in function []
    Edited by: Terri T on Jan 30, 2013 11:07 AM

  • Substitution variable in Load rule Header Essbase 11.1.1.3

    Think its obvious you can use substitution variable as a Header definition on Load rules, does version 11.1.1.3 has any issues' with it, i am running into Unexpected Essbase error 1019026.
    Error:
    Unknown member [Mgmt Actual,Base,No Vertical,No Customer] found while processing string [Mgmt Actual","Base","No Vertical","No Customer]
    Unexpected Essbase error 1019026
    I want to copy Actual data into other scenario's in ASO cube so thought will use substitution variables to eliminate duplication on load rules.
    Mgmt Actual is a scenario set thru Substitution variable at the DB level
    i.e *&CurScen="Mgmt Actual" (set at DB level)*
    Header Definition on load rule *&CurScen,"Base","No Vertical","No Customer"*
    Data load work fine If i replace substitution variable with original member *"Mgmt Actual","Base","No Vertical","No Customer"*.
    I did notice some users complaining erratic behavior when substitution variables are placed in load rule header at the End on multiple members, i have tried all places End, First and Middle.
    tried using single Load rule with EAS and MAXl same results.
    i want to keep altering scenarios on header definition and use same rule files.
    alter database AppName.DbName set variable CurScen '"Mgmt Actual"';
    Running out of ideas any help!

    Error:
    Unknown member [Mgmt Actual,Base,No Vertical,No Customer] found while processing string [Mgmt Actual","Base","No Vertical","No Customer]
    Unexpected Essbase error 1019026
    *1019026 Unknown member memberName found while processing string string*
    Possible Problems
    Analytic Services does not recognize the listed string as a member of the outline.
    Possible Solutions
    Make sure that the member name is valid. The member name is in the rules file.
    * Are you using the correct rules file?
    * Is the rules file connected to the correct outline?
    * Can you validate the rules file?
    * Are member names or variable names enclosed in quotation marks where necessary?
    * Does the member exist in the outline? If not, you can add the member by modifying the outline during the dimension build or add the member in the Outline Editor.
    * Make sure that the member is not specified as a header in the rules file.
    Regards,
    Prabhas

  • How to use array variable in Business Rule

    Hi,
    I have read a lot about Array variable. But everywhere declaration of array variable in described. I can declare that. It works fine. But i can't implement that array variable.
    Can any one please provide me an example of implementation of array variable?
    Regards,
    Rubi
    Edited by: Rubi Banerjee on Mar 30, 2012 3:35 AM

    forget about all varible in essbase CSC
    it's bad practics.^^^Is it?
    Essbase cube are self big array )^^^That's what makes ARRAY so cool -- you can set up an array that encompasses a dimension.
    Example straight from a HBR:
    ARRAY SomeArray["Entity"] ;
    Regards,
    Cameron Lackpour

  • User Variable Options: How can I use them in a Business Rule?

    How can I use a "User Variable" set in File / Preferences in a Business Rule? It doesn't seem to appear as an Essbase Substitution Variable or as a Global Variable of Business Rules. The only way I know how to use it is to place the dimension on the POV or Page dimension of a data form, then use a Global Variable in a run time prompt to pick the member and run a BR against it, or some function of it.
    What do I do if I want to have that dimension in Columns or Rows? How can I set a BR to directly reference the member chosen under User Variable Options?
    J

    Thanks Alp, but I can't seem to reproduce what you are writing below. I want to refer my Business Rule to address the value set in File / Preferences / User Variable Options; no matter what members I show elsewhere in the data form.
    My other workaround is through a run time prompt and hope the user selects the appropriate user variable at the very bottom of the selection list in order to calculate the appropriate list of members.
    J

  • Executing Business Rule / Calculation from Excel - Essbase

    Hi All,
    Currently I am trying to run the calculations / Business rules from essbase after locking and sending data. I am using the below code to run the business rule / calculation from essbase.
    Sub RunBusinessRule()
    On Error Resume Next
    X = EssVCalculate(Empty, "AggFlash", False)
    MsgBox "Business Rule executed successfully"
    End Sub
    The issue is that my code gives me a message that the business rule is executed successfully but the rule keeping running in the background for some time. Actually i need a code which will check the status of the process of calculation and when it actually gets completed I should get a message that it's been done. Please expedite.

    Hi,
    I take it you mean calc script and not business rule as really they are separate.
    The reason you get a message straight away is because you have the synchronous parameter set to false, if you set it to true it should not return until it is comple
    e.g.
    X = EssVCalculate(Empty, "AggFlash", True)
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Error selecting oultine in Business Rules v11.1.1

    Hi Experts,
    essbase version: 11.1.1
    I have created a new app in Essbase, and when I want to select this outline when I create a Business Rules, i receive this message:
    Error connecting to Essbase server SERVER/DATABASE
    Detail:com/hyperion/cp/clients/util/UMCParser
    Any idea please?
    Thanks
    Edited by: Remi Grossat on 26-ene-2009 7:22

    Hi,
    Any time I have had trouble associating outlines with Business Rules with Essbase/Planning, it has been down to either :
    1. Services not started in correct order
    2. Security / Shared Services not in sync.
    Your exact message doesn't look to familiar, but I would still check the above, in particular check that you have synched EAS with Shared Services. Eg Refresh Security , and also under business rules refresh user list.
    One recent thing I saw with v11.1.1 is that we couldn't properly associate the BR with Essbase/Planning when logged in as admin, but could when using another Shared Services user, with the appropriate provisioning. I have not had a chance to investigated why.
    Regards,
    Imran

  • Business Rules Not Visible in Planning.............

    Hi All,
    I have created business rules in Essbase & works well.But Those are not showed in planning App.Here , While i'm
    creating Business Rules ,able to access for essbase only , when click on planning to shows unable login planning.
    Plzzzzzzzz help out.......
    Thanks

    I am having the same problem with accessing business rules in version 9.3.1. I have been working with Oracle support for 5 months now trying to resolve this and they have not been able to help.
    This application has been up and running for over a year before this behavior occurred. Previously users were able to view and run business rules. It is only affecting non-native authenticated users. The admin user and natively authenticated users can run/edit & vaidate rules. In order to run business rules all users have to log in with the admin user ID (not a good solution).
    Any ideas, clues or new method of debugging this issue would be appreciated.
    Thanks
    John

  • Unable to associate an outline for business rule

    Hi All,
    I am not able to associate an outline (either essbase or planning) to validate a business rule. The hbrserver.log from epmsystem1/diagnostics/logs/eas
    says below output.
    2012-03-28 17:57:40,192 WARN [ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.plugin.essbase.EssbaseMetadataServerElement - Error connecting to Essbase server http://<servername>:19000/aps/Essbase?clusterName=EssbaseCluster-1.
    2012-03-28 17:57:40,193 WARN [ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.plugin.essbase.EssbaseMetadata - Error connecting to Essbase server EssbaseCluster-1.
    2012-03-29 09:57:13,209 WARN [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.security.HbrSecurityAPI - Exception occured: EPMCSS-00502: Failed to get group with identity native://DN=cn=f5ef9686a5e205bd:7ad025f2:12202d6e25a:-7ffe,ou=Groups,dc=css,dc=hyperion,dc=com?GROUP. Group not found in configured user directories. Check user directory.
    2012-03-29 09:57:13,211 WARN [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving group by identity
    2012-03-29 09:57:13,283 WARN [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving user by identity
    2012-03-29 09:57:13,354 WARN [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving user by identity
    2012-03-29 09:57:13,419 WARN [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.security.HbrSecurityAPI - Exception occured: EPMCSS-00502: Failed to get group with identity native://DN=cn=f5ef9686a5e205bd:-1c3b8cd:11ffef2e704:-7ffc,ou=Groups,dc=css,dc=hyperion,dc=com?GROUP. Group not found in configured user directories. Check user directory.
    2012-03-29 09:57:13,420 WARN [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving group by identity
    2012-03-29 09:57:13,725 WARN [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.plugin.planning.PlanningMetadata - Error connecting to Planning server ojhyperiondev01.mtn.com.ng.
    2012-03-29 09:58:25,363 WARN [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.security.HbrSecurityAPI - Exception occured: EPMCSS-00502: Failed to get group with identity native://DN=cn=f5ef9686a5e205bd:7ad025f2:12202d6e25a:-7ffe,ou=Groups,dc=css,dc=hyperion,dc=com?GROUP. Group not found in configured user directories. Check user directory.
    2012-03-29 09:58:25,364 WARN [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving group by identity
    2012-03-29 09:58:25,449 WARN [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving user by identity
    2012-03-29 09:58:25,516 WARN [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving user by identity
    2012-03-29 09:58:25,579 WARN [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.security.HbrSecurityAPI - Exception occured: EPMCSS-00502: Failed to get group with identity native://DN=cn=f5ef9686a5e205bd:-1c3b8cd:11ffef2e704:-7ffc,ou=Groups,dc=css,dc=hyperion,dc=com?GROUP. Group not found in configured user directories. Check user directory.
    2012-03-29 09:58:25,579 WARN [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving group by identity
    2012-03-29 09:58:25,694 WARN [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.plugin.planning.PlanningMetadata - Error connecting to Planning server ojhyperiondev01.mtn.com.ng.
    2012-03-29 10:00:08,562 WARN [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' com.hyperion.hbr.plugin.essbase.EssbaseMetadataServerElement - Cannot sign on as user already signed on.
    com.essbase.api.base.EssException: Cannot sign on as user already signed on.
         at com.essbase.api.session.Essbase.signOn(Unknown Source)
         at com.essbase.api.session.Essbase.signOn_internal(Unknown Source)
         at com.essbase.api.session.Essbase.signOn(Unknown Source)
    Can anybody help me please.. I tried with newly created admin user with all the privillages.. still no luck.
    Many Thanks

    Is this 11.1.2.1 by any chance?
    We had this as well, but resolved the issue with this KB:
    Error: "Error connecting to Essbase server EssbaseCluster-1" When Trying to Connect Business Rules to Essbase [ID 1328483.1]
         Modified 25-JUL-2011 Type PROBLEM Status PUBLISHED     
    In this Document
    Symptoms
    Cause
    Solution
    References
    Applies to:
    Hyperion Essbase - Version: 11.1.2.1.000 and later [Release: 11.1 and later ]
    Information in this document applies to any platform.
    Symptoms
    in version 11.1.2.1, after switching Essbase from using host name to a cluster name, in Essbase Administration Services (EAS) it is no longer possible to navigate lower than "EssbaseCluster-1" in the tree of Locations in Business Rules. The following error occurs:
    "Error connecting to Essbase server EssbaseCluster-1".
    This happens with both pre-existing and new business rules.
    Cause
    This issue has been identified as unpublished BUG 11783671 - Unable To Select Outline For Essbase Rule If Essbase Cluster1 Is The Server
    Solution
    The current workaround is:
    1. Search for the file named 'essbase.properties' under %EAS_HOME%. Note that normally on a windows setup %EAS_HOME% points to the following path:
    ":\Oracle\Middleware\EPMSystem11R1\products\Essbase\eas"
    If it does not exist, create a blank text file and name it 'essbase.properties' and place it under %EAS_HOME%\server\bin
    2. Open it in notepad and add the following setting to the beginning of the file:
    aps.resolver.urls=http://<APSSEVERNAME>:APSPORT/aps
    e.g aps.resolver.urls=http://server1:13080/aps
    NOTE: The line is case sensitive
    3. Save the file and restart the EAS server.

Maybe you are looking for

  • Unabled to download the file A73074_01.pdf

    I had tried several times to download this file and I received a error message at my browser. This file is corrupted or something like that? If so, is there any chance to someone verifies and corrects it ? Or, maybe, suggests another site where I can

  • Trans Code to check the Date of Termination in Setup Tables-Very Urgent!!

    Hello BW Gurus,       I need to check the date of termination I have given while filling up the setup tables to verify when my delta loads would stop running. NPRT transaction code just gives me the time it took to fillup the tables but the date of t

  • Index Reorganize (2)

    Hi All, I was on a long vacation so couldn't post my comments for my previous query. Today i checked and could see lot of replies and arguments over the issue. And before i could reach to a conclusion the thread has been locked i guess and i'm not ab

  • Discoverer view change default option

    Hi friends, when connecting to discoverer/plus or viewer. The first screen, we will see "Connect to" and the default for this one is "OracleBI Discoverer" I just wonder if i can hide that option. So anytime when i open discoverer plus it i should not

  • Issue with schema publishing after installing Universal Records Management

    Installing URM over Content Server has been by far the most random experience I've had so far with any technology... Out of 6 installation attemts of URM, only 1 has been entirely successful.... with no errors.... the rest have errors that makes it i