Member Formula: IF ... ELSE do outline aggregation

Hi experts,
How to write a formula for a parent entity member like this:
IF (@ISMBR("Account member"))
do something
ELSE
do default outline aggregation from its descendants
ENDIF
Because I just want the "Do something" execute for some account member. If there is not ELSE statement, the formula will override default outline aggregation. The problem is I can not find any function that manually do default aggregation.
Please ask if my question not clear.
Many thanks!

Huy Van
I tried to replicate it in Sample Basic, I loaded sample data and below is the result
     Cola     Actual                              
     East     East     East     East     New York     New York     New York     New York
     Sales     Margin     Profit     Measures     Sales     Margin     Profit     Measures
Jan     1812     1213     837     837     678     407     262     262I've a script where I've fixed on East (Parent member of Market)
FIX(East,Actual,"100-10")
Jan(
IF(@ISMBR(Sales))
100;
ENDIF)
ENDFIXBelow are the results after running the script
     Cola     Actual                              
     East     East     East     East     New York     New York     New York     New York
     Sales     Margin     Profit     Measures     Sales     Margin     Profit     Measures
Jan     100     -499     -875     -875     678     407     262     262I don't see anything else changes (Only Sales of East is changing).
Now that you are writing to Parent member, then aggregation from Parent1's descendants will overwrite what you script just populated.
Regards
Celvin
http://www.orahyplabs.com
Please mark the responses as helpful/correct if applicable

