Formula Worksho - Formula

Post Author: Gerd
CA Forum: General
Hello,
i need the output positions (on Page) of the last record of a group.
It is possible the get the output coordinates (Pager x and y-Position) of this record.
Or it is possible to get the remaining space available on the report page with a formula ?
The formula should look like this. (e.g.)
if OnLastRecord and
ReportFieldName.OutputPositionY  > MyLimit then
..... [do something]
or is this there a property where i can get the last output position
thanks

G,
You have found the discussion area for the Mac version of iWork. The iOS discussion is here:
https://discussions.apple.com/message/17323871#17323871
I'll bet that someone in that iOS discussion area can help you.
Jerry

Similar Messages

  • Difference between New Formula and Formula Variable

    Can any body explain what is the difference between  New Formula and Formula Variable.
    Thanks

    Hi,
    Formula:http://help.sap.com/saphelp_nw04/helpdata/en/d3/8057f830a911d4b2be0050dadfb23f/frameset.htm
    Formula Variable:If you want use variables in the formulas of a form, you need to use formula variables. You can use formula variables only in form reports, and must define them in the form itself. They can be replaced in the same ways as text variables when you execute the report.
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/8db0b1555411d189660000e829fbbd/frameset.htm
    Bye
    Dinesh

  • Microsoft Excel functions, formulas, and formula integration

    hi friends,
    what is the use of this function Microsoft Excel functions, formulas, and formula integration. in bi 7.0 , i can make trending reports with teaxt variables and make formulas with formula ?
    Thanking u
    suneel.

    Hi Suneel,
    There has been a great thrust by the business users to make the BW reports more friendly with the execl functions, so that they can use it better to perform ad hoc calculations that may be specific to them, and not all the users, so it doesn't have to be built into the query.
    Hope this helps...

  • Microsoft Excel functions, formulas, and formula integration.  ( bi 7.0)

    hi friends,
    what is the use of this function Microsoft Excel functions, formulas, and formula integration. in bi 7.0 , i can make trending reports with teaxt variables and make formulas with formula ?
    Thanking u
    suneel.

    Hi Suneel,
    There has been a great thrust by the business users to make the BW reports more friendly with the execl functions, so that they can use it better to perform ad hoc calculations that may be specific to them, and not all the users, so it doesn't have to be built into the query.
    Hope this helps...

  • Numbers '09 stalls, slows down, shows incorrect formulas in Formula List

    I developed a relatively simple spreadsheet for help in calculating federal and state estimated income payments and the totals that will be due for the year. I enter data thru the year as it becomes known.
    It has a main table that shows information totals from 6 other auxiliary tables where I track interest income and payments, income calculations, withholding, payments made, state and local taxes, etc. Obviously, every data entry I make on these auxiliary tables updates the main table.
    The main table includes a number of rows/cells that sum other rows/cells, or reference the auxiliary tables, or calculate taxes due based on the taxable income to date.
    It has worked fine until today, when suddenly one table began to slow down, taking as long as five to ten seconds to update cells or navigate, and now the main table does the same. The other tables act normally.
    I have been over and over the formulas trying see if they are correct (a slow process, as selecting a cell can take 10 seconds). I note that when I use the Formula List to analyze the problem auxiliary table, some of the formulas are different from what the cell says when I highlight it. For example, the E4 cell says "C4-D4", which is what I want, and the formula list says "C4-B4".
    I guess I could dump this table and start over fresh with a blank table but for future reference I would really like to know where I went wrong. Can't find anything in the Help function but maybe I am looking in the wrong places. Can one of you experts kindly help me out of my misery?

    Venetian Seeker wrote:
    Excel didn't work like this.
    VS,
    Yes, Excel works like this too, if you sort the entire table. You may not have recognized it, but it does. If you sort only one column, something you can do in Excel but not in Numbers, you may not get an error, but you have certainly done some serious mashing of your data.
    Whenever you sort, or otherwise move things around in a table, Numbers and Excel track the movements and adjust the formulas. This is normally what you would want.
    In the rare case when you want to reference a particular cell, regardless if that cell's content is relocated, you should use an addressing method that resists the effects of sorting and moving. That would normally involve the INDIRECT and ADDRESS functions. A running balance calculation is one of those rare cases.
    Using your example "D24 =D23+(B24-C24) i.e previous balance(cell D23) +cash in (B24)-cash out(C24) on date A24", we can instead write the following:
    D24 =INDIRECT(ADDRESS(ROW()-1, COLUMN())) +B-C
    You can use this same formula in your entire column D.
    Regards,
    Jerry

  • 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

  • FORMULA=USING/TOTAL IS NOT WORKING IN BPC NW.

    Hi,
       I am doing Migration project from  BPC MS to BPC NW 7.5. In this I am not able test the Allocation formula.
    FORMULA=USING/TOTAL.
    Here in this  Total is not working. The final result same as USING combinational value. The formula is working for USING combination like FORMULA=USING/100,USING*100....,
    WHERE=WHAT* USING/TOTAL.Let me know is there any solution for this.Could you please update me on this.
    Find the below sample code for the Allocation Logic.
    LOGIC:
    *RUNALLOCATION
    *DIM P_ACCT WHAT=CE0004010; WHERE=CE0004020; USING=CE0004030; TOTAL=CE0004210
    *DIM CATEGORY WHAT=PLAN; WHERE=PLAN; USING=PLAN; TOTAL=PLAN
    *DIM P_CC WHAT=India; WHERE=India; USING=India; TOTAL=India
    *DIM P_DATASRC WHAT=UPLOAD; WHERE=UPLOAD; USING=UPLOAD; TOTAL=UPLOAD
    *DIM P_ACTIVITY WHAT=Repair; WHERE=Repair; USING=Repair; TOTAL=Repair
    *DIM RPTCURRENCY WHAT=LC; WHERE=LC; USING=V; TOTAL=LC
    *DIM TIME WHAT=2009.JAN; WHERE=2009.APR; USING=2009.MAR; TOTAL=2009.MAY
    After exccuting this formula and by observing the Formula Log one record write back message displayed.
    Thanks and Regards,
    VC kRISHNA.

    Hi,
       Please find the below Allocation logic. Here in this case also getting the same out put. The whare combinational value same as using. This Allocation Logic and the previous one is working with out fail in the MS version. Let me know is this may be a product issue. Could you please update me in this.
    Logic:
    *RUNALLOCATION                                   
    *FACTOR=USING/TOTAL
    *DIM PROJECT WHAT=BAS(CorpBudg_Project); WHERE=[SCTSQ1]="Y"; USING=<<<; TOTAL=No_PPC                                        
    *DIM ENTITY WHAT=PC10102106; WHERE=NO_PCENTER; Using=<<<; TOTAL=NO_PCENTER                                        
    *DIM ACCOUNT WHAT=BAS(Corp_Budg_Accnts); WHERE=880014; USING=<<<; TOTAL=<<<                                                  
    *DIM DATASRC WHAT=INPUT; WHERE=<<<;USING=<<<; TOTAL=<<<
    *DIM RPTCURRENCY WHAT=LC; WHERE=<<<; USING=<<<; TOTAL=<<<          
    *DIM CLIENT_GROUP WHAT=1010; WHERE=<<<; USING=<<<; TOTAL=<<<     
    *DIM CATEGORY WHAT=BUDGET; WHERE=<<<; USING=<<<; TOTAL=<<<     
    *DIM INTCO WHAT=Non_InterCo; WHERE=<<<; USING=<<<; TOTAL=Alloc_PC10102106                                   
    *DIM TIME WHAT=BAS(2011.TOTAL); WHERE=<<<; USING=2011.BSS; TOTAL=<<<
    *ENDALLOCATION
    *COMMIT
    Thanks and Regards,
    Krishna.

  • Problem with formula variable

    HI,
    I am facing problem with formula variable with replacement path. my requirement is system date - posting date.
    here i created 2 formula variable one is system date. second formula vaiable with replacement path is posting date. second formula vaiable not populating data. please help on that.
    regards,
    kris

    Hi,
    here is some idea.. here i have taken expample dates 1)notification creation date and 2) notification completion.
    1st:in the query designer at key figure coloumn create
    one local formula.in that local formula create formula
    variable with replacement path.in that take reference character
    notification completion.in the next tab take replace ment
    as key.in the last tab select "date".
    2nd: do the same thing for the notification creation date.
    3 rd : create 3 rd local formula and do the substraction
    for the first 2 local formulas.
    4th:create codition on the difference which u have find with
    on that condition u can create one user entry varibale.
    5th:while u defining the query put these 2 dates,i,e
    notification completion, notification creation date in the character block.
    If not system will ignore the formula variable which u created in
    above steps.
    Hope this wil help u.
    regards....KP

  • How to interpret a formula stored in a transparent table

    Dear all,
    I have filled in a specific transparent table with some formula. I would like to read the table, find the formula and take the result of this formula in a variable
    In my table :
    Country, formula 1, formula 2
    FR, P + 1 ( 1 / 80 ), R * 1 ( 1 - 30 )
    In my program,
    I read the table with the country as key, and I would like, first to replace the P and R by a value in the program, and I would like  to interpret the formula and put the result of this in a variable
    if Country = FR
    replace P by w_price in formula1
    replace R by w_tva in formula2
    w_result1 = formula1
    w_result2 = formula2
    I don't know how to do interpret these 2 statement like :
    w_result1 = w_price + 11 ( 1 / 80 )
    w_result2 = w_tva  * 1 ( 1 - 30 )
    I tought to use the field symbol and assign but w/o success for the moment
    Can anybody help me ? it is very important.
    Thanks
    Kind regards
    Véronique

    Hello,
    I think my questions was not so clear.
    In fact, the formula is in a field in a transparent table
    for example : my_table has a field my_formula. In this field I have written:   P + 1 ( 1 / 80 )
    I need to interpret the content of the field my_formula to solve the formula and put the result in a variable.
    I don't want to write the formula directly in the program
    thanks
    Véronique

  • Error while uploading Fast Formula using ldt Files.

    Dear All,
    We need to migrate Fast Formula to different instances.
    Also we need to have version control also.
    For that we created custom lct file.
    We were able to download the ldt files correctly but found that while uplaoding fast formula context were getting truncated at the end.
    Any inputs to resolve the above issue will he very helpful.
    Also we need to migrate Payroll Configuration
    1.Element Description
    2.Fast Formula
    3.Formula Function
    4.Formula Results
    5.Element links
    Any input will be very helpful

    user5733015 wrote:
    Do we need any license for I-set up?No -- https://forums.oracle.com/forums/search.jspa?threadID=&q=iSetup+AND+License&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • SAP REFX – Usage of (RECN - Condition Tab ) Formula : E1 – Percentage Share in a condition.

    Dear Experts,
    I would like have a clarification on the usage of Formula: E1 – (Percentage Share in a condition) for a contract type in Refx  - contract ( In conditions Tab ).
    Lets take the scenario as below for example :
    Whenever I am adding a condition    ZREN - Basic Rent : XXXXXX  Rs/ month.
    System has to pick a second condition ( Over head charges ) as default and it should be calculated 20% of the amount as overheads on BASIC RENT amount.
    This 20% should come as default ( Because user cant change this % for anything while creation of contract).
    So I have adopted the config changes as below.
    SPRO - Flexible Real Estate Management (RE-FX) -- Conditions and Flows -- Default Conditions -- Define Default Conditions – selected my condition group – added new entries- assigned a new condition type as my over heads –
    Unit price as – 20 %
    Formula: E1
    Formula Parameter: selected - BASIC RENT condition ( ZREN )
    Is there any other config to be done ( Like adding the Derivation rules - if need Pls Clarify) to fulfill my requirement, B cas after  doing above config my overhead charges condition is not flowing by default, even after manual insertion of Over head charges condition its not taking 20 % as default.( Its asking to enter manually).
    Kindly advise to get the same.
    Regards,
    Subbarao.Narne

    Hi Mr. Narnei,
    If both the conditions are added manually, the condition with E1 as the calculation formula, say ZE1- Perc Share can automatically pick up the value from ZREN - Basic Rent and do the calculation.
    For this you just need to specify the condition in the parameter field in the path: Flexible Real Estate Management (RE-FX) -> Conditions and Flows -> Condition Types and Condition Groups -> Define Condition Types. Also specified in the pictorial below.
    For populating default conditions at contract creation based of different parameters, you would need to implement the badi BADI_RECN_CONTRACT. You can also add additional validation such as, if ZREN - Basic Rent is added to the contract it is mandatory to add ZE1.
    Hope this helps.
    Best Regards,
    Hardik Sharma

  • Converting Date-Time to Long Date in a string that is stored in a formula

    The following are 2 verions of formulas that I've tried in placing the long date on a report.  I want the JUD_T_MEETING_NOTICE.MEETING_DATE to be displayed on the letter if Outcome_ID = 3.00 as April 29, 2009.  The field's fomat in the table is 04/29/2009 and neither of the formula's below worked.  I tried formatting the date as a separte formula, as shown in Formula #2 below, but the formatting defaults to the original DataType.  Anyone have any ideas on how to format the date within the string in the formula?
    FORMULA #1:
    IF {JUD_T_MEETING_NOTICE.FK_OUTCOME_ID} = 3.00
    THEN 'I received the enclosed report(s) for review.  To resolve this matter, you must contact the office at ' & {@HallPhone} & ' to schedule a meeting to discuss the incident with me.  This meeting must occur by ' & DATETIMETODATE({JUD_T_MEETING_NOTICE.MEETING_DATE}) & '.  If you have a conflict with this deadline, please let me know as soon as possible to make alternative meeting arrangements.'
    ELSE IF {JUD_T_MEETING_NOTICE.FK_OUTCOME_ID} = 9.00
    THEN 'You missed your scheduled meeting.'
    FORMULA #2:
    IF {JUD_T_MEETING_NOTICE.FK_OUTCOME_ID} = 3.00
    THEN 'I received the enclosed report(s) for review.  To resolve this matter, you must contact the office at ' & {@HallPhone} & ' to schedule a meeting to discuss the incident with me.  This meeting must occur by ' & ({@FormatMeetingDate}) & '.  If you have a conflict with this deadline, please let me know as soon as possible to make alternative meeting arrangements.'
    ELSE IF {JUD_T_MEETING_NOTICE.FK_OUTCOME_ID} = 9.00
    THEN 'You missed your scheduled meeting.'

    Assuming JUD_T_MEETING_NOTICE.MEETING_DATE is a date field, modify your formula to:
    totext(({JUD_T_MEETING_NOTICE.MEETING_DATE}),"MMMM dd, yyyy")
    If it is not a date field but a string, then
    totext(cdate(JUD_T_MEETING_NOTICE.MEETING_DATE ),"MMMM dd, yyyy")

  • Error building the formula

    Hello,
    I need to figure out an error in building the below formula on my BSO cube outline (Essbase server V 9.3.1) (My local EAS version 11.1.2.2)
    Dimesion - TimeSpan
    Members -
    PER (no formula)
    YTD (no formula)
    MTD (Formula - given below)
    @CALCMODE (BLOCK);@CALCMODE (BOTTOMUP);
    IF (
         @ISMBR (@IDESCENDANTS ("ADB_Acc_NSign")) OR
         @ISMBR ("DayCount_YTD") OR
         @ISUDA ("Account", Acct_Gr_Cde_2) OR
         @ISUDA ("Account", Acct_Gr_Cde_4)
         AND NOT ( @ISMBR (@MATCH ("AccountingDate", "????-01*")) )
    IF (@CURLEV ("AccountingDate") == 0)
    IF( @TODATE("mm-dd-yyyy",@NAME(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR("AccountingDate")),5,10),@CONCATENATE("-",@SUBSTRING(@NAME(@CURRMBR("AccountingDate")),0,4))  ) )  ) >  @TODATE("mm-dd-yyyy",@SUBSTRING("09-01-2011",0,10))   )
    *"YTD" - @prior(@ANCEST("AccountingDate",-1,"YTD"),1,@levmbrs("AccountingDate",1));*
    ENDIF     
    IF (           @ISMBR (
              @MATCH ("AccountingDate", "????-01-31") ,           @MATCH ("AccountingDate", "????-03-31") ,
              @MATCH ("AccountingDate", "????-05-31") ,           @MATCH ("AccountingDate", "????-07-31") ,
              @MATCH ("AccountingDate", "????-08-31") ,           @MATCH ("AccountingDate", "????-10-31") ,
              @MATCH ("AccountingDate", "????-12-31") ,           @MATCH ("AccountingDate", "????-04-30") ,
              @MATCH ("AccountingDate", "????-06-30") ,           @MATCH ("AccountingDate", "????-09-30") ,
              @MATCH ("AccountingDate", "????-11-30") ,           @MATCH ("AccountingDate", "2007-02-28") ,
              @MATCH ("AccountingDate", "2008-02-29") ,          @MATCH ("AccountingDate", "2009-02-28") ,
              @MATCH ("AccountingDate", "2010-02-28") ,          @MATCH ("AccountingDate", "2011-02-28") ,
              @MATCH ("AccountingDate", "2012-02-29") ,          @MATCH ("AccountingDate", "2013-02-28")      )
              "YTD" - @prior(@ANCEST("AccountingDate",-1,"YTD"),1,@levmbrs("AccountingDate",1));
    ENDIF
    ELSE
         "YTD" ;
    ENDIF
    Error:
    [Wed Sep 12 11:16:52 2012]xxxx/Error(1200335)
    Error optimizing formula for [MTD] (line 1): invalid argument in function [@_TODATE]
    [Wed Sep 12 11:16:52 2012]xxxx/Error(1200002)
    Compilation failed
    [Wed Sep 12 11:16:52 2012]xxxx/Warning(1012121)
    Error encountered when loading member [MTD]'s calc string [@CALCMODE(BLOCK);@CALCMODE(BOTTOMUP); IF ( (@ISMBR(@IDESCENDANTS("ADB_Acc_NSign")) OR @ISMBR("DayCount_YTD"
    ) OR @ISUDA("Account", Acct_Gr_Cde_2) OR @ISUDA("Account", Acct_Gr_Cde_4) ) AND NOT (@ISMBR(@MATCH("AccountingDate", "????-01*")) ) ) IF (@CURLEV...], ignored
    When I write this formula directly in the outline, it gets verified and data retrieval is also correct (as expected). I am not able to understand why this formula is not getting built in the outline via mxl.
    The formula is seen in the outline after the build with commens as /* !!ERROR: FORMULA NOT LOADED!! */
    I have cheked that the file containing the formula contains \" for each member name (e.g. AccountingDate) and that each of the members referred in this formula from this/other dimension is present in the outline.
    *Sample Accounting Date level 0 member = 2012-01-01*
    *File:*
    "TimeSpan","MTD","","X","","","","","","","","","@CALCMODE(BLOCK);@CALCMODE(BOTTOMUP); IF ( (@ISMBR(@IDESCENDANTS(\"ADB_Acc_NSign\")) OR @ISMBR(\"DayCount_YTD\") OR @ISUDA(\"Account\", Acct_Gr_Cde_2) OR @ISUDA(\"Account\", Acct_Gr_Cde_4) ) AND NOT (@ISMBR(@MATCH(\"AccountingDate\", \"????-01*\")) ) ) IF (@CURLEV(\"AccountingDate\") == 0) IF(@TODATE(\"mm-dd-yyyy\",@name(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),5,10), @CONCATENATE(\"-\",@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,4)) ) ) ) > @TODATE(\"mm-dd-yyyy\",@SUBSTRING(\"2011-09-01\",0,10)) ) \"YTD\" - @prior(@ANCEST(\"AccountingDate\",-1,\"YTD\"),1,@levmbrs(\"AccountingDate\",1)); ENDIF IF (@ISMBR(@MATCH (\"AccountingDate\", \"????-01-31\") , @MATCH(\"AccountingDate\", \"????-03-31\") , @MATCH(\"AccountingDate\", \"????-05-31\") , @MATCH(\"AccountingDate\", \"????-07-31\"), @MATCH(\"AccountingDate\", \"????-08-31\") , @MATCH(\"AccountingDate\", \"????-10-31\") , @MATCH(\"AccountingDate\", \"????-12-31\") , @MATCH(\"AccountingDate\", \"????-04-30\") , @MATCH(\"AccountingDate\", \"????-06-30\") , @MATCH(\"AccountingDate\", \"????-09-30\") , @MATCH(\"AccountingDate\", \"????-11-30\") , @MATCH(\"AccountingDate\", \"2007-02-28\") , @MATCH(\"AccountingDate\", \"2008-02-29\") , @MATCH(\"AccountingDate\", \"2009-02-28\") , @MATCH(\"AccountingDate\", \"2010-02-28\") , @MATCH(\"AccountingDate\", \"2011-02-28\") ,@MATCH(\"AccountingDate\", \"2012-02-29\") , @MATCH(\"AccountingDate\", \"2013-02-28\") ) ) \"YTD\" - @prior(@ANCEST(\"AccountingDate\",-1,\"YTD\"),1,@levmbrs(\"AccountingDate\",1)); ENDIF ELSE \"YTD\" ; ENDIF"
    Please help.
    Edited by: VinS on Sep 12, 2012 10:52 AM

    Hello Cameron,
    I do not have any calc script associated with this BSO cube (I have a source ASO cube that supplies the data values to my BSO cube via transparent partiion.) My heart weeps to continue to use this formula, however, it's a working application and at this point in time, due to various project constaints, it's not possible to rewrite any pieces (If I could, I would change the design to go for an all out ASO to ASO design, but that's a separate discussion.)
    The original formula Before I made any changes:
    "@CALCMODE (BLOCK);@CALCMODE (BOTTOMUP);IF (( @ISMBR (@IDESCENDANTS (\"ADB_Acc_NSign\")) OR @ISMBR (\"DayCount_YTD\") OR @ISUDA (\"Account\", Acct_Gr_Cde_2) OR @ISUDA (\"Account\", Acct_Gr_Cde_4) ) AND NOT (@ISMBR (@MATCH (\"AccountingDate\", \"????-01*\"))) ) IF (@CURLEV (\"AccountingDate\") == 0) \"YTD\" - @prior(@ANCEST(\"AccountingDate\",-1,\"YTD\"),1,@levmbrs(\"AccountingDate\",1)); ELSE IF (@CURLEV (\"AccountingDate\") == 1) \"YTD\" - @prior(\"YTD\"->@CURRMBR(\"AccountingDate\"),1,@levmbrs(\"AccountingDate\",1)); ELSE IF ( @ISMBR (@MATCH (@CURRMBR(\"AccountingDate\"),\"????-Q1\"))) \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"02\")); ELSE IF ( @ISMBR (@MATCH (@CURRMBR(\"AccountingDate\"),\"????-Q2\"),@MATCH (@CURRMBR(\"AccountingDate\"),\"????-H1\"))) \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"05\")) ; ELSE IF ( @ISMBR (@MATCH (@CURRMBR(\"AccountingDate\"),\"????-Q3\"))) \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"08\")); ELSE \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"11\")); ENDIF ENDIF ENDIF ENDIF ENDIF ELSE \"YTD\" ;ENDIF"
    This formula gets built correctly in the outline through existing build process
    The new formula After I made my changes:
    "@CALCMODE(BLOCK);@CALCMODE(BOTTOMUP); IF ( (@ISMBR(@IDESCENDANTS(\"ADB_Acc_NSign\")) OR @ISMBR(\"DayCount_YTD\") OR @ISUDA(\"Account\", Acct_Gr_Cde_2) OR @ISUDA(\"Account\", Acct_Gr_Cde_4) ) AND NOT (@ISMBR(@MATCH(\"AccountingDate\", \"????-01*\")) ) ) IF (@CURLEV(\"AccountingDate\") == 0) IF(@TODATE(\"mm-dd-yyyy\",@name(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),5,10), @CONCATENATE(\"-\",@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,4)) ) ) ) > @TODATE(\"mm-dd-yyyy\",@SUBSTRING(\"2011-09-01\",0,10)) ) \"YTD\" - @prior(@ANCEST(\"AccountingDate\",-1,\"YTD\"),1,@levmbrs(\"AccountingDate\",1)); ENDIF IF (@ISMBR(@MATCH (\"AccountingDate\", \"????-01-31\") , @MATCH(\"AccountingDate\", \"????-03-31\") , @MATCH(\"AccountingDate\", \"????-05-31\") , @MATCH(\"AccountingDate\", \"????-07-31\"), @MATCH(\"AccountingDate\", \"????-08-31\") , @MATCH(\"AccountingDate\", \"????-10-31\") , @MATCH(\"AccountingDate\", \"????-12-31\") , @MATCH(\"AccountingDate\", \"????-04-30\") , @MATCH(\"AccountingDate\", \"????-06-30\") , @MATCH(\"AccountingDate\", \"????-09-30\") , @MATCH(\"AccountingDate\", \"????-11-30\") , @MATCH(\"AccountingDate\", \"2007-02-28\") , @MATCH(\"AccountingDate\", \"2008-02-29\") , @MATCH(\"AccountingDate\", \"2009-02-28\") , @MATCH(\"AccountingDate\", \"2010-02-28\") , @MATCH(\"AccountingDate\", \"2011-02-28\") ,@MATCH(\"AccountingDate\", \"2012-02-29\") , @MATCH(\"AccountingDate\", \"2013-02-28\") ) ) \"YTD\" - @prior(@ANCEST(\"AccountingDate\",-1,\"YTD\"),1,@levmbrs(\"AccountingDate\",1)); ENDIF ELSE IF (@CURLEV (\"AccountingDate\") == 1) \"YTD\" - @prior(\"YTD\"->@CURRMBR(\"AccountingDate\"),1,@levmbrs(\"AccountingDate\",1)); ELSE IF (@ISMBR(@MATCH(@CURRMBR(\"AccountingDate\"),\"????-Q1\"))) \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"02\")); ELSE IF (@ISMBR(@MATCH(@CURRMBR(\"AccountingDate\"),\"????-Q2\"),@MATCH(@CURRMBR(\"AccountingDate\"),\"????-H1\"))) \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"05\")) ; ELSE IF (@ISMBR(@MATCH(@CURRMBR(\"AccountingDate\"),\"????-Q3\"))) \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"08\")); ELSE \"YTD\" - \"YTD\"->@MEMBER(@CONCATENATE(@SUBSTRING(@NAME(@CURRMBR(\"AccountingDate\")),0,5), \"11\")); ENDIF ENDIF ENDIF ENDIF ENDIF ELSE \"YTD\" ; ENDIF"
    This formula does not get built correctly in the outline through existing build process and errors out as shown in original post
    When I copy and paste this new formula directly in the outline and restructure the outline, it verifies and saves the outline correctly and also gives correct data results. It's the build failure that I am unable to fathom out root cause for.
    My build process involves following simple MaxL commands:
    spool on to ./myapp.log;
    login user pwd on localhost;
    alter database xxxx.yyyy reset data; /* (this is not needed as the target bso does not store any data) */
    alter system unload application xxxx;
    alter system load application xxxx;
    import database xxxx.yyyy dimensions from local text data_file "'TimeSpan.txt'" using local rules_file "'myrule.rul'" suppress verification on error append to "'./build_myapp.err'";
    spool off;
    logout;
    Can you please look at the new formula and suggest any changes?
    Thank you so much in advance.
    P.S. : (Tim Faitsch had an opportunity to work on this formula before he left for better stuff to do !!)

  • Difference between Formula, Formula Key Figure & Formula Variable

    Hi Experts,
    I have a basic question in my mind:
    1) What is the difference b/w Formula, Formula Variable, Formula Key Figure?
    2) What is the difference b/w Selection, Filter and Restriction?
    Can you pls explain with some scenarios? That will be helpful.
    Thanks in Advance.

    Hi,
    You are right, these are basic questions and can be learnt just by a little bit searching.So search the forum before posting such questions please.
    Nevertheless :
    http://wiki.sdn.sap.com/wiki/display/BI/CalculatedKeyFigure+RestrictedkeyfigureFilter
    http://help.sap.com/saphelp_nw04s/helpdata/en/61/d0b143aa26b849b4e79a859ea1d7d1/content.htm
    Scenario:
    You want to see the revenue that you get from Product A,B,C in the country of D and E.You also want to calculate a bonus value that will be given to distributors and this revenue will be calculated based on the user's input.E.g user inputs 5 and you give 5% of the sales to distributors.Then here, to get the input 5  and TO USE IT IN THE FORMULA ,you must create a formula variable.You also  must a have key figure revenue to see the revenue of course and a calculated key figure(or a formula) called bonus value = formula variable*revenue/100 to calculate the bonus which will be given to distributors.
    The other thing you must do is restricting product with A,B,C and country by D and E just by right clicking on them  in query designer.What remains is the selection.Let's say you also want to see the total sales of A and B.Then create a selection in the columns then restrict it by dragging and dropping A and B and the key figure revenue.
    By the way, filter(tab) is used to restrict the data coming from cube and affects everything in the report(in contrast to the restricting  selection, because restricting selection affects only the selection, not other fields of the report)
    Regards,
    Güneş BÜYÜKTANIR

  • "SQL Expression Fields" branch missing from Formula Workshop/Field Explorer

    Hello,
    I am using Crystal Reports XI R2 SP3.  Some recent information I have seen suggests that I should use a feature called "SQL Expression Fields".  If I search the built-in Crystal Report help for "SQL Expressions", on the help pages I see that there is a "SQL Expression Fields" branch in the left pane of the Formula Workshop, just under Formula Fields and just above Selection Formulas (it's unfortunate that I cannot embed a bitmapped screen print of this).  The left pane of the Formula Workshop looks like this:
    Report Custom Functions
    Repository Custom Functions
    Formula Fields
    SQL Expression Fields
    Selection Formulas
    Formatting Formulas
    However, in my local copy of Crystal Reports the SQL Expression Fields branch does not exist - the left pane of the Formula Workshop looks like this:
    Report Custom Functions
    Repository Custom Functions
    Formula Fields
    Selection Formulas
    Formatting Formulas
    Is there some special patch, add-in or plug-in that's necessary to enable this functionality?
    Thanks in Advance,
    Bob Gardner

    I set up a DSN to a local MS Access database and used it for an ODBC connection.  Once connected, the SQL Expression Fields branch was available in Field Explorer and Formula Workshop.
    But I am developing reports for an ERP system that uses Oracle 10g databases - I have no choice but to use Oracle 10g databases as data sources for my reports.  I am not sure how to set up an ODBC connection to an Oracle database as I have never had to do so - will SQL Expression Fields not work with the native Oracle driver?
    Thank you,
    Bob Gardner

Maybe you are looking for