@sum(@range(@list calc

I am trying to do a calc with the above functions
I am trying to sum a list of accounts across a multi dimensional list
So for example if I have Acc1, Acc2, Acc3
And I'm trying to do this specific for CrossDim1 and CrossDim2
I wrote is as @sum(@range(CrossDim1->CrossDim2,@list(Acc1,Acc2,Acc3)))
I needed to do this because I was trying to build a percentage
CrossDim1->CrossDim2->Acc1/@sum(@range(CrossDim1->CrossDim2,@list(Acc1,Acc2,Acc3))) where there wasn't necessarily an easy node sub-total to get the 3 accounts together.
The syntax is correct and will run......
The problem is it never stops. I have tuned this down quite considerable to only be running against what I think is about 400 combinations, through my FIX.
1) Why does it run forever?
2) is there a function that is more appropriate
3) is there some setting at the top level that would make this work correctly (performance setting)
My cube is quite large 14 dimensions and almost 15G when fully calc'd. I could create another node and make it equal to Acc1 + Acc2 + Acc3 but I have a lot of these so would prefer not to had hundreds of possible sub nodes if possible.

Period and Accounts are my only dense dimension (12 dimensions are sparse).
So I'm adding up the members in the @list() that are dense and the cross dimensional items in @range are both sparse and desnse as i cross dimensional on "BegBalance" for my time period and cross dimensional on 2 other dimensions.

