Converting BSO Formula to ASO Formula

ASO Formula
IIF(IS(Products.CurrentMember,[No_Product]),
[Payroll Amount]+[Payroll Amount]*([Labor Tax],[No_Entity],
[No_Company],[No_product]),Missing)
BSO Formula
/*IF(@ISMBR("No_Product"))
"Payroll Amount"+ ("Payroll Amount"* "Labor Tax"->"No_Entity"-
"No_Company"->"No_Product");ENDIF */
I had the formula modified and it did work but I have another problem
now. If you see the attached BSO formula, then the formula says do not
do anything if the member is not "No_Product".
How can I do that in ASO. if you see the ASO formula, then it says that if
the if the member is not "No_Product" then put Missing. if I don't use this
setting, then the formula does not work but actually we don't want to do
anything if the member is not "No_product".Please suggest a
workaround for this.

Hi,
If your concern is to avoid the usage of 'MISSING',in the case if its not a "No_Product",then , you rather use the
CASE in your ASO formula ,rather than IIF.
ex:
case
when(IS([Products].CurrentMember, [No_Product]) )
then [Payroll Amount]+[Payroll Amount]*([Labor Tax],[No_Entity],
[No_Company],[No_product])
end
Do take care of the syntax.
Hope this helps you.
Sandeep Reddy Enti
HCC