Similar Messages

  • IF ELSE Statement in Member Formula

    I believe that I am in my final step of completing my database. But, I need to create a member formula that converts lbs to kg. I have gotten help on this question in the past and have a basic formula that works. However, I have 2 exceptions to the formula that are not successfully calculating.
    This much of the formula has been tested and works when isolated:
    IF (@ISMBR(@LIST(AccountCapacityTypeX,AccountCapacityTypeY,AccountCapacityTypeZ)))
    "LBS"/2.2046;
    ELSEIF ((@ISMBR(@List(AccountCapacityTypeA, AccountCapacityTypeB) )) and (@ISMBR(@LIST(MbrNm1, MbrNm2,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","Qtr1","Qtr2","Qtr3","Qtr4"))))
    @round(("LBS"/2.2046),0);
    else
    @round(("LBS"/(2.2046*5)),0)*5;
    ENDIF
    However, the following checks out when I verify my syntax, but when it is added to the above formula the formula does not load:
    IF ((@ismbr(MbrNm3)) and
    (@ISMBR(@LIST("Region1","ParentOfRegion1","GrandparentOfRegion1","Y2008","Y2009","Y2010","Y2011","Y2012","Y2013","Y2014","2015","Y2016","Y2017","Y2018")) and (@ISMBR(@List(AccountCapacityTypeA, AccountCapacityTypeB)))))
    105;
    ENDIF
    IF ((@ismbr(MbrNm4)) and
    (@ISMBR(@LIST("Region1","ParentOfRegion1","GrandparentOfRegion1","Y2012","Y2013","Y2014","Y2015","Y2016","Y2017","Y2018")) and (@ISMBR(@List(AccountCapacityTypeA, AccountCapacityTypeB)))))
    425;
    ENDIF
    Members MbrNm1-4 are all stored, zero level members of the same dimension. My years, months, and qtrs are dense dimensions, everything else is sparce. AccountCapacityTypes contain both calculated and stored members. Region dimension contains all stored members. Also lbs are a stored member.
    Any ideas on how to make these 2 exceptions work?
    Thank you,
    C-Lo

    Hello Cameron Lackpour,
    I have tried several iterations of this calc script, and gotten it to mostly work. The issue that I have is that it calculates everything correctly, but when I @remove the one year that want the calc script to calculate differently that year retrieves values for #missing as desired, but when I try to write a calc script for that single excluded year the second calc script still doesn't run for the whole condition that is defined. I don't know if any of that makes any since, but below is an example:
    FIX("JOLEFINS_JCP")
    FIX(@REMOVE(@RELATIVE("Years", 0), @Member("Y2008")))
    *"KMT"*
    IF (@ismbr(@list("MajorTurnarounds","InventoryCtrl","Feedslate/ProdMixImpct","ActsOfNat","Fdstk/RawMtlAvail",
    *"OtherExtEvents","ExternalLPOs","InternalLPOs","PlndMntc","Mech/ProcLoss","AbvCapProd","Other","Actual","Adjusted","MaxDmstdCap")))*
    *"MMLBS"/2.2046;*
    ELSEIF(@ISMBR("Published Capacities","EOY_PubCap"))
    *@round(("MMLBS"/(2.2046*5)),0)*5-1.25;*
    ENDIF
    ENDFIX (everything in bold is calculating correctly)
    FIX (@RELATIVE("Years", 0), @member("2008"))
    +"KMT"+
    +(+
    IF (@ismbr(@list("MajorTurnarounds","InventoryCtrl","Feedslate/ProdMixImpct","ActsOfNat","Fdstk/RawMtlAvail",
    +"OtherExtEvents","ExternalLPOs","InternalLPOs","PlndMntc","Mech/ProcLoss","AbvCapProd","Other","Actual","Adjusted","MaxDmstdCap")))+
    +"MMLBS"/2.2046;+
    ENDIF
    IF(@ISMBR("Published Capacities"))
    +@round(("MMLBS"/2.2046),0)/1.08;+
    ENDIF This portion in italics returns #Missing . However, the loaded data ("MMLBS") does return data for this year.
    IF (@ISMBR("EOY_PubCap"))
    *8.75;*
    ENDIF This portion seems to be calculating as well.
    ENDFIX
    ENDFIX
    CALC ALL;
    Any additional suggestions?
    Thanks,
    C-Lo

  • Which is faster - Member formula or Calculation scripts?

    Hi,
    I have a very basic question, though I am not sure if there is a definite right or wrong answer.
    To keep the calculation scripts to a minimum, I have put all the calculations in member formula.
    Which is faster - Member formula or calculation scripts? Because, if i am not mistaken, FIX cannot be used in member formulas, so I need to resort to the use of IF, which is not index driven!
    Though in the calculation script,while aggregating members which have member formula, I have tried to FIX as many members as I can.
    What is the best way to optimize member formulas?
    I am using Hyperion Planning and Essbase 11.1.2.1.
    Thanks.

    The idea that you can't reference a member formula in a FIX is false. Here's an example:
    - Assume you have an account that has a data storage of Stored or Never Share.
    - This account is called Account_A and it has a member formula of Account_B * Account_C;.
    - You would calculate this account within a FIX (inside of a business rule) something like this:
    FIX(whatever . . . )
    "Account_A";
    ENDFIX
    If you simply place the member named followed by a semi-colon within a business rule, the business rule will execute the code in the in that member's member formula.
    Why would you want to do this instead of just putting ALL of the logic inside the business rule? Perhaps that logic gets referenced in a LOT of different business rules, and you want to centralize the code in the outline? This way, if the logic changes, you only need to update it in one location. The downside to this is that it can make debugging a bit harder. When something doesn't work, you can find yourself searching for the code a bit.
    Most of my applications end up with a mix of member formulas and business rules. I find that performance isn't the main driving force behind where I put my code. (The performance difference is usually not that significant when you're talking about stored members.) What typically drives my decision is the organization of code and future maintenance. It's more art than science.
    Hope this helps,
    - Jake

  • Need help in member formula

    Hi All,
    i need a help in memberformula
    i've two sparce dimenions as below:
    Dim1:
    A
    --B
    --C
    Dim2:
    a
    ---b
    ---c
    d
    ---e
    ---f
    i need to write member formula on C from Dim1 if member is parent level member from dim2 then its to sum up with its childen values against B from dim1.
    If member is parent level memer from dim2 ex:d
    C->d = B->e + B->f
    Thanks in advance,
    Kiran
    Edited by: kirannch on Oct 16, 2012 4:16 PM

    Hi Tim,
    Thanks for your response.
    I'm using all HFM dimensions in Essbase Except Cust2 and Cust4.
    In my outline Account, Period and Year are dense dimensions and rest are Sparse.
    i'm comparing the data at parenttot with usdtot, contr as we are using flat members.
    Below script is not updating any parent level value of USDTOT combination. i'm running the aggregation with exclude elim data before executing this calc script.
    USDTOT,Contr are sparse dimension members and Entity also sparse.
    Please can you help on the below scripts.
    SET CALCPARALLEL 3;
    SET AGGMISSG OFF;
    SET FRMLBOTTOMUP OFF;
    SET CACHE HIGH;
    SET LOCKBLOCK HIGH;
    EXCLUDE ( "Elim")
    /Calculation "USDTOT" at Parent level of Entity Dimension with sum of children same parent entity with Contr member */
    SET UPDATECALC OFF;
    FIX("ACT","FY12")
    "USDTOT"(
    IF(NOT @ISLEV("ENTITY", 0));
    "USDTOT" = @SUM(@CHILDREN(@CURRMBR("ENTITY"->"Contr")));
    ENDIF;);
    ENDFIX;
    ENDEXCLUDE;
    Thanks in advance,
    Kiran
    Edited by: kirannch on Oct 24, 2012 7:38 PM

  • Which is faster -  Member formula or Calculation script?

    Hi,
    I have a very basic question, though I am not sure if there is a definite right or wrong answer.
    To keep the calculation scripts to a minimum, I have put all the calculations in member formula.
    Which is faster - Member formula or calculation scripts? Because, if i am not mistaken, FIX cannot be used in member formulas, so I need to resort to the use of IF, which is not index driven!
    Though in the calculation script,while aggregating members which have member formula, I have tried to FIX as many members as I can.
    What is the best way to optimize member formulas?
    I am using Hyperion Planning and Essbase 11.1.2.1.
    Thanks.

    Re the mostly "free" comment -- if the block is in memory (qualification #1), and the formula is within the block (qualification #2), the the expensive bit was reading the block off of the disk and expanding it into memory. Once that is done, I typically think of the dynamic calcs as free as the amount of data being moved about is very, very, very small. That goes out the window if the formula pulls lots of blocks to value and they get cycled in and out of the cache. Then they are not free and are potentially slower. And yes, I have personally shot myself in the foot with this -- I wrote a calc that did @PRIORS against a bunch of years. It was a dream when I pulled 10 cells. And then I found out that the client had reports that pulled 5,000. Performance when right down the drain at that point. That one was 100% my fault for not forcing the client to show me what they were reporting.
    I think your reference to stored formulas being 10-15% faster than calc script formulas deals with if the Formulas are executed from within the default calc. When the default Calc is used, it precompiles the formulas and handles many two pass calculations in a single pass. Perhaps that is what you are thinking of.^^^I guess that must be it. I think I remember you talking about this technique at one of your Kscope sessions and realizing that I had never tried that approach. Isn't there something funky about not being able to turn off the default calc if a user has calc access? I sort of thing so. I typically assing a ; to the default calc so it can't do anything.
    Regards,
    Cameron Lackpour

  • Member Formula Verifies in EAS but not Planning.  Error [1200497]

    All I am trying to construct a member formula with multiple IF statements. The formula will verify and work in EAS but when we try to refresh the database from planning we receive the error 1200497. We are on version 11.1.13. The offending member formula is below. Any help with what may be wrong is appreciated.
    If (@ismbr("020 Pallet","020 Case","020 Each"))
         If ("Tier 2 Low" == #missing)
              "Tier 1 Price";
         Elseif ("Volume"->"020 Bulk Fulfillment"<"Tier 2 Low")
              "Tier 1 Price";
         Elseif ("Volume"->"020 Bulk Fulfillment"<"Tier 3 Low")
              "Tier 2 Price";
         Elseif ("Volume"->"020 Bulk Fulfillment"<"Tier 4 Low")
              "Tier 3 Price";
         Elseif ("Volume"->"020 Bulk Fulfillment"<"Tier 5 Low")
              "Tier 4 Price";
         Elseif ("Volume"->"020 Bulk Fulfillment"<"Tier 6 Low")
              "Tier 5 Price";
         Else
              "Tier 6 Price";
         Endif;
    Else
         If (@ismbr("014-003","014-004","014-034","014-035"))
              If ("Tier 2 Low" == #missing)
              "Tier 1 Price";
              Elseif ("Volume"->"014 QA"<"Tier 2 Low")
              "Tier 1 Price";
              Elseif ("Volume"->"014 QA"<"Tier 3 Low")
              "Tier 2 Price";
              Elseif ("Volume"->"014 QA"<"Tier 4 Low")
              "Tier 3 Price";
              Elseif ("Volume"->"014 QA"<"Tier 5 Low")
              "Tier 4 Price";
              Elseif ("Volume"->"014 QA"<"Tier 6 Low")
              "Tier 5 Price";
              Else
              "Tier 6 Price";
              Endif;
         Else
              If ("Tier 2 Low" == #missing)
              "Tier 1 Price";
              Elseif ("Volume"<"Tier 2 Low")
              "Tier 1 Price";
              Elseif ("Volume"<"Tier 3 Low")
              "Tier 2 Price";
              Elseif ("Volume"<"Tier 4 Low")
              "Tier 3 Price";
              Elseif ("Volume"<"Tier 5 Low")
              "Tier 4 Price";
              Elseif ("Volume"<"Tier 6 Low")
              "Tier 5 Price";
              Elseif ("Volume"<"Tier 7 Low")
              "Tier 6 Price";
              Elseif ("Volume"<"Tier 8 Low")
              "Tier 7 Price";
              Elseif ("Volume"<"Tier 9 Low")
              "Tier 8 Price";
              Elseif ("Volume"<"Tier 10 Low")
              "Tier 9 Price";
         Else
              "Tier 10 Price";
         Endif;
    Endif;
    Endif;

    Is it being applied to plan types that don't include all the members being referenced in the formula, it could be that it validates on one plan type but not another.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Attributes in member formula

    I want to run a simple member formula but fix it on only entities that have a certain attribute: "Comp".
    I have a BSO cube partitioned with an ASO cube with the following member formula:
    ================================================
    In BSO:
    IF("Received In Qty" > 0 )
    @ROUND("Received In $" / "Received In Qty",2) ;
    Else
    #missing;
    ENDIF
    In ASO:
    IIF(([Received In Qty] > 0),
    ROUND([Received In $] / [Received In Qty],2),MISSING)
    ================================================
    I need to have the member return the rolled up value of the entities that have the Comp attribute only.
    So the logic in the formula would be something like this:
    ============================================================
    In BSO:
    IF(ISMBR(WITHATTR(Comp)) AND IF("Received In Qty" > 0 )
    @ROUND("Received In $" / "Received In Qty",2) ;
    Else
    #missing;
    ENDIF
    In ASO:
    IIF(IS(WITHATTR [Comp])) AND IIF(([Received In Qty] > 0),
    ROUND([Received In $] / [Received In Qty],2),MISSING)
    =======================================================================
    The system doesn't allow me to save this due to syntax issues.
    I don't want to pursue this if returning values for this is not even support.
    Do you know how to do this. If it is a quick answer I would appreciate the help.
    Thanks.

    Wouldn't the fact you used the attribute in your retrieve affect the results of your query? I'm not sure if I am misunderstanding your requirement, but the formula is global, if you only want to see it applied to members with the attribute 'Comp', then run your report with that attribute selected.

  • Member formula error while retrieving in smartview?

    I am trying to execute this member formula
    IF (@ISMBR(@RELATIVE("SENDER_PROJECT",0)))
    IF ("Allocation Pct" <> #Missing)
    "Allocation Amount"=("Account_sub1"->"PFL_Projects"->@MEMBER(@SUBSTRING(@NAME(@CURRMBR("Project")),6))*"Allocation Pct");
    ELSE
    "Allocation Amount"=("Account_sub2"->"PFL_Projects"->@MEMBER(@SUBSTRING(@NAME(@CURRMBR("Project")),6))*(@PRIORS( SKIPMISSING, "Allocation Pct")));
    ENDIF;
    ENDIF;
    When I try to retrieve the data for this formula, I get the following error.
    Error(1200370)Error executing formula for [R_Segment Allocation Amount] (line 1): attempt to cross a null member in function [@X]
    Is there anything I can modify to not have a null member.
    Thanks!!

    Thanks! You were right I created the a sub hierarchy with the specific members and substring command was set a little wrong, I had one higher value.
    I reset it to as shown below and it worked!
    @MEMBER(@SUBSTRING(@NAME(@CURRMBR("RETL_H_PROJET")),5))

  • Issue with Member Formula written for Balance Type

    Folks,
    I am facing an issue with a member formula written for a balance type dimension,
    The code says
    IIF( IsUda([Accounts].CurrentMember, "BalanceSheet"),
    CASE
    *WHEN IS([Time].currentmember,[YearTotal]) THEN MISSING*
    WHEN IsLevel([Time].CurrentMember, 0) THEN (BALTYPE.[EndOfPeriod])
    WHEN IS([Time].currentmember,[Q1]) THEN (BALTYPE.[EndOfPeriod],Time.[MAR])
    WHEN IS([Time].currentmember,[Q2]) THEN (BALTYPE.[EndOfPeriod],Time.[JUN])
    WHEN IS([Time].currentmember,[Q3]) THEN (BALTYPE.[EndOfPeriod],Time.[SEP])
    WHEN IS([Time].currentmember,[Q4]) THEN (BALTYPE.[EndOfPeriod],Time.[DEC])
    END
    ,MISSING)
    Outline Structure for Time dimension looks like below
    +Time
    --|+YearTotal
    ------|+Q1
    ----------|+Jan
    ----------|+Feb
    ----------|+Mar
    The highlighted Part of the code works good for all the Measures which is With the UDA tag BalanceSheet, Except if the Measure with BalanceSheet UDA is a Parent Member.
    Parent Level Measures are populated with Data(populating Dec Data) instead of showing #MISSING.
    Any help on this issue will be appreciated.
    Thanks
    Sathish

    Hello Gurus,
    I raised an SR with Oracle support and they have replied by saying that, In EPM 11.1.2.4, the IE11 is only supported for interactive reporting and we will have to use IE 10 & 9 for workspace.
    Yes. It works fine in IE 10 & 9.
    Thanks,
    Siva

  • Essbase 9.3 BSO member formula problem

    Hi All,
    I'm working on Essbase 9.3.1.
    We have an issue where a member formula, should use double quotations (") for a few members.
    In the dimension tables these quotes are not present in the formula, but they come up in the outline of the cube.
    All dimension builds are done through AIS because of which I'm in a fix.
    I've only worked on Essbase 7 and I'm not aware if there are any settings that I could look at in AIS to see if these quotes are appended while the dimensions are being built.
    The reason why this is an iss is that the test outline has the quotes, but the production outline does not have them although its the same flat file that is used for both.
    Please help out here.
    Thanks in Advance.
    Regards,
    Anindyo

    Obviously this won't resolve your entire problem, but just to answer the first question you can definitely use e.g. @GENMBRS successfully in the partition definitions for a single BSO cube over multiple ASO cubes in 9.3.1.

  • Problem working on member formulas in ASO cube

    Hi
    I was asked to convert a planning application BSO cubes into a single ASO cube.I have managed to convert one BSO Cube into ASO through EAS console and added the members in the other BSO cube throgh rulesfile.
    Now i have to write the member formulas for the level0 members of Account dimension.These are very simple formulas like
    if(@ISMBR("New_Seats"))
    "Assets Value"="Total Asset Cost";
    else
    "Assets Value"="Asset_Value";
    endif;
    and
    "Empty_Seats"=(("New Seat Additions"+"Available_Seats")-"Required_Seats");
    This is the first time i am working on ASO.I am getting this error while writing these formulas
    "Error(1260052) syntax error in input mdx query on line 1 at token '=' Empty_Seats..."
    Help me in writing these formulas and also in selecting proper member properties.

    The hierarchy is like
    Account(gen1)
    -> Statistical_Account(gen2)
    ->New Seat Additions(gen3)
    I have tried tthis and the formula is verified successfully
    *([Statistical_Account].[New Seat Additions]+[Statistical_Account].[Available_Seats])-([Statistical_Account].[Required_Seats])*
    if i use *([New Seat Additions]+[Available_Seats])-[Required_Seats]* it is not veryfying throwing some syntax error
    Thanks

  • Problem with member formulas and allocation

    Hi guys,
    I am experiencing a problem I am not currently able to solve. I'm building a planning application in which
    volumes can be inputed in different units of measure (5 are currently available). For example a user can input in liter or KG, and the
    system converts this data in all the different units of measure available, executing a script logic after
    the input (for every bas member is also stored a conversion factor, which is used  by the logic for conversion).
    Two are the major issues of this approach:
    1) storing 5 different volumes for every SKU is consuming in term of disk and DB space;
    2) script logic must be executed every time the user sends data and in some cases this could be time-consuming.
    The solution I'm trying is to use member formulas in order to calculate different units of measure, storing
    only one of these. However, this way lead to another problem: when I try to input data with a top-down approach, using BPC
    ALLOCATION ENGINE, I cannot use the correct unit of measure as a driver for the spread.
    For example, if I input volumes is KG, and the unit of measure stored is only liter, I cannot use nor KG as a driver (because is not stored,
    but only a member formula) neither liter, because the spread using this driver would lead to a wrong result.
    What I would like to do is to give the user the possibility to input in the desired unit of measure at an aggregated level and spread data
    using the existing mix, which must be volumes with the same unit of measure used for input.
    Does anyone has an idea that could help me?
    Regards
    Edited by: utenza pubblica Public on Oct 23, 2009 4:48 AM

    hi
    i found a solution for the Problem in another Forum
    http://businessintelligence.ittoolbox.com/groups/technical-functional/hyperion-admin-l/dynamic-calc-formulas-not-refreshed-1719379?cv=expanded
    The suggestion is
    1. change the Member from Dynamic Calc to Store
    2. Refresh (After these Step the Formulas where still out of sync)
    3. change the Member from Store to Dynamic Calc
    4. Refresh
    After these Steps the Formulas are in sync again.
    Kevin Kraft
    Edited by: Kevin Kraft on Mar 25, 2009 12:33 PM

  • Execution order: Business Rule vs. Dynamic Member Formula

    Hi,
    I have a problem with a calc rule that calculate percentage of a list of account in comparison with other account (Ce10) as below
    FIX (list of account restricted here, @IDescendants(YearTotal),....)
    "Percentage"
    (IF (@ISUDA(Account,"Ce10"))
    "Percentage" = "NA CE"/"NA CE"->"CE10"; //Here the percentage member and "NA CE" member in the same dimension
    ENDIF)
    ENDFIX
    When I run the rule, the result is ok with the Months. But in the Quater and YearTotal, it's automatically aggregate to a wrong result as the YearTotal is dynamic calc (e.g: Jan: 10%; Feb: 10%; Mar: 10% => Q1: 30%). So I thought it because the Rule is executed first (Q1=10%) but after that, the dynamic aggregation of Year is executed so Q1 is aggregated as 30%.
    So how to fix Q1 = 10% as expected result. I did study on two pass calculation but it seem can not apply on this isssue. I searched for "back calculation" also but I still didn't find any solution for this.
    Please help me on this.
    Thanks.

    Thanks JM for quick responding. The problem here is "Percentage" is not a account's member.
    To make the question more clearly, I'll explain the rule:
    There's a list of account A: A1, A2,...,An
    and a list of account B: Ce10, Ce20, ..., Ce90
    There is a mapping n-1 between these two lists. For example, A1, A2 is mapped to Ce10, A3 to A5 is mapped to Ce20 and so on. I do it by assigning UDA (e.g: A1 {Ce10}, A2 {Ce10}...)
    And the rule is used to calculate percentage of accounts of list A in comparison with equivalent account in list B. So the percentage can not be account member. It's the reason why I can not use member formula and two pass calc here.
    Regards,
    Huy Van
    Edited by: Huyvtq on Jan 9, 2013 9:50 PM

  • 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Converting Member Formulas to MDX

    Hi Experts!
    I'm converting member formulas to MDX for an ASO cube I created and I'm having trouble with the ones that use @MDSHIFT. I'm new to MDX and trying to learn as I go. One of the formulas I'm struggling with is:
    IF( @ISMBR("Budget"))
    (("Operating Results"-
    (@MDSHIFT("Operating Results", -1, "Years", , 10,"Budget",)+
    "Reclassification Operating Results"))/
    (@MDSHIFT("Operating Results", -1, "Years", , 10,"Budget",)+
    "Reclassification Operating Results"))*100;
    ELSEIF( @ISMBR("Business Plan"))
    (("Operating Results"-
    (@MDSHIFT("Operating Results", -1, "Years", , -4,"Business Plan",)+
    "Reclassification Operating Results"))/
    (@MDSHIFT("Operating Results", -1, "Years", , -4,"Business Plan",)+
    "Reclassification Operating Results"))*100;
    ELSE
    (("Operating Results"-
    (@MDSHIFT("Operating Results", -1, "Years",)+
    "Reclassification Operating Results"))/
    (@MDSHIFT("Operating Results", -1, "Years",)+
    "Reclassification Operating Results"))*100;
    ENDIF;
    This is for a change year over year % member. Any help would be much appreciated! Thanks!
    -Cheers

    In all honesty - it looks like you should not just 'convert it.' I dont see any real need to use MDSHIFT here. I would just use PrevMember function for years, while hardcoding the scenario into the tuple.

Maybe you are looking for

  • Regarding free goods cutomization

    CAN YOU CONFIGURE TWO DIFF FREE GOODS ITEMS FOR ONE SINGLE ITEM? EXAMPLE- ON PURCHASING OF ITEM A U WANTS TO GIVE ITEM B & C FREE . IS IT POSSIBLE? HOW ? this is a question asked in HCL last week? Explain how we can configure and i think this is a po

  • How can i access pictures in iphoto library

    I am unable to access my iphoto database - the icon is shaded but i cannot click it

  • Cannot connect to database without giving  @databasename in the sqlplus com

    Hi i need to give sqlplus username/password@databasename to connect to the database I have given the correct ORACLE_SID if i give only sqlplus username/password then i recieve this error ERROR: ORA-01034: ORACLE not available ORA-27121: unable to det

  • SAP Service named SAP SID _ Instance Number is missing in services.msc

    Hi, SAP Service named SAP<SID>_<Instance Number> is missing in services.msc Example : SID = DM0 Instance Number = 01 SAP Service Name = SAPDM0_01 Please help me to resolve the issue. Thanks in Advance. Warm Regards, Sathya

  • 11g FormsGraph.jar

    Hi, Does anyone know if there is a version of the 11g ForsGraph.jar (from the demos) with the BI graph demo patch in? We want to use the SET_SERIES_COLOR property that was added to the BI Graph demo patch but that hasn't been included in the 11g demo