Similar Messages

  • Selecting records from DEFAULT range-list subpartition

    Is it possible to select records which belong to DEFAULT subpartition of a certain partition of a RANGE-LIST partitioned table, using subpartition pruning? Our task assumes creating partitions and subpartitions in a table dynamically before running ETL. But sometimes due to complexity of the path subpartition key goes from staging data to materialized views in data warehouse, we cannot predict all subpartition key values upfront. We can create DEFAULT subpartition for every partition though, and have Oracle place records which don't match any subpartition condition into that subpartition.
    But later we need to split DEFAULT subpartition so that all records will go into their dedicated subpartitions, and DEFAULT will be left empty - other layers of our application need all records to be stored in subpartition other than DEFAULT in order to be available. For that, we need to know which keys are stored in DEFAULT subpartition. And the question is - how can we effectively achieve that?
    The obvious "brute force" approach is to issue a query like:
    select distinct subpart_key from mytable partition (myrangepartition) where not subpart_key in (list of all subpartition key values for this partition)
    but it does not use partition pruning - I have checked execution plan. While it is possible to use only DEFAULT partition, this query will iterate through all subpartitions, which is huge performance impact. How can we instruct Oracle to use only DEFAULT subpartition?

    is the solution. I have overlooked this syntax - now my life is much easier.

  • Any practical experience with composite partitioning range/list?

    Hi,
    I'm working on Oracle 9.2.0.4 and I plan to migrate several large range partitioned tables into range/list partitioned tables. I was wondering I anybody has some practical experience with this new feature (range/list composite partitioning) and if he encountered any bugs or "undocumented features" ?
    Thanks for any feedback
    Maurcie
    PS: I'm not looking for any documentation about how to do it, I'm just wondering if anyone has some experience in a PRODUCTIVE environment.

    You can also put the query in a parameter file so you don't have to worry about escaping characters.
    Dean

  • Can I sum a list of value pairs by one element of the pairs?

    OK, I got a very helpful pointer to working around the time function limitations in Numbers.
    Now what I have is a table that looks something like this (excerpt of course)
    10/10/07 2:15 PM 0:30 0.50 $0.00 Design - Draft
    10/11/07 9:30 AM 0:45 0.75 $0.00 Design - Revision
    10/12/07 9:30 PM 0:45 0.75 $0.00 Build - HTML
    10/13/07 8:45 AM 0:30 0.50 $0.00 Build - Copy writing
    10/14/07 8:45 AM 0:30 0.50 $0.00 Build - Copy writing
    I calculated the third (decimal) column with the formula =TIMEVALUE(B1)*24. Then I can use normal addition to sum the number of hours for a specific value of the fifth column (e.g. Build - Copy writing)
    Of course the second row references B2, the third B3, etc.
    Now what I would like to do is get a second table that looks like this:
    0.50 Design - Draft
    0.75 Design - Revision
    0.75 Build - HTML
    1.00 Build - Copy writing
    So what I would like it to do is automatically generate a list of the values in the fifth column with a sum of the decimal values associated with that value in the third column.
    Now I can do that by laboriously typing out a list of the values in the fifth column and using the SUMIF function. But then if I miss a value, or mistype a value, I will run into problems.
    Is there a way to produce such a summary list automatically?
    Any help would be greatly appreciated!

    Yvan,
    It appeared that there were probably a small number of categories, maybe six or eight, and if the Triton's list were hundreds, making an automated list builder seemed to be overkill. But to do so would require an additional column in the first table which would determine the list of unique categories:
    =IF(COUNTIF(B$1:B2,B2)=1,MAX(C$1:C1)+1,"")
    Then it's a matter of picking out those categories for the second table:
    =IF(ROW()-1>MAX(Table 3 :: Hidden),"",LOOKUP(ROW()-1, Table 3 :: Hidden,Table 3 :: B))
    Then the obvious SUMIF to get the values: =IF(A2="","",SUMIF(Table 3 :: B, A2,Table 3 :: A))
    pw

  • Javascript Syntax: Return the greater of summed range or "0"

    I am using Windows 7 and Adobe Acrobat X.
    I have a field in which I want to show the sum of a range of fields. However, if that summed value is negative I want it to display a "0".  I'm not sure of the syntax I need to use in order to get this result.  I know how to do it in Excel, but not in Javascript.  I found a thread for something somewhat similar but I think my issue lies in how I'm expressing the "sum" part of the formula.  No matter what I do nothing seems to happen in the field.  See below:
    if (sum(this.getField("SecurityDeposit"),this.getField("Credit"),this.getField("OutstandingC harges"),this.getField("RepairCosts"),this.getField("OtherCosts"),this.getField("Interest" )).value > '0') {
    event.value = sum(this.getField("SecurityDeposit"),this.getField("Credit"),this.getField("OutstandingCh arges"),this.getField("RepairCosts"),this.getField("OtherCosts"),this.getField("Interest") )
    } else {
    event.value = 0 // Default value here

    Try changing the line:
    if(fField.toString() != '') {
    to:
    if(fField.toString() != '' ||  fField.value == 0) {

  • Sum child list items and update parent total using javascript

    I have a SharePoint 2010 Parent/Child list setup using a lookup field to join both the lists, this is working well.
    The Parent list contains requisition requests and the child list contains related item details. Each of the related child list items has a 'Line Item Total' field. I need to aggregate the Line Item Totals in the child list and place the result in a 'Requisition
    Total' in the parent. So for any given parent record the sum of it's related child 'Line Item Totals' is reflected in the 'Requisition' total in the parent row.
    I am struggling with the JavaScript code below. I am trying to aggregate Line Item Totals for a given Requisition#? Could someone please review and advise?
    <script language="javascript" src="/Purchasing/Documents/jquery-1.8.2.js" type="text/javascript"></script>
    <script language="javascript" src="/Purchasing/Documents/jquery.SPServices-2014.01.min.js" type="text/javascript"></script>
    <script>
    $(document).ready(function()
     $('select[title=Requisition#]').children().attr('disabled',true);
     $("input[title='Old Amount']").attr("readonly","true").css('background-color','#F6F6F6');
       // Retrieve the name of the selected parent item.
       var strParent=$("select[title$='Requisition#'] :selected").text(); 
     splist li = web.lists["ReqDetails"]; // This is the child list
        spquery q = new spquery();
        q.Query= "<Where>" +
         "<And>" +
          "<Neq>" +
           "<FieldRef Name='ID'/><Value Type='Number'>0</Value>" +
          "</Neq>" +
          "<eq>" +
           "<FieldRef Name='LinkID'/><Value Type='Number'>ReqID</Value>" +
          "</eq>" +
         "<And>" +
        "</Where>" +
        "<OrderBy>" +
         "<FieldRef Name='LineItemTotal'/>" +
        "</OrderBy>"
        q.ViewFields = string.Concat("<FieldRef Name='LineItemTotal' />");
        q.ViewFieldsOnly = true; // Fetch only the data that we need
        splistitemcollection items = li.getitems(q);
        foreach(SPListItem item in items)
        sum += parseInt(item["LineItemTotal"], 10);
      alert(sum)
     </script>
    Rick Rofe

    I do something similar for a PO Header/PO Detail set of lists. I use SPServices to pull the data.
    I put this code in the child edit page - so any time any child is edited, the parent is updated. I get all children records and total them up (except for the item I'm displaying at the current time. I add that value in directly from the form itself.
    <script type="text/javascript" src="/Javascript/JQuery/JQueryMin-1.11.1.js"></script>
    <script src="/Javascript/JQuery/jquery.SPServices-2014.01.min.js"></script>
    <script>var poNumber = '';
    var poDetailID = '';
    $(document).ready(function() { var queryStringVals = $().SPServices.SPGetQueryString();
    poNumber = queryStringVals["PO"];
    poDetailID = queryStringVals["ID"];
    function PreSaveAction() {
    // update the PO header with the total of all items + shipping + adjustments
    var query = "<Query><Where><And><Eq><FieldRef Name='Title' /><Value Type='Text'>" + poNumber + "</Value></Eq><Neq><FieldRef Name='ID' /><Value Type='Counter'>" + poDetailID + "</Value></Neq></And></Where></Query>";
    var viewFields = '<ViewFields><FieldRef Name="Total" />';
    viewFields += '</ViewFields>';
    var poTotal = 0.00;
    $().SPServices({
    operation: "GetListItems",
    async: false,
    listName: "PO Details",
    webURL: "/po",
    CAMLViewFields: viewFields,
    CAMLQuery: query,
    completefunc: function (xData, Status) {
    //alert(xData.responseText);
    $(xData.responseXML).SPFilterNode('z:row').each(function() {
    if($(this).attr("ows_Total")) {
    //alert($(this).attr("ows_Total"));
    poTotal += Number(parseFloat($(this).attr("ows_Total").split(";#")[1],2).toFixed(2));
    // add in this changed line (we skipped it above)
    var qty = $('input[title="Quantity Ordered"]').val();
    var price = $('input[title="Price"]').val().replace(',','');
    var extend = Number(qty)*Number(price);
    poTotal += extend;
    //alert(poTotal);
    // update the PO Header
    $().SPServices({
    operation: "UpdateListItems",
    async: false,
    listName: "Purchase Orders",
    webURL: "/po",
    ID: poID,
    valuepairs: [["Total", poTotal]],
    completefunc: function (xData, Status) {
    //alert(xData.responseText);
    $(xData.responseXML).SPFilterNode('z:row').each(function() {
    return true;
    Robin

  • Averaging an member of a range list of prior year

    Hi our requirement is :
    Account1-> Budget = Avg of Account1 of prior year from Jun to Mar ->Actual+ Avg of Account1 of prior to prior year for Apr & May->Actual
    I tried with @Avgrange & @ Prior but without success.
    Can anyone provide a soulution?
    Thanks in advance..

    I think you might actually be better off using substitution variables for the years. MDShift works great but does not work in combination with other functions such as AVG or SUMRANGE. In some of my formulas, I use MDSHIFT and list out all the months instead of using a sum. It's pretty ugly but it does work. Here's a brief example:
    IF (@ISMBR("JAN")).....
    ELSEIF (@ISMBR("SEP")) (@MDSHIFT("ADMIN FEE"->OCT,-1,YEARS,)+@MDSHIFT("ADMIN FEE"->NOV,-1,YEARS,)+@MDSHIFT("ADMIN FEE"->DEC,-1,YEARS,)+@SUMRANGE("ADMIN FEE",JAN:SEP));
    ENDIF
    In the example, if the month I am calucating is September, I want to take the data from Oct through December of last year and add it with the data from January to September of the current year so that I had a true year's worth of data. Let me know if you'd like me to clarify further. Good luck.

  • How can I sum numbers in a pdf? And, sum a partial list of numbers?

    How can I sum a list (or partial list) of numbers in a pdf?

    Thanks for your answer.  I have Adobe Acrobat 7.0 Professional.  If you
    can help me further by listing the necessary steps that would be great.
    Thanks.
    Barry Baker

  • List-range partition

    Hi Oracle Gurus,
    I have a table with list partition, as the partitions are growing large I need to create subpartitions.
    Is it possible to create a range subpartition under list partition. If yes I need that subpartition to be built on time not on date.
    Is it possible.

    While range-list partitioning exists in 10g, list-range partitioning to the best of my knowledge does not exist. There are some new options in 11g but I can't remember what they are off the top of my head. You can check the on-line documentation to see what your partitioning options are
    Your partitioning options will depend on what version of Oracle you are using. Also remember that you need the licence to use the partitioning feature

  • How to calc sum of one column, based on the condition of another column?

    I would like to create a formula that adds up the total cost from column F for each specified service in column D. For example, the result for PM (project management) would be $495. Any ideas?

    I think you could use this formula, using your cell references:
    =SUMIF(D4:D21,"=CM",F4:F21)
    Then, change the "=CM' to "=PM", etc. for each service.
    Like JaxJason, I can't test this in Numbers right now, but it works in Excel, and the functions are identical.
    SUMIF(test-range, "condition", [sum-range]):
    * test-range: A reference to the range of cells containing values to test. Must be the same dimensions as sum-range.
    * "condition": Any comparison statement that results in a logical TRUE or FALSE value.
    * sum-range: Optional; a reference to the range of cells containing the numbers to be added. Must have the same dimensions as test-range. If omitted, test-range is used.
    I hope this helps.
    - Michael
    Message was edited by: Apple fan Michael

  • Supress details in subreport based on date ranges in main report

    I am using Crystal XI R2 and am working with Human Resources Data.
    The main report is grouped on and generates a list of temporary teaching positions like this:
    Smith, John
         FTE_____Start Date_______End Date
          .3 ______09/01/2007______10/20/2007
          .2 ______10/05/2007 ______04/15/2008
          .2 ______04/01/2008 ______06/30/2008
    The subreport (generated from a different source, but linked to main report on ) generates a list of days the employee worked as a Teacher on Call:
         TOC Date______ Portion of Day Worked
         09/05/2007______1.0
         09/19/2007______0.6
         10/08/2007______0.4
         10/09/2007______1.0
          04/08/2008______0.6
          04/18/2008______1.0
    Employees are granted seniority for TOC days worked, EXCEPT when they are already employed in a Teaching position >=.4 FTE  (because they are already granted full seniority for that period), so I need to be able to suppress records that fall within date ranges listed in the Main Report where the combine FTE is >=.4.     
    I believe this question has two parts:
    1. how do I evaluate the date ranges to combine overlapping periods?  Results would look like this... (I don't need to be able to see this, but I'm assuming I'd have to create a date range with the results in order to answer question #2 - but I haven't worked much with ranges.)
        FTE_____Start Date______End Date
          .3______09/01/2007______10/04/2007
          .5______10/05/2007______10/20/2007 
          .2______10/21/2007______03/31/2008
          .4______04/01/2008______04/15/2008
          .2______04/16/2008______06/30/2008
    2. how do I supress the TOC dates in the Subreport that fall within the start and end dates of all the employee's positions >= 0.4 FTE ?  Supreport results for this example would look like this...
         TOC Date______ Portion of Day Worked
         09/05/2007______1.0
         09/19/2007______0.6
         04/18/2008______1.0
    (I will sum the "portion" values and mulitply them by a constant variable to complete the seniority calculation.)
    Thank you in advance for any assistance you may be able to provide!

    Thanks for your help Graham, I have continued to work with this and I took the BO Crystal III course.  Your suggestions gave me a sense of  direction.
    I was not able to share a date range array with the subreport (kept getting error messages saying "call BO" , but I WAS able to share the startdate array and the enddate array.  I also shared the fte values array. 
    I had wanted to use a loop  to check
    if TOCdate in startarray[x] to endarray[x]
    then ftearray[x]
    and  sum the new range of fte[x] values so that I could suppress any TOCdates where fte was >=0.4.   But I couldn't quite get there, I kept coming up with formulas that displayed only the first value or the last or zero.
    So I used the following formula for each index (returnindex value had to be changed for each case), then added them all together.
    shared datevar array startArray;
    shared datevar array endArray;
    shared numbervar array FTEArray;
    local numbervar arraylength:= ubound(startArray);
    local numbervar i;
    local numbervar returnindex :=-1;
    If arraylength >=1 then
    if not({AAATDDET.Date} in startarray[1]to endarray[1])then
    0 else
    if {AAATDDET.Date} in startarray[1]to endarray[1] then
    (returnIndex:= i;);
    i:=i+1;
    if returnindex =0 then
    ftearray[1]

  • Can't figure out how to sum only certain dates

    Hi all,
    Here is my issue: we use numbers to keep a running inventory of pieces in stock, and when a piece sells we mark it with the date sold. I'd love to be able to get a sum of monthly sales, but I can't figure it out. Would someone be kind enough to explain it to me like I was five? Here is a sample of our spreadsheet layout: http://i.imgur.com/sV1RU4s.png
    I can easily get a sum for the full column of C, but how do I enter the formula to sum only the sales from April, for instance.
    Thanks!!

    you can get function descriptions from Apple for free by downloading the function references here:
    http://support.apple.com/manuals/#productivitysoftware
    you will want to download the formula and function reference.
    OK...
    sumif() is a function that will sum values in a range based on a condition
    sumifs() is a similar function where multiple conditions
    both functions look at each row and only sum the values in a particular row when the condition(s) are all met.
    =SUMIFS(B,C,">="&E2,C,"<="&EOMONTH(E2, 0))
    let's work from the inside out...
    EOMONTH() returns the last day of the month you pass if offset by some number of months.  In this case I asked it to give the last day of the same month I passed in so the offset is 0.  The month I passed in is stored in E2.
    the basic concept is I only want to sum values in column B when the date in column C is in a paricular month.  said another way... I want to sum values in B where the corresponding date (in the same row) of column C is greater than or equal to the 1st day of the month AND is it also less than or equal to the last to of the month.
    SUMIFS() has several arguments a range to sum followed by a pair of arguments (test values range and a condition):
    SUMIFS(<SUM_RANGE>, <TEST_RANGE1>, <CONDITION1>, <TEST_RANGE2>, <CONDITION2>, etc )
    the sum range is column B
    test range 1 is the date column (column C)
    the condition is ">="&E1  which concatenates ">=" with the date in cell E1 to make a condition ">=Jan 1, 2013"
    test range 2 is the date column (column C)
    the condition is "<="&EOMONTH(E1, 0)  which concatenates "<=" with the date corresponding to the last day of the monthe in cell E1 to make a condition "<=Jan 31, 2013"
    I hope this helps

  • How do I count how many names are in a list?

    I have a list of movies that I have shown at events that I have worked. Here is a sample:
    Iron Man 3
    Hotel Transylvania
    Hotel Transylvania
    Ferris Bueller's Day Off
    Madagascar 3
    Puss in Boots
    Madagascar 3
    Rise of the Guardians
    Madagascar 3
    The Lorax
    Puss in Boots
    Monsters University
    Rise of the Guardians
    42
    The Lorax
    This colomn is in one table detailing all of the events that I have worked. I would like to create a seperate table that, with formulas (and hopefully no auxilarly tables) will sort the most movies I have shown. Using the example above it would look like this:
    3
    Madagascar 3
    2
    Hotel Transylvania
    2
    Puss in Boots
    2
    Rise of the Guardians
    2
    The Lorax
    1
    42
    1
    Ferris Bueller's Day Off
    1
    Iron Man 3
    1
    Monsters University
    How would I go about doing this in Numbers 3? Would I need an auxiliary table? I am fairly competent at formulas but this is complex and I don't know where to start.
    Thanks!
    Matthew

    Hi Matthew,
    The blue triangle is a warning triangle. In this case it warns that some of the cells in the range (List::$A) being searched do not contain numbers. It's a warning, not an error, as the formula will still be calculated correctly.
    Here's an approach similar to Waynes, but that produces a list sorted by numbers of showings directly:
    Data table:
    The index column (Data::$A) counts the number of showings of each title in the cell adjacent to the titles first appearance in column B, then adds a 'tie breaker' amount to produce a result unique to the column to allow VLOOKUP to find each of the titles. In rows where the title is making its second (or greater) appearance, ony this 'tie-breaker' value is calculated, and is made a negative value to act as a signal to show a 'blank' cell in the Showings table. (Placing a number in these cells also eliminates the warning triangles seen in solutions above.)
    This column may be hidden.
    Data::A2, and filled down: =IF(COUNTIF($B$2:B2,B2)=1,COUNTIF($B,B2)+ROW()/10000,-ROW()/10000)
    Showings table:
    A2: =IF(LARGE(Data :: $A,ROW()-1)>0,VLOOKUP(LARGE(Data :: $A,ROW()-1),Data :: $A:$B,2,FALSE),"")
    B2: =IF(LARGE(Data :: $A,ROW()-1)>0,INT(VLOOKUP(LARGE(Data :: $A,ROW()-1),Data :: $A:$B,1,FALSE)),"")
    Each of these looks up the values in column A of Data in order from largest to smallest. The IF condition ends the search when the next largest value is less than zero.
    The formula in A returns the value in column 2 corresponding to the searched for value (ie. the title).
    The formula in B returns the value from column 1 (the search for value itself), then INT strips of the fractional 'tie-breaker' value, leaving only the count of showings for that title.
    Regards,
    Barry

  • Web Service Connection on fresh SUM formula is zero

    I am using Xcelsius SP1.  I have a field in the spreadsheet that has the formula "=SUM(H12:H16)".  I am using a Web Service Connection to refresh the data.  Following a refresh from the web service connection the field with the SUM formula is 0.  I have discovered that ff the values in SUM range (in my case H12:H16) are identical to the refrehsed data then the formulas results willl be 0.  If one of the sum values is different from the original values then the sum formula works.  Is this a bug? Is there a work around?

    I had a problem with the data format after getting number-values from my web-service, because every number-value I got was not a number - it was a string.
    so I had to convert all the data in Excel from string to number values. after that everything works fine for me.
    you could try that out....

  • Subpartition existing range partition in Oracle

    I have table xyz with following structure
    xyz ( vld_dte date,
    prd_typ varchar2(100),
    sales number
    table XYZ is partitioned by range on field vld_dte and partitions are monthly partitions like JAN-2009 , FEB-2009....DEC-2009 and so on.table is currently loaded with data.
    How can I modify existing range partition into composite range-list partition so that every partiton is subpartitioned on prd_typ , basically three sub-partitions for every partition 1- Grocery , 2-Home decoration,3-OTHERS

    ORA-14759: SET INTERVAL is not legal on this table.
    Cause: ALTER TABLE SET INTERVAL is only legal on a range partitioned table with a single partitioning column. Additionally this table cannot have a maxvalue partition.
    Action: Use SET INTERVAL only on a valid table
    mark answered post as helpful / correct*

Maybe you are looking for

  • I lost everything, how do I get it all back?

    I recently connected my iPod to iTunes on my computer, and it wiped my iPod clean. How do I get all of my apps plus music back?

  • Cinema Display 30" and MBP - No Picture

    I have a 2.16 Core Duo Macbook Pro 17". Today I purchased a 30" Cinema Display at the Apple store. Because of issues I had heard about I had the Apple employees help me open the box and plug in the monitor to a Macbook Pro on the floor to check for d

  • How do I save a password for a site if I am not prompted by Firefox?

    I am trying to save a password for a site that I previously chose not to save one for. I have tried: Going into my exceptions list - it's not listed Going into my saved password list - there's no option to manually add a site Checking the forums but

  • Java Server Faces Searching

    I am wanting to allow a user to load employee information from an employee table by typing in a employee id into a JSF/inputtext component. I have no idea how to do this. I am using ADF Business Components for my model, ADF Faces for my view/controll

  • Disable the USB drive usage of iPod nano

    Hello, I am using iPod Nano 4G, 8GB. I disabled the "Enable disk usage" option in iTunes, also the the manual mode is disabled. I dont want my iPod to be detected as a Mass Storage Device. But even after these, whenever I am connecting my iPod to my