Roll up of the formula results as per  hierarchy in report

Hi,
I am using a employee hierarchy in report with key figure  as ROWCOUNT and  formlas as Total liability amount
Currently the report is showing the number of employee under its manager correct like if there are 5 employees under a employee E1.
Suppose there are 2 employees wose total liability amount is 0
The report is showing 5 as under E1.
But now user  doesn't want to show the employees whose Total liability amount is 0.
So i make a condition to show only employees whose total liability amount is 0 but the report is still showing the number of employees as 5 (ROWCOUNT) instead of 3 although the employees with non zero total liability amount is displayed in the report.
SO,please suggest me how to achieve this.
Its would be a great help to me.

just need to properly maintain value categories..

Similar Messages

  • How to remove the 0 that is added to the formula result

    Hi,
           I have a formula field. i placed the formula field in the group footer. zero (0) is added to the formula result. if the formula result is 8 then i am getting 0.00 and 8 as data when i select the browse field data of that field . how to remove the zero. i also used supress formula for the field. but it is not working. any idea on this regard.
    Regards,
    Shanthakumar.

    hi,
      Formula : GRP1Focus
                  if ({@Grp1BrandName}={@All Brand Names})  then {@FocusValue NBSH}. when i right click the formula field and select browse data. 0.00 and 8 are displaying.
    Suppress formula
             GRP1Focus=0
    Regards,
    Shanthakumar

  • How should i use the two results sets in one single report data region?

    Hi frnz,
     I have to create a report using the below condition...
    Here my given data  set query gives you the two result sets ,so how should i use that two result sets information in single report....when i accessing that data set query it will take the values off the first result set not for the second result set.
    without using sub report and look up functionality..... if possible
    is there any way to achieve this.....Please let me know..
    Thanks!

    You cant get both resultsets in SSRS. SSRS dataset will only take the first resultset
    you need to either create them as separate queries or merge them into a single resultset and return with ad additional hardcoded field which indicates resultset (ie resultset1,resultset2 etc)
    Then inside SSRS report you can filter on the field to fetch individual resultsets at required places. While merging you need to make sure metadata of two resultsets are made consistent ie number of columns and correcponding column data types should be same.
    In absence of required number of columns just put some placeholders using NULL
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Group and drill down and roll up by the most recent SCD2 type member in reporting period in SSAS

    Hello,
    I am new to SSAS and cube world so my problem might not be big of a challenge for you but it is for me.
    Here is my challenge :
    My simplified datamart relation star schema model looks like this (2 dimensions and one fact):
    DATE dimension - Date_Id, Date, Fiscal_Year, Fiscal_Quearter, Fiscal_Month, Calendar_Month, etc
     CLIENT dimension – Cient_SK, Client_Id, and two  SCD2 type fields : Status,and Class and, of course, Start_Date, End_Date to keep track of SCD2 along with a Current_Flag . I can have several records for the same Client_Id
    over a given reporting  period.
    FACT – Date_ID, Client_SK, Client_Id
    Fact table is daily snapshot that loads one record per client only if a client was active on that day.
    Requirement: 
    Count number of currently active clients group by  “Status” or “Class” with option to roll-up to the total count of clients
    Count total number of clients who were active in the specific reporting period (period can be fiscal year or fiscal quarter or a month) grouped by the most recent “Label” or most recent “Status” or most recent “Class” in that reporting period.
    I created a cube and created a measure “Distinct_Count” that does just that - distinct count on Client_Id. It works just fine for current date as well as for any given reporting period and I have nice rolling-up/down thru Fiscal_Year-Fiscal_Quarter- Month.
    But I am having problem grouping by any of 3 attributes with SCD2 type in CLIENT dimension. I do not know how to get the latest active value (member) in the reporting period
    Here is my CLIENT dimension:
    Client_SK
    Client_Id
    Status
    Class
    Start_Date
    End_Date
    Current_Flag
    14
    78
    fair
    B
    03/01/2008
    27/09/2012
    0
    73
    78
    very good
    C
    28/09/2012
    15/08/2013
    0
    89
    78
    Bad
    B
    16/08/2013
    24/09/2013
    0
    95
    78
    Good
    B
    25/09/2013
    03/10/2013
    0
    97
    78
    Good
    A
    04/10/2013
    01/12/2013
    0
    102
    78
    Average
    A
    02/12/2013
    31/12/2099
    1
    For example:
    If selected reporting period is  Fiscal_Quarter is Q2 that covers period Aug-Sep-Oct (Client_SK: 89, 95, 97) and if my client was active in that period, when I group active client’s count by “Status”
     attribute I need to count this client in the group “Good” since that was the most recent value for this client in this period (Q2) for this attribute (Status).
    I do not know if this is important but just in case: user interface  could be Excel application or any MDX enabled Microsoft or third party visualisation tool.
    Thanks in advance

    Hello Bob,
    Thank you for your question. I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Regards,
    Elvis Long
    TechNet Community Support

  • Formulas results outside of row and column axis

    The report has an area of row axis and column axis. This area is where the results from BW are displayed.
    We have a requirement where we would have to create formulas using the BW Analyzer results of the row axis and column axis and display the results after the last row of this area.
    For example, after the BW Analyzer displays the result area to the Excel, we are required to take Excel Cell D10 * C7 and put the results to B33.
    <b>B33 = D10*C11</b>
    Excel row 30 is the last row from the row axis result area.
    I have searched through the forum for Cell Editor, but it seems that the requirement is to use 2 structures and use Cell Editor only when there is a formula collision. Our requirement has 1 structure, but I guess we can create the other structure for the column axis results. But still I think Cell Editor is a computation of formula collision within the row and column axis result area.
    My question is will Cell Editor meet our requirement if we want to get formula results from the row and column axis and then display the results outside of the row and column axis result area?
    Our approach was to use the Excel cell formulas in the workbook or possibly macros, but it seems that the Excel formulas will do.
    Would someone clarify about the Cell editor for this requirement and how would you approach this?
    Would this be effective to do the formulas from the query level? We are working on 3.5 SP11.

    Can Cell editor do the following:
    1. Create structures
    2. Run the query
    3. The results of the structures are displayed in the row and column axis of the BEx Analyzer
    4. Save as a workbook
    5. Use the Cell Editor to pick and choose the cells (Not the Excel cells) to create formulas
    6. The formula results are then displayed outside of the row and column axis.
    Would this be another approach?
    What scenario can Cell editor be used? What scenario can Cell editor not be used?
    Thanks

  • How to display my FOX formula result on the layout

    Hi Guru's,
    I have created one Fox Formula for OTB using the given below calculation
    Planned Open-To-Buy (Retail Price) = Sales / Retail Value +  Last Planned Stock (Retail Value) - Open Purchase Orders (Retail Value with Tax) - GR Posting Date / Vendor RtlT + Promotion Sales / Retail .
    When I am executing my Planning function (using BPS0) then it is working fine. It is showing the correct OTB value.
    I have insterted this FOX function into my layout using UPSPM tcode. When I execute the OTB calc function from UPSPM then correct data gets saved into my real-time cube. However OTB data is not getting displayed on my layout.
    Is there something else which I am supposed to do to display the result on the final layout ?
    Thanks,
    Ashu gupta.

    Hii Guys,
    Thanks a lot for your inputs. My issue has been resolved. I was not able to get the FOX formula output on the layout as the formula was not giving unique record. I have removed version char from my level and flds for selection. Now everything is working fine.
    Thanka again for your valuable time.

  • Getting running total formula result at the beginning of the report

    Hello All,
    I am having an inquiry that if I can get a grand total in the report footer to the report header.
    The grand total is not a direct sum.  I am using three formulas
    the first formula:
    @reset Group Header
    whileprintingrecords;
    numbervar sumpct4;
    if not inrepeatedgroupheader then
    sumpct4 := 0;
    the second formula: Details section
    whileprintingrecords;
    numbervar sumpct4 := sumpct4 + {@Total_Market};   // {@Total_Market}; =  Amount+ Interest
    numbervar grtotal4 := grtotal4 + {@Total_Market};
    Group Footer
    whileprintingrecords;
    numbervar sumpct4;
    Report Footer
    whileprintingrecords;
    numbervar grtotal4;
    All that I need is to show the total which is in the report footer at the top of the page where I am having a summary.
    So, can you please help me.
    Thanks
    Edited by: maas maas on Sep 8, 2010 12:48 PM

    Hello my friend,
    I want this to be controlled in crystal.
    Is there is a way to get the grand total by using multiple formulas or any other way?
    Here is the structure of my report:
    Group Header 1: CCY
    Group Header 2:Type
    @reset Group Header
    whileprintingrecords;
    numbervar sumpct4;
    if not inrepeatedgroupheader then
    sumpct4 := 0;
    Group Header 3A: Deal No
    Group Header 3B: Deal No (subreport to get the {@amount} for each deal)
    I will pass the end_date from the main report to subreport and I will get the sum(amount) for each deal between date (1-1-2008) to end_date. The sum will be as a shared variable to the {@amount} formual in the main report.
    Details:
    Deal No, {@amount}, {@Price}, {@market}, {@Total_Market}
    {@Price}: if {table.price} = 0 then
    100
    else {table.price}
    {@market}: if Type <> "DEP" then
    ({@amount}*{@Price})/100
    else
    {@amount}
    {@Total_Market}:{@market}+ {@Price}
    Running formula to get Total_market: Details section
    whileprintingrecords;
    numbervar sumpct4 := sumpct4 + {@Total_Market};
    numbervar grtotal4 := grtotal4 + {@Total_Market};
    Group Footer 3B: Deal No
    Group Footer 3A: Deal No
    Group Footer 2:Type
    In this group I am placing a running total formula:
    whileprintingrecords;
    numbervar sumpct4;
    Group Footer 1: CCY
    Report Footer:
    @grand_Total
    whileprintingrecords;
    numbervar grtotal4;
    Now, i want this @grand_total formula result to be shown in Group Header 1: CCY.
    I tried to insert a subreport at the beginning which it is a copy of the main report, but I did not get the coorec t result because I am getting the {@amount} from a subreport and in crystal I can't insert a subreport in an existing subreport.

  • TS4357 The song I downloaded cuts off about 3 seconds before the ending, I have tried re-downloding per apple support directions with the same results. What further actions may I take to fix this issue?

    The song I downloaded (Slayer, Criminally Isane) cuts off about 3 seconds before the ending, I have tried re-downloding per apple support directions with the same results. What further actions may I take to fix this issue?

    I'd report the problem to the iTunes Store. 
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the item, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.

  • How to have total result of CKF use the formula of the CKF

    Hello experts, in a couple of BI reports we need that a Calculated Key Figure's total result use its same formula, instead of using the different calculations that are offered for totals. Let me explain:
    We have the following report (please ignore the "-"):
    Month----Entries---Exits----Percentage
    Jan--82--
    25%
    Feb--63--
    50%
    Mar--81--
    12.5%
    Result--226--
    Percentage is calculated as "Exits / Entries * 100", or "Exits %A Entries" (in the latter case, the default calculation of total is "average", while in the former it is "sum") and has an exception aggregation of "Average" with reference characteristic "Calendar Month". The problem we have run up with is that we want the result of Percentage calculated the same way, which is somewhat similar to an average. However, the result is always calculated based on the individual results. This gives us different numbers.
    Result Percentage = Total Exits %A Total Entries = (6 / 22) * 100 = 27.27% (CORRECT)
    Result Percentage = Average of individual Percentages = (25 + 50 + 12.5) / 3 = 29.16% (INCORRECT)
    I've tried different approaches, such as changing the reference characteristic and exception aggregation, selecting "average" as the method of calculating results or individual values, checking the "cummulated" and "Also apply to results" checkboxes, etc. but I was unsuccessful.
    Any thoughts?

    I'll post sample data and give a more thorough explanation of both queries (the one that works correctly and the one that does not). Both queries come from the same infocube:
    The correct query: it is a monthly report of entries vs exits for all store types but one (called "general" which should not be included here) in a base country (so if base country is, for example, France, then all stores in France). The query structure and sample data (ignore the "-"):
    January--February--
    Exits--EntriesPercentageExitsEntries--
    Percentage
    Store type 1--52025%918--
    50%
    Store type 2--41822.22%320--
    15%
    Store type 3--125621.43%1360--
    21.67%
    Total--2194
    22.34% -2598--
    25.51%
    This query is initially restricted by the base country and the store type "general" (so that it is not considered).
    The incorrect query: it is a monthly report of entries vs exits for store type "general" ONLY, outside the base country. The query structure and sample data (for ease of analyzing, I am repeating the data in the key figures, changing the store for the calendar month):
    Country 1--Country 2--
    Exits--EntriesPercentageExitsEntries--
    Percentage
    January--52025%918--
    50%
    February--41822.22%320--
    15%
    March--125621.43%1360--
    21.67%
    Total--2194
    30.33% -2598--
    28.89%
    This query is initially filtered by the store type "general" and the base country (so that it is not considered).
    As you can see, the percentage can change quite a lot. What confuses me is that in both cases I am using the same CKF "Percentage" with "Average" as exception aggregation and "Calendar Month" as Reference Characteristic.
    Percentage = Exits %A Entries
    When dealing with individual results, everything is ok. It is only when dealing with totals that the query miscalculates, calculating the totals as the "Percentage" average (the sum of individual values / the number of values).
    I modified the incorrect query to match the correct query, so that it looked like a copy of it, and the results were calculated correctly. Then, when I modified it again to return it to its original form, the results were calculated incorrectly again.
    Any suggestions? Do you think this could be a configuration issue or something like that?

  • Table for the recorded result.Result automatically calculated using formula

    Hi experts,
              I want to know where this results will be saved(table name) when we use formula in inspection plan.I have marked char.calc in control indicator and formula has been entered in inspection plan.While entering the result when i click on calc button it is displaying correct result and i have saved.when i check the table QAMR,QASR it is not displaying the result for the MIC which i have used formula.I am able to see the formula in QAMV table.When i want to display this result can i retrive the result directly from any of the table or shall i calculate the formula in the program to display?   If i should calculate the formula how to calculate?
    Regards,
    Shwetha.

    Hii,
    If u are using Inspection point for the results recording then results will get stored in QASR table. The manually entered results alone will get stored in the Original_ Input field. Calculated parameters will get stored in the mittelwert field (mean value). Kindly check QASE table for lot without inspection points.
    For ex : Results Field name mean value (1.7500000000E+02)
    with regards,
    K.Lokesh.

  • How do I display decimal hour as time? Example, I created a formula (originally in Exel) where the result is 2.25. I need this to be displayed as 2:15, (2h, 15m). Here is the formula in cell b8   =SUM((A6/18)*B3 (B6/8)*B3 (A6 B6)/70*B3 B2)/60

    How do I display decimal hour as time in Numbers for iPhone5 ? Example, I created a formula (originally in Exel) where the result is 2.25. I need this to be displayed as 2:15, (2h, 15m). Here is the formula in cell b8   =SUM((A6/18)*B3 (B6/8)*B3 (A6 B6)/70*B3 B2)/60. The result can be in either b8 or a different cell.
      Thanks for helping this novice

    B1=DURATION(0,0,A1,0,0,0)
    The DURATION function combines separate values for weeks, days, hours, minutes, seconds, and milliseconds and returns a duration value.
    DURATION(weeks, days, hours, minutes, seconds, milliseconds)

  • Content search webpart query is not rendering result as per the expectation !!

    Hello,
    I have 5 Content search web part on same page with different display templates.
    1) Search Aggregated Result - This display search results for announcements,discussion and wiki as per the current user.
    2) My websites - Thsi displays site links as per the current user.
    3) My Tasks - This display task items as per the current user
    4) Daily calendar - This display the results as per the date selection in calendar control.
    For Daily calendar - I have specified calendar control in custom display template to filter search results based on date selection which is working as below:
    I have got the reference from following link that changing the query dynamically to filter search result data - 
    http://sharepointificate.blogspot.in/2014/08/content-search-webpart-dynamic-filtering.html
    ctx.OnPostRender = [];
    ctx.OnPostRender.push(ctx,function(){
    $('<div id="trCalendar" class=""></div>').insertBefore('#idCalender')
    $(document).ready(function () {
    $("#trCalendar").datepicker( {
    onSelect: function(date) {
    var groups = Srch.ScriptApplicationManager.get_current().queryGroups;
    $.each(groups, function () {
    // Look for query groups associated with a CSWP
    if (this.displays != null && this.displays.length > 0) {
    if (this.displays[0] instanceof Srch.Result) {
    // Update and execute query
    var newQuery = 'ContentTypeId:0x0102*'+ ' ' +'EndDate'+ '>=' + date;
    this.dataProvider.set_queryTemplate(newQuery);
    this.dataProvider.issueQuery();
    selectWeek: true,
    However, this date query is being applied for every search result web part mentioned in page.
    How can I make it work only for the Daily Calendar web part ?
    Your answer will be much appreciated.
    Thanks and Regards,
    Dipti Chhatrapati

    Dipti,
    How about replacing you line as below (with content class)
    var newQuery = 'ContentTypeId:0x0102*'+ ' ' +'EndDate'+ '>=' + date;
    with
    var newQuery = 'contentclass:STS_ListItem_Events'+ ' ' +'EndDate'+ '>=' + date;
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Is there a bug with the formatting of formula results?

    Looking to see if anyone else is having this issue.
    When I create a cell who'se contents are the result of a formula, I normally end up with at least two digits to the right of the decimal point. If I hit the decrease digits button in the toolbar I get MORE digits.
    When I hit another format button like currency or percentage and then go back to just numbers, I again get a couple of digits to the right of the decimal point, but then the decrease digits button works as intended.
    Its not a huge deal - but I do have to hit 4 buttons instead of two. This happens in almost every cell that contains a forumla result - but not straight data cells.
    Anyone else getting this? I'd love a fix if one is in the works, its annoying.
    Cheers!

    I think what you are seeing is a feature, not a bug. sharknca hit the nail on the head. Some experimentation will demonstrate that Numbers, when in automatic mode, will format to include all the significant decimals, based on the internal resolution of the machine. Also, in Automatic mode, Numbers will not show the + sign to indicate truncation, until you try to do an override, as you found out.
    To observe what is going on, enter the formula =PI() in a cell formatted as automatic and look at the Cells Inspector, with that cell selected. You will see that even though you are only seeing as many decimals as your narrow column will display, the Inspector shows 14 digits after the decimal.
    Now, edit the formula to =10*PI(). The shifts the decimal point one place right, leaving only 13 meaningful digits to the right of the decimal, and the Automatic Format recognizes this and adapts. =100*PI() reduces the number to 12 digits, etc.
    At this point, the cell still only displays what it can, with no complaint. Try to do an override in the number of decimals displayed and you can start decrementing, but you start from wherever the Automatic format has put you based on the available resolution, and if you have a narrow column, you may see a + sign, and if you were headed for, say, two places, you may have a way to go.
    Regards,
    Jerry

  • Is there a way to change the formulas for the fields of the Quiz Results slide?

    I see the placeholders for the fields on the Quiz Results Slide (Number of Questions = {total-questions}).  Is there a way to view and change those calculations?

    You can select which variables appear on the Quiz Results slide, but you cannot really change the calculations used by Captivate under the hood.
    Depending on what you're trying to achieve, you might be able to insert your own captions reading off the same variables and use Advanced Actions and Expressions to cook up different results.  But it depends very much on what you want to do and whether or not the variables are exposed, and whether or not the limited Expressions available will allow the math.

  • 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 !!)

Maybe you are looking for

  • Service entry sheet error

    Hello All Service Po is created with one line item & four sub service line item details ( for Services PO cost center, GL account, Fund & fund centre is given ) During the making Service entry sheet getting error " Error in account coding allocation"

  • InDesign Placed Text Linking Issue

    Hi - I've just recently updated to CS6 and am having an issue with linking placed text files. When I place the Word Doc into the InDesign file initially (not in position), the link to the original document is present in the 'Links' window as expected

  • Some album art not displaying

    I have the 80gb model and recently I did that thing where you erase all the album art and reload it to fix some that were showing up as black boxes. But then I found that now a good chunk of my album art won't display at all. For those songs all the

  • My ipod says ipod is disabled , how do i fix this

    my ipod says ipod is disabled , how do I fix this

  • Wireless 5508 HA mode, urgent question! Many thanks

    Hi, experts, our company has order two WLC 5508 and want to deploy as HA mode. one is air5508-12-k9, another is air5508-HA-k9. however, due to proper installation, someone has installed license into HA model, right now, two WLCs are both primary. Whe