Similar Messages

  • Converting BSO formula to ASO format

    Does anyone know how to convert the following to work in ASO?Rolling 12 Month Average Rolling 12 Month Average = (@SUMRANGE (CY, @CURRMBRRANGE(Year, LEV, 0, , 0)) + @SUMRANGE (PY, @CURRMBRRANGE(Year, LEV, 0, 1, 12))) / 12;Thanks

    Hi,
    If your concern is to avoid the usage of 'MISSING',in the case if its not a "No_Product",then , you rather use the
    CASE in your ASO formula ,rather than IIF.
    ex:
    case
    when(IS([Products].CurrentMember, [No_Product]) )
    then [Payroll Amount]+[Payroll Amount]*([Labor Tax],[No_Entity],
    [No_Company],[No_product])
    end
    Do take care of the syntax.
    Hope this helps you.
    Sandeep Reddy Enti
    HCC

  • Bso formula to aso

    BSo formula
    IF(@ISMBR(@IDESCENDANTS ("Health Companies")))
    "H42000.Calc" = (("H40900"->"NG_Opt"+"H41000"->"NG_Opt"
    +"H41100"->"NG_Opt"+"H41200"->"NG_Opt"+"H41300"->"NG_Opt"
    +"H41400"->"NG_Opt"+"H41700"->"NG_Opt")*
    ("NG_11Adj"->"PLAT_00"->"BSEG_00"->"HMHS_00000"->"PROD_000"->"MKT_0000"->"DEPT_00000"->"FAC_00000"->"LAE Rate"));
    ASO formula
    CASE when is (Company.CurrentMember, [Health companies]) Then
    [H42000.calc] = (([H40900],NG_opt + [H41000],NG_opt + [H41100],NG_opt + [H41200],NG_opt + [H41300],NG_opt
    +[H41400],NG_opt + [41700],NG_opt)*
    (NG_Adj.currentmember, Plat_00.currentmember, BSEG_00.currentmember,HMHS_00000.currentmember,
    PROD_000.currentmember, MKT_0000.currentmember,DEPT_00000.currentmember,FAC_00000.currentmember,
    LAERate )
    End
    i am trying to convert bso formula into aso .
    i am getting error message
    Error(1260052) syntax error in input mdx query on line 2 at token '=' NG_21Adj
    i am writing member formula for NG_21Adj and it looks like it is not taking '=' and '+' sign
    can anyone help me with this
    thank you

    Oh (of course). In ASO member formula the calc is for that member, so the equation is not necessary.
    But I'm confused because you said this member formula was on a member called NG_21Adj
    So where does H42000.calc come from?
    Below should work syntactically, but now I am not clear what your objective is. Which member are you trying to calculate?
    CASE WHEN IsAncestor([Health Companies], [Company].CurrentMember, INCLUDEMEMBER) THEN
    (([H40900], [NG_opt]) + ([H41000], [NG_opt]) + ([H41100], [NG_opt]) + ([H41200], [NG_opt]) + ([H41300], [NG_opt]) + ([H41400], [NG_opt]) + ([41700], [NG_opt])) *
    ([NG_Adj], [Plat_00], [BSEG_00], [HMHS_00000], [PROD_000], [MKT_0000], [DEPT_00000], [FAC_00000], [LAERate]) ENDor
    CASE WHEN IsAncestor([Health Companies], [Company].CurrentMember, INCLUDEMEMBER) THEN
    SUM(CROSSJOIN({[H40900], [H41000], [H41100], [H41200], [H41300], [H41400], [41700]}, {[NG_opt]})) * ([NG_Adj], [Plat_00], [BSEG_00], [HMHS_00000], [PROD_000], [MKT_0000], [DEPT_00000], [FAC_00000], [LAERate]) END

  • How to convert this BSO formulas into ASO formulas ?

    I need some help to convert this BSO formulas into ASO formulas:
    BSO formulas:
    12*("Head Count"->"Terminated"/((@PRIOR("Head Count"-> "Total Active & Leave")+"Head Count"->"Total Active & Leave")/2));
    "Head Count" is a member of the Account dimension
    "Terminated" and "Total Active & Leave" are members of the Status dimension
    Existing Active
    New Hire
    Active
    MAT
    STD
    OTH
    Leave
    Total Active & Leave
    Voluntary
    Involuntary
    Death
    Retirement
    End of Temp Assignment
    Terminated
    LTD
    Total Status
    Promotion Within Level
    Promotion to Higher Level
    Promotion
    No Total Status
    All Status
    Status (Dimension)
    In ASO, the formulas will be ??
    Thanks

    Try
    CASE WHEN IS([Period].CurrentMember, [Jan]) THEN
    12 * (([Head Count], [Terminated] ) /
    ((( [Head Count], [Total Active & Leave], [Dec], [Year].CurrentMember.lag(1) ) +
    ([Head Count], [Total Active & Leave])) / 2))
    ELSE
    12 * (([Head Count], [Terminated] ) /
    ((( [Head Count], [Total Active & Leave], [Time].CurrentMember.lag(1) ) +
    ([Head Count], [Total Active & Leave])) / 2))
    ENDTake note this assumes your Year dimension is in descending order
    Year
    --2007
    --2008
    --2009
    If Year is in Ascending order
    Year
    --2009
    --2008
    --2007
    Then you need to change
    [Year].CurrentMember.lag(1) to
    [Year].CurrentMember.lead(1)

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

  • What is the use of 'Convert to Formula' in BEx Report?

    Helo BI Gurus,
    After refreshing the query in BI, when I right click on the query report, I am getting an option 'Convert to Formula'. Can you please tell me the use of this option, and how we can use this in our report and what the result we will be getting?

    Hi Mathew,
        The Convert to Formula in Excel Allows you to Convert you Embedded Bex Query into API Calls. This enables you to Better Format the Excel Output by allowing you to move your Cells Around.
    This helps because when you refresh you Query all the Changes you make will be maintained.
    [More Info on Working with Formula|http://help.sap.com/saphelp_nw70/helpdata/EN/d3/015369f54f4a0ca19b28c1b45acf00/content.htm]
    Hope this Helps
    Datta.

  • BEx Analyzer - Convert to formula - Dynamics of a hierarchy

    Hi BI-Experts,
    I have a question regarding the BEx Analyzer built in functionality "convert to formula".
    Once I have done this, the report is more ore less static, establishing a fixed link between the cell and the query result.
    (BExGetData(u201CDATA_PROVIDER_1u201D,F8,E10)
    Let's say I had included a G/L account hierarchy and converted the analysis grid item to formulas: I will lose drill down functionality of the hierarchy, drag & drop etc.. I can live with that.
    But what happens, if I update the G/L hierarchy in BI by uploading from ECC and someone added an additional text node and 3 new G/L accounts. They won't appear in my "convert to formula" report, even when refreshing, right?
    Does anyone know a work-around for a highly formatted report in BEx Analyzer which keeps the layout when refreshed (only way I know is with "convert to formula") AND using hierarchies which should be able being updated?
    Every hint is much appreciated!
    Kind Regards,
    Steffen Lange

    >
    Steffen Lange wrote:
    >
    > But what happens, if I update the G/L hierarchy in BI by uploading from ECC and someone added an additional text node and 3 new G/L accounts. They won't appear in my "convert to formula" report, even when refreshing, right?
    >
    > Kind Regards,
    > Steffen Lange
    Thats right, as now the key figure values are basic excel formulas though they refer your dataprovider.
    The only option is to update the value of the hierarchy (new nodes etc) in the workbook too, you can add a new row and insert the new hierarchy value it should pick it up and key figures populated accordingly (you may need to put right row column value for your key figure calculation formula).
    Edited by: Praveen G on Aug 12, 2009 3:54 PM

  • What is the use of 'Convert to Formula' option available BEx Query Rpt?

    After refreshing the query in BI, when I right click on the query report, I am getting an option 'Convert to Formula'. Can you please tell me the use of this option, and how we can use this in our report.
    1) What does "convert to formula" do?
    2) After I click on "converting to formula" in the report , I am unable to paste the spreadsheet from i finance into excel. Below msg appears. What settings do I need to change?
    " Microsoft Office Excel cannot paste the data"

    Can anyone help me to get answers for the below questions

  • Use of Convert to Formula Option

    Hi All
    Where do we use Convert to formula option and give me some scenarios.
    Regards
    Naga

    Go through this .
    http://help.sap.com/saphelp_nw04s/helpdata/en/d3/015369f54f4a0ca19b28c1b45acf00/content.htm
    -Vijay

  • Convert to formula

    Hello all
    Ib bex Analyzer, there is the option of "Convert to Formula". what is the main options and advanteges of this appliction?
    B.R
    Yuval

    Hi,
    Im not that pretty sure about the usage of this.
    But what I have observed is that:
    1) 'Convert to Formula' converts your input ready layouts into a normal Excel layout.
    2)The input readiness is lost once you convert it into formula.
    3)All the compounded characteristcs are removed from the layout.
    4) If a Key Figures of type % is initially displayed as 70%, then after converting it to Formula, it displays as 70.
    For Eg: If keyfigures for Amounts were displayed as 200INR, $100 initially, then once you click on Convert to Formula, the KFs are displayed now as 200,100 and you can do the normal Excel functionalities now like Sum, Min, Max, Average, Count ,etc.
    The result rows will be displayed now irrespective of the currencies / units in rows. ie: 200, 100 , the sum is displayed as 300.
    Best Rgds
    Shyam

  • Convert to formula gives sometimes #NV

    Hi,
    I'm having some troubles with the option "Convert to formula" in a BEx Analyzer.
    I only have 1 key figures (no formula, just directly from the cube) in my query.
    If I run the query I have see for example:
    Vendor -
    Week -
    Quantity
    AAAA -
    01.2010 -
    20.000 KG
    BBBB  -
         47.2009 -
      17.000 KG
    BBBB           -
         49.2009  -
      15.000 KG
    BBBB             -
       50.2009  -
      12.000 KG
    BBBB           -
         01.2010  -
       5.000 KG
    When I choose "convert to formula", I get the following result:
    Vendor -
    Week -
    Quantity
    AAAA -
    01.2010 -
    20.000 KG
    BBBB  -
         47.2009 -
      #NV
    BBBB           -
         49.2009  -
      #NV
    BBBB             -
       50.2009  -
      #NV
    BBBB           -
         01.2010  -
       0
    I'm having BI Add-on 7.10 SP 10 Patch 1 and SAP GUI 7.10 SP 15.
    Does anyone give me an explanation why this happens?
    Thanks a lot!
    Edited by: Anouk Vanderstraeten on Dec 29, 2009 11:38 AM

    I review the note and copied the dll  to frontend pc.In some queries convert to formula runs but for some of the queries it does not run.
    I tested with two queries.
    After choosing convert to formula and copy cells to another cells just like in the demo below , I changed the characteristic for the copied cell. But keyfigure values  are  not changed. It seems demo https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0c67f05-f062-2910-61b7-ae5a28809e1a  is not working.
    Do you have any idea?
    Thanks..

  • NW2004s Analyzer: "Convert to formula" -- #NV

    Hello
    After running a query in the new Analyzer of NW2004s, I have selected the menu "Convert to formula" --> the system shows me only #NV in the key figures.
    Has anybody experienced this issue?
    Any help appreciated
    Thanks
    Ioan

    I review the note and copied the dll  to frontend pc.In some queries convert to formula runs but for some of the queries it does not run.
    I tested with two queries.
    After choosing convert to formula and copy cells to another cells just like in the demo below , I changed the characteristic for the copied cell. But keyfigure values  are  not changed. It seems demo https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0c67f05-f062-2910-61b7-ae5a28809e1a  is not working.
    Do you have any idea?
    Thanks..

  • BI 7.0 Bex Analyzer Workbook - Convert to formula function features

    Hello,
    when using the convert to formula function in a BI 7.0 Bex Analyzer Workbook (WB)  the result area becomes completely static.
    1.) Is there a possibility to add drill downs / across into an already converted to formula WB?
    2.) I inserted drop down boxes to allow F4 like selections, however those are pointless if several characteristics are being used i.e. the keyfigure results get blanked out. Is there another way to do this at all?
    3.) Could someone provide me with a real live example / whitepaper how the convert to formula function can be used?
    Many thanks for any feedback on this.
    Regards
    Christian

    >
    ChrisAC wrote:
    >
    > 3.) Could someone provide me with a real live example / whitepaper how the convert to formula function can be used?
    >
    > Many thanks for any feedback on this.
    >
    > Regards
    >
    > Christian
    It does become static and all the workbook gets all the excel property.
    The key figures are now calulated on the basis of your data provider from the server as a formula in each cell..
    I had used to populate my key figure only for the required values of a characteristic.

  • Convert to Formula using input ready queries

    Hi,
    Has anyone used converting to formula for input ready queries?  When I use this for some reason all the values disappear in the rows and columns (including characteristic and key figure values).  I would be interested to know if anyone has used this approach successfully.
    Many thanks,

    Also I want to convert this update routine 3.5 to work in 7
    fill the internal table "MONITOR", to make monitor entries
      IF COMM_STRUCTURE-costelmnt+2(1) = '7'.
        IF COMM_STRUCTURE-costelmnt+2(3) BETWEEN '700' AND '774'.
          RESULT = '70'.
        ELSEIF COMM_STRUCTURE-costelmnt+2(3) BETWEEN '775' AND '789'.
          RESULT = '75'.
        ELSEIF COMM_STRUCTURE-costelmnt+2(3) BETWEEN '790' AND '799'.
          RESULT = '79'.
        ENDIF.
      ELSE.
        CASE COMM_STRUCTURE-costelmnt+2(1).
          WHEN '1'.
            RESULT = '10'.
          WHEN '2'.
            RESULT = '20'.
          WHEN '3'.
            RESULT = '30'.
          WHEN '4'.
            RESULT = '40'.
          WHEN '5'.
            RESULT = '50'.
          WHEN '6'.
            RESULT = '60'.
          WHEN '8'.
            RESULT = '80'.
          WHEN OTHERS.
            RESULT = '00'.
        ENDCASE.
      ENDIF.
    if the returncode is not equal zero, the result will not be updated
      RETURNCODE = 0.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    The source is KSTAR(costelement)

  • Restrictions for Queries using Convert to Formula

    Hi all,
    When I want to <b>use the "Convert to Formula" Function in a query are there any restrictions</b>? I.e. are there any <b>restrictions in the way the underlying query needs to be built to be able to use this function properly</b>?
    Do you know any documentation referring to this?
    Thanks
    Christian
    Message was edited by: Christian Tauber

    Prakash,
    Thanks for the response.  You are right about the cell editor and the need for two structures.  Also you are right about the "convert formula" option in BEX runtime and one structure.  However, I thought that in order for you to be able to use the refernce in additional calculations locally in BEX workbook two structures are required for the reference to be known.  That is the experience that we had while working on a scenario here at our client site.
    Regards,
    Farzad

Maybe you are looking for

  • Allow standard users to save form data

    Apologies if this has been asked before, I did a search but didn't find anything. My client wants me to create a set of PDF forms that their sales team can use.  The crucial features are: Create a PDF with editable form fields All font, styles and la

  • Ore.doEval funciton returning the error

    Hi, I have just started leaning Oracle R enterprise. I have installed Database 11.2.0.3 and R in Oracle Linux guest machine. and connecting from windows8 host machine. I am able successfully configure the client and server and able to connect to data

  • Urgent - routine help needed

    Hi guys, I have to populate communication structure with extra records after master data look up in update routines , how do i do that, which internal table i have to modify where do i do that? Thanks points will be assigned

  • How to add network interface using ioctl ?

    I want to do what ifconfig does, but by using ioctls. To get or set network interface address, I found some information in the if_tcp(7P) man page. I would like to know more about how to go about it. Do I have to open socket or the pseudo ethernet dr

  • Markers Not Importing from Prelude CS6 to CC

    Hello. I'm using Prelude CS6 and sending to files to someone using Prelude CC. The markers are not importing when he opens the files I've sent. We're only using Subclip markers. Neither of us are particularly familiar with Prelude and I hope it's a s