Sub Var's in ASO MDX?

Hi,
Have a calc: Qty = Rate * 100
However the 100 needs to change based on whatever criteria user has. Users say it could range from 1 to 250 and they want to be able to choose it at time they retrieve. I'm thinking the only way to do this would be to create 250 Account members named 'Qty 1', 'Qty 2', 'Qty 3' etc..... and then have each formula with the corresponding value from 1 to 250?
Qty 1 = Rate * 1
Qty 2 = Rate * 2
Qty 3 = Rate * 3
Then they just choose the proper Account?

Many will disagree with me, but I don't think it is a problem a calculation should solve. Because there is no rule or reason in place to determine the value. I think the best solution is to just store the rate and let the use calculate the result in their fornt end tool

Similar Messages

  • MDX SUB VAR ERROR

    Hi All,
    I'm trying to write a simple MDX formula, however when I try to use a SUB VAR in the formula I keep getting an error message. However, when I replace the Sub Var with the member name the SubVar is currently set to, it works.
    The formula is:
    1 - IIF (IS(QTR.CurrentMember, [Q1] ), [&q1hybcqw],0)
    The &q1hybcqw is set to a member from a different dimension to that stated in the IS(QTR.CurrentMember, [Q1] ). When I use the actual member it works, which give's the formula:
    2 - IIF (IS(QTR.CurrentMember, [Q1] ), [EOQ],0)
    The error in formula number 1 is "Error(1260046) - Unknown Member "EOQ" used in queryhybyrCQW" - note - "hybyrCQW" is the name of the member that contains the formula.

    In calc scripts, the substitution variable should have quotes around the member, even if it doesn't otherwise need them -- I don't know if this is the same case for MDX calcs though, but give it a try as it might be at least part of the answer.

  • A way to track where all the Sub Var are applied?

    Hopefully this is the section where to post.
    Is there a way of tracking where all the substitution variables are being used in the reports?
    Either in reports or calc scripts, or in a 3rd format, if there is one.
    We just don't want to open up each script individually and scan for use of the sub var, or open each report and see if it's used.

    Hi there,
    Is this HFM or Essbase?
    Regards,
    Thanos

  • Sub var question

    Hello...I have two questions re: substitution variables.<BR><BR>1. I believe Essbase evaluates sub vars "bottom-up"--that is, if you have the same variable name at multiple levels (database, application, server), Essbase uses the value from the lowest level. This is the case regardless of whether you're using the variable in a calc, report script, spreadsheet retrieval, etc. Is this correct?<BR><BR>2. What in the world does the "Set Substitution Variable Scope" command in the calc script editor do? It doesn't effect syntax checking, or the way the calc runs. I've also noticed this command doesn't exist in EAS...<BR><BR>Thanks,<BR>Jared<BR><BR>

    You already have a spry horizonal menu that you appear to be using as a vertical.  You might be able to insert another <ul> within the <li>, like so
    <ul id="MenuBar1" class="MenuBarHorizonal">
      <li><a class="MenuBarItemSubmenu" href="#">Item 1</a>
          <ul>
            <li><a href="#">Item 1.1</a></li>
            <li><a href="#">Item 1.2</a></li>
            <li><a href="#">Item 1.3</a></li>
          </ul>
      </li>
    If that does not work, perhaps you might just want to delete what you have and insert a vertical spry menu.
    I also notice all of your html files start with caps, looks like you have an Index html and a index.html.  I'm guessing that gave you a few headaches.
    Gary

  • Dynamic Calc'd Member not picking up Sub Var changes  -  11.1.1.3

    Hi,
    We have a Dyn Calc'd member formula using a sub var on a member. When sub var is updated, values in member formula referencing the sub var don't update. We have stop and start the application for it to pick up the new sub var in the member formula.
    any ideas?

    Unfortunately you have to live by the definition in dbag which is in the post that Tim provided the link for but nobody seems to follow links these days :)
    "To ensure that a new substitution variable value is available in formulas, partition definitions, and security filters, stop and restart the application. All other uses of substitution variables are dynamically resolved when used."
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Sub Var in FR

    I am using System 9.3.1. While creating the FR using the Studio, I am not able to get the sub var from Essbase. Other than that everything is working fine. Anyone encountered similar problem?
    Thanks

    Financial Reporting let's you connect to different services in System 9.3.1. For example you can use the Essbase Analytics connector to access Essbase properties or the Planning connector to access Planning properties.
    Make sure you are connecting through the Essbase connection to have Subvars available to you.
    Also make sure your substitution variables follow recommended naming standards. I.e. do not begin with numbers or have foreign characters. I also try to keep them less than 8 characters.
    Hope this helps,
    Brian Chow

  • Hyperion Reports - Suppress based on Sub Var

    Hi,<BR><BR>I have a report with the time periods in the columns. Column [A], which is suppressed, is Sub Var $CurMnth. Column "B", which is suppressed, is a range of time periods (months). Column [C] is the sum of Column "B". I want to conditionally suppress Column [C] based on the value of the CurrMth Sub Var.<BR><BR> <BR><BR>So, IF CurMnth = Jul, then suppress Column [C]. I can't find a way to do this. Is it possible?<BR><BR> <BR><BR>Thanks.<BR><BR>

    <p>Well, if your value "Jul" does not changes, the youcan do conditional supressions.</p><p> </p><p>Suppose you column with sub var is colum a then use</p><p> </p><p>If data value in cell [a,1] is equal to data Jul, --> usethis condition for conditional supression.</p><p> </p><p> </p><p>I use something like this in my reports and it works fine.</p><p> </p><p>hope this helps !</p>

  • Formula to check sub var

    Hi All,
    We have a formula on a member. the calc is dependant on substitution variable: CURRENTMONTH...
    IF (&CURRENTMONTH == @ISMBR("Jan"))
    when i use the above its not working..............how can i check the sub var &CURRENTMONTH

    I like IF(@ISMBR(&Currmth) and @ISMBR("Jan"))
    comparisons of member names don't work very good until you get to 11.1.2 and have the membercompare function

  • ASO MDX query in outline??????

    Trying to write a MDX query for the Account member
    Hierarchy:
    Account
    A001
    A002
    A003
    A008
    Scenario
    AG00
    AG01
    AG06
    AG08
    AG09
    Organization
    ETCE
    E023
    E024
    E070
    I need to caluculate for the Account AG08 the value should be derived from AG07 and for the same account AG08 for the Organization member "E070" the value should be same as AG09 ( i.e AG09 = AG08 )
    I writen below query at the level "0" retrival query is good but when i use the Top level query "ETCE" parent level the value in "E070" is eliminating . Query writen below
    NONEMPTYMEMBER [A001],[A007]
    CASE
    WHEN (IS([Organization].CurrentMember, [E070])) THEN
    ([A009])
    WHEN (IS([Scenario].CurrentMember, [AG00])) THEN
    (([A007] * -1)/100)
    WHEN (IS([Scenario].CurrentMember, [AG01])) THEN
    (([A007] * -1)/100)
    WHEN (IS([Scenario].CurrentMember, [AG02])) THEN
    (([A007] * -3)/100)
    WHEN (IS([Scenario].CurrentMember, [AG03])) THEN
    (([A007] * -10)/100)
    WHEN (IS([Scenario].CurrentMember, [AG04])) THEN
    (([A007] * -20)/100)
    WHEN (IS([Scenario].CurrentMember, [AG05])) THEN
    (([A007] * -80)/100)
    WHEN (IS([Scenario].CurrentMember, [AG06])) THEN
    ([A007])
    ELSE
    Missing
    END
    At Bottom level "0" results are coming as expected but Its not working at the top level Organization ETCE level Please help ????
    Thanks
    Venu
    Edited by: user13351102 on Oct 28, 2011 5:19 PM
    Edited by: user13351102 on Oct 28, 2011 6:31 PM

    Guru's any help on this ASO Member formula query ??

  • Essbase 11.1.2.1 - Converting BSO Member Formula to ASO MDX Formula

    Hi all,
    I'm quite new at Essbase and I'm currently using Essbase 11.1.2.1. I have 2 cubes: one is a BSO cube and the other is an ASO cube.
    In the BSO cube, I have an account that has member formula:
    IF(@ISATTRIBUTE("US"))
    ("Sales"->"Budget"->"USD")-("Sales"->"Actual"->"USD");
    ELSEIF(@ISATTRIBUTE("EU"))
    ("Sales"->"Budget"->"EUR")-("Sales"->"Actual"->"EUR");
    ELSEIF(@ISATTRIBUTE("UK"))
    ("Sales"->"Budget"->"GBP")-("Sales"->"Actual"->"GBP");
    ENDIF
    Notes:
    - Sales is an account
    - US, EU, and UK are members of Country attribute dimension
    - Budget and Actual are members of Scenario dimension
    - USD, EUR, and GBP are members of Currency dimension
    I understand that the member formula for BSO and ASO are different. Can anyone please advise me on what the formula should be in ASO cube as MDX formula?
    Thank you very much!

    CASE [Currency].CurrentMember.[Country]
         WHEN "US" THEN ([Sales], [Budget], [USD]) - ([Sales], [Actual], [USD])
         WHEN "EU" THEN ([Sales], [Budget], [EUR]) - ([Sales], [Actual], [EUR])
         WHEN "UK" THEN ([Sales], [Budget], [GBP]) - ([Sales], [Actual], [GBP])
         ELSE 0
    END
    *Note that I am assuming Country is an attribute of Currency based on the information provided.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • ASO MDX queries

    Hi,
    Is there any possibility that we can use semicolon at the end of MDX member formulas for ASO database? If yes please let me know how we can write and calculate member formulas with semicolon at the end?
    One thingI know for sure is we should not use semicolon at the end of member formulas for ASO in admin console.

    Syntax has changed for ASO member formulas and semicolons are no longer used. Why would you want to use the semicolon? With the new syntax it is not necessary.

  • ASO MDX member formula and performance

    Hi,
    I am doing some testing about MDX formulas and performance. I found a performance issue but I can not understand why is taking so long time a report.
    The situation is:
    I create a report or a MDX query with:
    6 dimensions in row and 1 dimension in column
    rows:
    Period - Filtered using a member
    Year - Filtered using a member
    Relationship Manager - Filtered using a member
    Report Type - Filtered using a member
    Local Relationship Manager - 4400 members level 0
    Global Relationship Manager - 10400 members level 0
    Column:
    Account dimension, only a member
    The member selected for Report Type (RM.Local) has a formula
    My Report Type dimension has 10 members, there is one member where I store data called : RM.Input
    My first test was
    RM.Local his formula is [RM.Input] , the report is run in 1 second
    RM.Local his formula is ([RM.Input],[MTD]) where MTD is a member level 0 store in my view dimension. The report run in 20 minutes. I was not expecting so bad performance when I only pointing at [RM.Input],[MTD]
    Do you consider this time is reasonable when I am using this formula?
    The mdx report is:
    With
    set [_Local Relationship Manager3] as 'Descendants([All Local Relationship Managers], 2)' = level 0 members
    set [_Global Relationship Manager4] as '[Global Relationship Manager].Generations(4).members' = level 0 members
    set [_Period0] as '{[Period].[Oct]}'
    set [_Relationship Manager4] as '{[Relationship Manager].[Dummy1)]}'
    set [_Report Type0] as '{[Report Type].[RM.Local]}'
    set [_Year2] as '{[Year].[FY-2013]}'
    select
    { [Account].[Expenses]
    } on columns,
    NON EMPTY {crossjoin({[_Local Relationship Manager3]},crossjoin({[_Global Relationship Manager4]},crossjoin({[_Period0]},crossjoin({[_Relationship Manager4]},crossjoin({[_Report Type0]},{[_Year2]})))))} properties MEMBER_NAME, GEN_NUMBER, [Global Relationship Manager].[MEMBER_UNIQUE_NAME], [Global Relationship Manager].[Memnor], [Local Relationship Manager].[MEMBER_UNIQUE_NAME], [Local Relationship Manager].[Memnor], [Relationship Manager].[MEMBER_UNIQUE_NAME], [Relationship Manager].[Memnor], [Period].[Default], [Report Type].[Default], [Year].[MEMBER_UNIQUE_NAME], [Year].[Memnor] on rows
    from [DICISRM.DICISRM]

    Ok Try this one
    But here you have to change the MDX formula every month.
    Year
    --FY2009
    --FY2010
    --FY2011
    --FY2012
    Period
    --TotalYear
    ----Qtr1
    -------Jan
    -------Feb
    -------Mar
    Let say if you're CurrentYear  is FY2011 and you're Current Month is March then you're MDX will be
    case when contains([Year].CurrentMember,MemberRange([FY2009],[FY2010])) and contains([Period].CurrentMember,MemberRange([Jan],[Feb]))
    Then
    B
    else
    C
    end
    For the Next month you just have to make a change in the MemberRange I.e.,(Replace Feb with Mar)
    *case when contains([Year].CurrentMember,MemberRange([FY2009],[FY2010])) and contains([Period].CurrentMember,MemberRange([Jan],[Mar]))*
    Then
    B
    else
    C
    end
    I tested it and Its working fine.
    I think this will solve you're problem but there might be a more elegant solution out there.
    Regards,
    RSG

  • Aso mdx issue !!!!!

    ([Jan],(Actual),(LOB]) verify's
    ([Jan],[SC_Actual],[LOB])=([lob1]*(.75))+[lob2]*(.25));
    Error(1260052) - Syntax error in input MDX query on line 1 at token '=' CombinedLOB
    please advise
    Edited by: Next Level on Jul 8, 2012 4:43 AM
    Edited by: Next Level on Jul 8, 2012 4:44 AM

    I tried
    CASE WHEN (IS([Time Period].CurrentMember, [Jan]) AND IS([Scenario].CurrentMember, [SC_Actual]) AND IS([LOB].CurrentMember, [CombinedLOB]))
    same Error(1260052) - Syntax error in input MDX query on line 1 at token '' CombinedLOB
    why am i getting this ??????????????/
    then i tried
    CASE WHEN (IS([Time Period].CurrentMember, [Jan]) AND IS([Scenario].CurrentMember, [SC_Actual]) AND IS([LOB].CurrentMember, [CombinedLOB])) Then
    ([lob1]*(.75))+([lob2]*(.25))
    End Case
    Error(1260052) - Syntax error in input MDX query on line 2 at token '' CombinedLOB
    why am i having an issue with CombinedLOB
    all the issue are with CombinedLOB
    this is the dimension
    LOB Dynamic <2>
    XXXXXXXXX (+) <3>
    CombinedLOB (+)
    LOB1 (+)
    LOB2(+)
    HELP !!!!!!!!!!!!!!!
    Edited by: Next Level on Jul 8, 2012 9:45 AM

  • ASO, MDX, Loading Level 0

    <p>Maybe this is more simple than I am making it, but I am tryingto load a level 0 file into my ASO app.  I get to messagesonce the data load happens.   The first is:</p><p> </p><p>SourceTYPE                        SourceFile                    OperationStatus</p><p>Datafile                                e:\whatever.txt                Warning</p><p> </p><p>And then when i click the line, below is what I get.  Andmost of the time, the database is empty, and I can't aggregate whenthere is no data.<br><i><b>Parallel dataload enabled: [1] block prepare threads [1]block write threads.<br>Aggregate storage applications ignore update to derived cells.[5.04334e 007] cells skipped<br>Data Load Elapsed Time : [81.702] seconds<br>Database import completed ['FRaso'.'Finrpt']<br>Output columns prepared: [0]Warnin</b></i></p><p>I also get Buffer which is a success.</p><p> </p><p>Once I do get data in, how do I aggregate stuff.  And can Imodify how things are being aggregated?</p><hr><p> </p><p> </p><p> </p>

    <p>Let me give you an example of what I have in my outline. Using the Months example, I have:</p><p> </p><p>Outline:</p><p><span style=" color: #ff0000;">    MeasureAccounts <11> (Label Only)</span></p><p>          <spanstyle=" color: #008080;">     - It'schildren</span></p><p><span style=" color: #ff0000;">    MonthTime Dynamic <13> (Label Only)</span></p><p><span style=" color:#008080;">                -Jan (~)</span></p><p><span style=" color:#008080;">                -Feb (~)</span></p><p><span style=" color:#008080;">                -....</span></p><p><span style=" color:#008080;">                -Dec(~)</span></p><p><span style=" color:#008080;">                -Mthly (~) <12></span></p><p>                    <span style=" color: #0000ff;">- JAN_MTHLY (+) [0: [JAN]]</span></p><p><span style=" color:#0000ff;">                    -FEB_MTHLY (+) [0: [FEB]- [JAN]]</span></p><p><span style=" color:#0000ff;">                    -.....</span></p><p><span style=" color:#0000ff;">                    -DEC_MTHLY (+) [0: [DEC]-[NOV]]</span></p><p>I tried to indent as best as I could.  But this is the typeof stuff I have.  And you say I shouldn't have any of theseformulas in the different leaves?</p><p> </p><p> </p>

  • Is DATACOPY or similiar possible in ASO MDX?

    I have source file that has 5 dims referenced: Accounts, Service, Quantity, Frequency and Size. In the 'Accounts' dim I have 3 members: Qty, Freq and Yd that all have values. So I extract all those values for all Service, Quantity, Frequency and Size.
    However in my target app, I have 8 dims. The three additional ones are: Segment, Customer and Year. So I load this data file to 'No Segment', 'No Cust' and 'No Year'. Is there a way to copy that data to all the leaf level members of 'Segment', 'Customer' and 'Year'?? Obviously this is easy in BSO, but not sure possible in ASO.
    Thanks,

    I did it in BSO as follows:
    Fix(@Relative("Zip Code",0))
    SET CREATENONMISSINGBLK ON;
    /* First populate the 'Qty' Measure to match the 'Quantities' metadata */
    "Qty" (
    IF(@ISMBR ("Qty 1"))
    "Qty" =1;
    ELSEIF(@ISMBR ("Qty 2"))
    "Qty" =2;
    ELSEIF(@ISMBR ("Qty 3"))
    "Qty" =3;
    ELSEIF(@ISMBR ("Qty 4"))
    "Qty" =4;
    ELSEIF(@ISMBR ("Qty 5"))
    "Qty" =5;
    ELSEIF(@ISMBR ("Qty 6"))
    "Qty" =6;
    ELSEIF(@ISMBR ("Qty 7"))
    "Qty" =7;
    ELSEIF(@ISMBR ("Qty 8"))
    "Qty" =8;
    ELSEIF(@ISMBR ("Qty 9"))
    "Qty" =9;
    ELSEIF(@ISMBR ("Qty 10"))
    "Qty" =10;
    ELSEIF(@ISMBR ("Qty 11"))
    "Qty" =11;
    Endif; )
    /* Now populate the 'Yard' Measure to match the 'Yardages' metadata */
    "Yard" (
    IF(@ISMBR ("Yd 1.0"))
    "Yard" =1;
    ELSEIF(@ISMBR ("Yd 1.5"))
    "Yard" =1.5;
    ELSEIF(@ISMBR ("Yd 2.0"))
    "Yard" =2;
    ELSEIF(@ISMBR ("Yd 2.5"))
    "Yard" =2.5;
    ELSEIF(@ISMBR ("Yd 3.0"))
    "Yard" =3;
    ELSEIF(@ISMBR ("Yd 4.0"))
    "Yard" =4;
    ELSEIF(@ISMBR ("Yd 5.0"))
    "Yard" =5;
    ELSEIF(@ISMBR ("Yd 6.0"))
    "Yard" =6;
    ELSEIF(@ISMBR ("Yd 7.0"))
    "Yard" =7;
    ELSEIF(@ISMBR ("Yd 8.0"))
    "Yard" =8;
    ELSEIF(@ISMBR ("Yd 9.0"))
    "Yard" =9;
    ELSEIF(@ISMBR ("Yd 10.0"))
    "Yard" =10;
    ELSEIF(@ISMBR ("Yd 11.0"))
    "Yard" =11;
    Endif; )
    /* Now populate the 'Freq' Measure to match the 'Frequencies' metadata */
    "Freq" (
    IF(@ISMBR ("Freq 1x"))
    "Freq" =1;
    ELSEIF(@ISMBR ("Freq 2x"))
    "Freq" =2;
    ELSEIF(@ISMBR ("Freq 3x"))
    "Freq" =3;
    ELSEIF(@ISMBR ("Freq 4x"))
    "Freq" =4;
    ELSEIF(@ISMBR ("Freq 5x"))
    "Freq" =5;
    ELSEIF(@ISMBR ("Freq 6x"))
    "Freq" =6;
    ELSEIF(@ISMBR ("Freq 7x"))
    "Freq" =7;
    Endif;)
    Endfix

Maybe you are looking for

  • Can I call a function in another package?

    Dear all, Can I call a function in another package? Say I have package A, and package B. Is it possible for me to call a function in inside package A, within a function inside package B? If yes, what's the syntax. Thanks in advance!

  • Can't checkout a resource

    Has anyone else had this problem. I'm using Project Server 2013 and Project 2013. I have admin rights on the system. I open the resource pool in PWA, check the box next to the resource I want to edit and then click the Open icon. Nothing at all happe

  • Is there any way to revert back to the old Active X based Datasheet view?

    Hello, Is there a setting I can check to use the old Active X based Datasheet view from 2010? If not, then is there a way to have the new 2013 Datasheet view display more than 30 items per line? I clicked display all in the view settings and it displ

  • Request resources for crystal report or universal design.

    Hello Gurus,          please instruct me how to learn formula in cystal report or  universal design ?  I have no business object to practice, please show me some web resource or helpful book. Many thanks,

  • Location of library folder/s on macpro

    Ok so here are a few basic questions i should know but i need to ask. 1. how many library folders should there be on the mac? im assuming 1. 2. am i correct in saying that the correct location should be (macintosh HD/users/my home folder/library (las