Substitution variable in the functions

Can we call substitution variable in the functions in essbase calc scripts
for example fix (@IRSIBLINGS(&mois_en_cours_reprev));

Sould be just fine. Does it validate? If not, make sure the variable is spelled correctly in EAS (always start with the easy solution first :) ).

Similar Messages

  • Using Substitution variables in Range function in FR

    Hi,
    According to one of my report requirement, I want to show current quarter’s weeks till the current week. Just to elaborate more I am able to show current quarters all weeks but unable to show till current week. I had created Current quarters starting week (CurrQtrSW) as a substitution variable and CurrWeek as other substitution variable when I keep these two SV's in Range function it is throwing me error and my report is not running. Can anybody help me in this?
    It is urgent
    Thanks in Adv.

    If you're using the standard 13 week quarters and they are labeled that way, you can just use Week1 as the starting point (as opposed to having weeks 1-52 in your essbase cube).
    Have you restarted essbase/FR Studio since adding the sub vars? It can sometimes require one or both to fully recognize them.
    Hope this helps.
    Cheers, Iain

  • Changing values of substitution variables on the basis of selection in Page

    Hi All,
    I am developing a classic planning application using hyperion 11.1.2.1. All of my data forms are based on substitution variables i.e. I define three variables:
    sv_CurrYear = FY12
    sv_CurrYearMinus1 = FY11
    sv_CurrYearMinus2 = FY10
    and i am using these 3 variables in columns section of my data form i.e First Column contains sv_CurrYearMinus2, second column contains sv_CurrYearMinus1 and third column contains sv_CurrYearMinus2.
    Now my understanding is that every year system admin will update the values of these variable and data form updated automatically.
    But my client want to have such a mechanism through which he would be able to see the data of previous years. i.e He want to have Year dimension in Page section, so that he will select his desired year from drop down and as a result form will display the desired year's data. Now if i have only one column(i.e curr year) in my data form then i could easily do that but since i have three different year's so it didn't seems easy to me.
    One idea that originate in my mind is that i add a custom dim by the name of Custom year and its member would be like this CY10, CY11, CY12 ... and so on, then i will place this dimension in Page so that user will select his desired year and when he presses the "Go" button then some sort of script executed which change the values of my Substitution Variables. But i don't know whether its possible or not? if yes, then how or any other alternate idea?

    I dont know if it is possible and make sense in your application, but you could create a new Custom Dimension with the members "Current Year" "Previous Year" etc. All values of the current plan period would be saved to "Current Year" and if you change to next plan period (FY+1) you need to copy the data from FY->"Current Year" to FY+1->"Previous Year" and so on.
    Then you would be able to put the Financial Year Dimension in Page and the Custom Dimension in Columns.
    Disadvantage: your cube data would grow faster.
    Kind regards
    André

  • A problem with accessing the public variable inside the function

    Hi,
    I have got this package and I get error 1120: 1120: Access of undefined property aa
    Could you explain why I get this error?
    package somepackage {
        import flash.display.DisplayObject;
        import mx.containers.Canvas;
        public class SoundPictureSigns extends Canvas {
            public var aa:int = 12;
            public function SoundPictureSigns():void {
            public static function setUpSignSizes():void {
                trace("aa="+aa); /// ERROR here: 1120: Access of undefined property aa
    Can you help?
    Regards

    When you write
    class C
        var v;
    you are defining a variable that lives inside each instance of C. In other words, you can write code like
    var c:C = new C();
    c.v = 1;
    If you don't have an instance, you can't access v.
    When you write
    class C
        static var v;
    you are defining a variable that lives inside the class itself, and you can access it without having an instance.
    Gordon Smith
    Adobe Flex SDK Team

  • Using a Substitution Variable in a text box when the member isn't used in a grid

    Hi,
    I'm trying to create a footer in my report to display a substitution variable for the "Period" dimension. The Period dimension is not used in any of the rows or columns in my grid in my report in FR studio. It is left as a POV. I am trying to reference the substitution variable for CurrentMonth, which is independant of what the user selects for the Peiod POV.
    For example, the user runs the report and selects YearTotal for the Period dimension. I want to bring back the substitution variable of &CurrentMonth for Period even though it is not selected in the Grid for the report. Is there a way to do that?
    The workaround I am using is adding a second Grid and selecting the Substitution variable in the row and referencing the function from the second grid, which is hidden. This is bulky, and I'm hoping for a cleaner solution. The function I'm using from Grid 2 is below:
    <<MemberAlias("Grid2", 1, "Period")>>
    If I referenced Grid1 for Period, the function would display the user's POV selection, which is not what I want.
    Any help would be much appreciated. Thanks so much!!
    Tiffany

    Tiffany,
    I do the following which I think may fit you need:
    Add the "Period" dimension to the Columns section.
    Make the "Period" dimension the top most member of your column selections.
    Hide that row.
    Set the left most column to "Current Poinf of View for Period"
    Select "Same As Col A" (for example) for the remaining report columns.
    Add a column to the far right and use the &CurrentMonth substitution variable for the "Period" dimension. (The other dimensions in that column should be set, if possible, to retrieve as little data as possible.)
    Hide the new column.
    Change the function in the footer to <<MemberAlias(Grid1, A, "Period")>>
    This should allow your user to select their desired period without impacting the hidden column value of &CurrentMonth which will be displayed in your footer.
    Bill

  • Using a business rule to set the substitution variables

    Hi All,
    I am having issues with setting the value of Substitution variable from a Business rule.
    Any help would be appreciated.
    Thanks,
    Shakil

    Thanks for your response, John.
    I am trying to set the Substitution variable through a data form on which the Business rule is attached.
    The admin guide for Planning states that "You can set substitution variables on the Essbase server,
    application, or database level. The same substitution variable can exist on multiple levels;
    Planning uses the first one it finds as it searches in this order: 1) database 2) application 3)
    server." So I believe that it should be possible.
    Regards,
    Shakil

  • Variable in the Load Rule file

    Hi,
    We're running EAS 9.3.1 and trying to update a load rule to include a substitution variable in the header. The load rule works fine when the member name is defined explicitly and the variable works fine in the calc scripts. Any ideas? I tried removing the quotes and the & symbol already. See error below.
    Reading Rule SQL Information For Database [Plan1]
    Reading Rules From Rule Object For Database [Plan1]
    Unknown member [&CalcVersion] found while processing string ["Budget","&CalcVersion","Load","Functional"]
    Unexpected Essbase error 1019026
    Thanks.

    Did you remove the quotes by using the replace in "field Properties" and Global properties tab? I am trying to replace double quotes with null in the data file and it does not seems to be working.
    Thanks
    Yagna

  • Substitution Variable Issue while exporting from Essbase.sec file

    Hello All,
    I have an unusually distinct problem.
    I have 2 environments (Development and Production) where each environment has a seperate server with Essbase installed in it.
    When I tried to get information of the Substitution variables using the 'export security_file to data_file' command through MaxL and then checked the output file in Development, it showed me the right number of substitution variables and their values.
    But when I did he same with my Production environment it gives exactly 1 less no of substitution variables in the export file, specifically the last substitution variable that was updated through the Essbase Administration Console.
    I guess it is not updating the Essbase.sec file with the last updated Substitution variable. But I can't understand why since the same functionality works in development but not in production.
    Thank You.

    Hi all,
    In addition, I exported the Essbase.sec file after a long time after changing the Substitution variable and now it does show the updated substitution variable.
    I feel that Essbase does refresh the Essbase.sec file but after a long time. Is there some setting within Essbase that is done which refreshes the artifact files after a while. Or is this a setting within the system in which Essbase has been installed (in my case Linux).
    Also the Substitution Variable that has been created is for (all apps) and (all dbs). Is this the reason why this is not working because I tried changing some other Substitution variable which is for a specific app and a specific dbs and it worked fine.
    Thank You.
    Edited by: 923021 on 27 Mar, 2012 6:15 AM

  • How to compare substitution variable name to static member names (not data)?

    Is there a way to write a BSO member formula that compares a substitution variable against the name of a static member (not the data value of the member)
    For example, I have a BSO database that has the sub variable &CurrMth (which is set the real current month), and I am trying to use it in the Q1/Q2/Q3/Q4 member formulas
    IF(&CurrMnth <> "Jan" AND &CurrMnth <> "Feb")
       "Mar";
    The intention of the above is: if &CurrMnth is neither Jan nor Feb, then the Mar value will be used. However, the system is actually comparing the values of &CurrMnth and Jan/Feb, rather than the names/text string of "Jan"/"Feb".
    I have been looking around the tech references, but I was unable to find any functions that will compare the text strings of member names as they all appear to compare against the data itself.
    Please let me know if there are any ways to compare the member names themselves in a member formula, not the data values.
    Thanks!

    Thanks Celvin, that looks like it works!
    However, I do need to do the same function in the equivalent quarter members in our ASO cube as well. Do happen know know if there's a similar MDX function I could use in the ASO cube to acheive the same result? I was using the following to achieve this in ASO (which obviously did not work):
    IIF([Time Periods].[Jan] <> &CurrMth AND [Time Periods].[Feb] <> &CurrMth,
       [Mar],

  • Setting substitution variable to connection string (not ODBC name)

    Hi,
    I havce a question regarding the use of a sub variable in SQL data loads as the data source. I find this works great when the variable is set to an existing ODBC. What I would really like to do is skip the ODBC creation step and have the substitution variable be the actual connection string, such as "Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase; Uid=myUsername;Pwd=myPassword;"
    Can anyone confirm or deny whether this functionality exists? As usual, the documentation is vague on the subject and doesn't exclude the possibility, but doesn't include it, either.
    Thanks!

    My first thought is that no, you can't do that. Even if you could, I'm not sure if you'd want to do that. The easiest way to find out is simply to try. But more than likely I think you should just have "hard-coded" values for the source/target server. If you are trying to stay with the same load rule for dev/test/prod servers, you might just be better off coming up with a naming scheme that let's you keep them all separate.
    Cheers,
    Jason Jones
    [http://www.jasonwjones.com]

  • Problems using substitution variable in Web Analysis

    Dear all,
    I have a Web Analysis report that I need to show a raking table with the current month.
    For that I create a variable in Essbase that is updated with that date (E.g.: varCurrentMonth).
    After that I use it as my substitution variable to filter my date dimension in a report data source (E.g.: Scr5, row: product, column: date dimension & measure):
    2008 (current month)
    Product $ qty.
    AAA 100 10
    BBB 90 7
    CCC 80 5
    The problem is that in our cube we need to use an alias in every dimension not to have duplicate members (E.g.: DT.Date, MS.Measure, PD.Product, etc). And when we use it we need to set up the variable in Essbase using that alias (E.g.: DT.Feb/05/08). And if we use that variable as a substitution variable in the report data source the label displayed is the DT.2008 and not 2008 as expected.
    Does anybody have an idea how to solve that?
    Many thanks,
    Thiago Gabriel

    You usually get this error message if you are trying to assign a value from a sub var to a member that does not exist.
    e.g. trying to put FY08 which is a year member against a period dimension
    or trying to use a sub var of FY09 which does not yet exist in the essbase, so say you added a new year in planning FY09 and used the sub var in the form but have not refreshed the database then it would fail because the year would not have been pushed down to essbase yet.
    or the value of the subvar does not match a member name exactly
    or using a sub var name that does not exist in essbase, e.g. using &nextYear but the sub var has not been created in essbase.
    You can definitely use subsitution variables in columns in the version you are using and prior version.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Unable to use variables of a function module in am enhancement spot

    Hi All,
    I have created an implicit code enhancement spot at the end of a function module. In this enhancement I am unable to access the local variables and the import/export variables of the function module. Is this the expected behavior or I am doing something wrong.
    Thansk & Regards,
    Saurabh

    Hi Saurabh,
    Can you explain your scenario in detail with tcode and function module and all.
    Regards,
    kamalapriya

  • Use of Essbase substitution variables in filename of a MaxL report script

    Hey guys.
    Is there a way that I can embed the value of one or more Essbase substitution variables in the filename of a report script in a MaxL command?
    I'm running a report script that uses sub. vars for entities and accounts and based on which of those members are set in the variables I want the filenames to include those member names. I'm looking for a way to include the &varName in the filename using the export database command.
    THANKS!

    Not really.
    If you want to do a lot of string mangling in a script outside of the report script, you can use DISPLAY VARIABLE:
    MAXL> display variable CurMo;
    application         database            variable            value
    +-------------------+-------------------+-------------------+-------------------
                                             CurMo               MayRegards,
    Robb Salzmann

  • Issue with rule file and Substitution variable

    Hi All,
    I am using Essbase 9.3.3
    I created a rule file with 5 dimensions in which 3 dimensions I defined in columns and two dimensions I gave it as header in data column with comma seperated.
    Among those two dimension members, one is an account member with "/" in it within quotes and other is a substitution variable.
    The member assigned for that Substitution variable has a space in between and is updated within quotes in variables list.
    When I try loading data, I am getting an error saying that two members are not valid.
    Eg: "Tax/Unit",&Scenario is not valid.
    &Scenario - "Budget Q1"
    Can some one please suggest on the issue.
    I am not facing any problem in calc scripts or reports scripts using the substition variable.
    Thanks in advance

    Mark,
    Modifying the default files is dangerous and ill advised. You could always just add a style sheet (inline or linked) to your application that overrides that one setting while you wait on the permanent fix.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • Referencing a substitution variable in data load rule header definition

    Hi All,
    Im trying to add a substitution variable to the header definition of a DLR.
    the sub var is &CurrMonth.
    When I execute the data load I get an "unknown member error" with a list of all members in the header definition, including Oct which is my current month.
    It looks like the DLR is resolving the sub var but for some reason it is refusing to load data.
    We are on 9.2.0.1.
    Are sub vars referenced differently for DLR?
    Thanks for your help.
    Seb

    Hi Seb!
    Hope you're well. You're doing everything right with the subvars so the issue must be elsewhere. Is the list comma separated? Sorry I can' help more :(
    Gee

Maybe you are looking for

  • Streaming music & not downloading

    Does anyone know if there is a way of streaming music from my iCloud account to my iPhone 3GS rather than it downloading when I want to play it, as I have very little memory left on my phone, and each time I want to play it takes up more memory. Than

  • Ipaq Speculation: Java vs MS C++

    Hi, I am starting a project for a Compaq Ipaq 3870 with PocketPC 2002, and am debating between developing using Java or MS C++. If at all possible, I would rather take the Java route, since I've developed in both, and am less than humored by how non-

  • Business Intelligence Tool

    I've been using Apex for quite a while now, and am extremely satisfied with it. I have one question if people have been using it for a specific purpose. Many of my customers want the ability to create their own reports. We've used discoverer, but the

  • Location Services just stopped working

    So my problem is that I wasn't using location services really when I first got my iPad 2 but when I downloaded an app game it just stopped working. Facebook was able to locate me before and google maps as well. I've tried just about every troubleshoo

  • Cannot start ddclient.service

    Running sudo systemctl restart ddclient.service I get this error message: Job for ddclient.service failed. See 'systemctl status ddclient.service' and 'journalctl -xn' for details. journal: jul 04 11:04:10 vicente systemd[1]: Starting Dynamic DNS Upd