CrossTab Insertion Formula

I have a crosstab table in my report in which I have two calculated members.
Let say that I have A,B,C,D colums and B and D are calculated members.
I know how to modify the order of the calculated member through the Insertion formula but I need my columns in the following order:
A,B,D,C.
I do not know how to make reference in the insertion formula to a calculated member, so that both of my calculated members are set one next to the other. I am using the following insertion formula and it works for the first calculated member but not the second. This in my formula. Any help will be greatly appreaciated.
GetColumnGroupIndexOf(CurrentColumnIndex)=1 and GridRowColumnValue("test") = "A"

DebiHerbert,
My issue is creating a difference percentage formula using summary columns and placing it as a third column.
In the CrossTab, Region is added to the row (as a group),  the first Summary Column is ACTUAL and second one is TARGET. I just added these two columns to the summary using CrossTab Expert. I want to calculate the Percentage as a third column. The percentage formula I need to use is SUM(ACTUAL-TARGET)/SUM(TARGET) for each region.
I tried playing with the formulae like I mentioned above. I tried different combinations like aggregation, without SUM, Changing the Summary to Percentage etc.. But I got  wrong percentage values in all cases. Please let me know if you need any more information on this.
Thanks!
Edited by: Shamanthreddy on Sep 23, 2010 3:16 AM

Similar Messages

  • Powerpivot - Can't insert formula that combines two or more different columns and keep getting message "unhandled exception has occurred in a component in your application...

    I am using powerpivot v2 with excel 2010.
    When I go to my excel file's powerpivot and I try to insert a formula in any column, I constantly get the following message:
    "unhandled exception has occurred in a component in your application. If you click continue, the application will ignore this error and attempt to continue".
    ************** Exception Text **************
    System.InvalidCastException: Return argument has an invalid type.
       at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
       at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.Office.Interop.Excel._Application.get_ActiveWorkbook()
       at Microsoft.AnalysisServices.XLHost.Addin.GeminiRibbon.currentClientWindow_InFormulaBarChanged(Object sender, EventArgs e)
       at Microsoft.AnalysisServices.Common.SandboxEditor.formulaBar_Leave(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
    Does anybody know how to fix this ?

    Mark,
    I used the Fix It found here:
    http://support.microsoft.com/kb/2739501
    I would have to ask my IT support person for more specifics, but as I understand the scenario with my particular laptop: the laptop came preloaded with RTM build of 2013.  We used Control Panel to uninstall Office 2013, in order to install Office
    2010.  I installed PowerPivot add-in and used it successfully with no issues for several months.  After attempting to install another program and encountering issues with apparent traces left behind of Office 2013 uninstall, I found the link above
    and used the Fix It to attempt to remove all remaining traces of Office 2013.  While it did appear to find and clean-up quite a bit left behind from the Office 2013 install, I was surprised to find an error upon entering my existing installation
    of PowerPivot for 2010 and attempting to type new formulas into the formula bar.
    My experience to-date is that an error message stating ""Return Argument Has an Invalid Type" appears anytime I select or modify a formula in the formula bar that would cause the intellisense to appear.  For example, when I first click into the formula
    bar, I do not get an error...but as soon as I type the first letter, before the intellisense appears, I get the error message.  Throughout the remainder of the formula as I type, just prior to any time when the intellisense drop-down will appear
    again, I get the same error message again (see details below).
    At one time, although I can't reproduce it now, the error message did state ".Net Framework" in the menu bar of the error pop-up window.  I can't get that to appear again, as it now only says "PowerPivot for Excel".  Based on this, I had attempted
    to see if I could repair my .NET framework install using the following tool:
    http://www.microsoft.com/en-us/download/details.aspx?id=30135
    I learned, however, that since I am running Windows 8 which comes with .NET 4.5 built-in to the OS, this tool does not yet cover that version for repair.
    While the overall end-result of my PowerPivot models appear to be just the same, having to click through "Continue" on the error message multiple times each time I enter a new formula is a huge drain on productivity.
    Let me know if you have any additional questions.
    David
    System.InvalidCastException: Return argument has an invalid type.
       at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
       at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.Office.Interop.Excel._Application.get_ActiveWorkbook()
       at Microsoft.AnalysisServices.XLHost.Addin.GeminiRibbon.currentClientWindow_InFormulaBarChanged(Object sender, EventArgs e)
       at Microsoft.AnalysisServices.Common.SandboxEditor.formulaBar_Leave(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
    David Duncan Consultant I.B.I.S., Inc.

  • Crosstab - Conditionnal formula lost when setting property: Suppress Subtotal

    Hi, I'm using CR4E Standard and I was wondering if this was a know bug of if it was the intented behavior of CR4E.
    Let's say I have a simple crosstab with 1 row, 1 column, and a total at the bottom of it.
    If I add a conditionnal formula on the field Row 1 (label Row 1) and that after I set the properties Suppress Subtotal of the field TOTAL, then the condtionnal formula I've just set is lost !
          | Col 1
    Row 1 | Data
    TOTAL | Sum(Date)
    Is it a known bug ??
    Anyone know why this is happening ?!?
    Thanks in advance
    Phil

    I tried to reproduce but I couldn't.  Could you provide some detailed steps on how to reproduce?  It would be best if you could use the Derby database to create the crosstab so that I can follow the same steps.  Also, if you happen to have the standalone CR Designer, are you able to repro in there as well?
    Thanks,
    MJ

  • Crosstab Percentage  Formula

    I am trying to calculate percentage in a Crosstab. But I am getting wrong results. Here is the desired report results
    ...........................ACTUAL.......TARGET.....PERCENTAGE
    North East .........100.................80.............25%
    South East.........200.................120 ..........67%
    West.................200 .................180...........11%
    Central.............200...................250.......... -20%
    Here is the formula for Percentage. This formula gives wrong results in Crosstabs. But gives correct results if used in a Sub-Report or main report. It has Percentage Difference calculation.
    ((sum({@Actual},) - sum({@Target},)) / sum({@Target},REGION}))*100
    Edited by: Shamanthreddy on Sep 22, 2010 11:45 PM
    Edited by: Shamanthreddy on Sep 22, 2010 11:46 PM
    Edited by: Shamanthreddy on Sep 22, 2010 11:46 PM

    DebiHerbert,
    My issue is creating a difference percentage formula using summary columns and placing it as a third column.
    In the CrossTab, Region is added to the row (as a group),  the first Summary Column is ACTUAL and second one is TARGET. I just added these two columns to the summary using CrossTab Expert. I want to calculate the Percentage as a third column. The percentage formula I need to use is SUM(ACTUAL-TARGET)/SUM(TARGET) for each region.
    I tried playing with the formulae like I mentioned above. I tried different combinations like aggregation, without SUM, Changing the Summary to Percentage etc.. But I got  wrong percentage values in all cases. Please let me know if you need any more information on this.
    Thanks!
    Edited by: Shamanthreddy on Sep 23, 2010 3:16 AM

  • Report generation, inserting Excel formulas

    Hi everyone,
    We just acquired the Report Generation Toolkit. I've got the basic report figured out but I'm stymied at inserting formulas where I need to. The report will have one row added when data is acquired. At that time I need to insert two formulas each referring to the cell immediately to the left of the cell it's in. I've found examples that put formulas at the end of the sheet but none that plugs them in as the data is being saved. Does anyone have an example of how this can be done?
    Thanks 

    This snippet creates a report with the value 3 in a cell (as it turns out, it's cell A1).  Note that because I'm using Excel Easy Table, I need to turn my scalar (3) into a 2D array.  Easy Table gives me the cell address just to the right of the insertion (where the Formula will go -- by subtracting one from the Column, I can get back the Excel Address (A1) of the "cell to the left".  I then create a formula (starting with "=") that doubles this cell and adds 0.5, then use Excel Insert Formula to put it into the Worksheet, where it becomes 6.5.
    Bob Schor
     

  • How do i insert excel formula in java code

    Hi frds,
    i want to insert formulas of excel in the excel spredsheet through java code
    eg
    if i want to insert =CONCATENATE(A2,B2) through java code how will i achieve this
    Regards
    JM

    Or [_JExcel_|http://jexcelapi.sourceforge.net/]
    To my knowledge JExcel is more complete and less buggy than POI.

  • Crosstab - column subreports

    Hello,
    I'm searching for same advice, hint ... I need to make column subtotals in crosstab
    I have crostab like this
                        january 2011      February 2011    March 2013     December 2014     TOTAL
    product1               5                         6                    7                         8                    26
    product2               1                         2                    3                         4                    10       
    Product can be more, and usualy I have data from every month this abowe is only example, also time interval is set by user (report parameters)
    everything works OK but now I need to make a subtotal after every year :
                        january 2011      February 2011       subtotal             March 2013     subtotal       December 2014          subtotal         TOTAL
    product1               5                         6                      11                       7                   7                       8                              8                26
    product2               1                         2                      3                       3                    3                       4                              4               10      
    I thing it must be done by adding calculate member, but I can't reach data from dataset since I have crostab in header.
    Could someone explain me how to do this ?
    Thanks for any help

    Hi Jakub,
    Here's what you need to do:
    1) While in the Preview Mode, right-click the header cell of the first column in the crosstab (In the example above, it is the January 2011 column) > Select Calculated Member > Insert Column.
    A blank column with zero values is inserted.
    2) Right-click the header cell of this Blank Column and select Calculated Member > Edit Header formula and type in this text:
    "Subtotal"
    3) Right-click the header cell again and select Calculated Member > Edit Insertion Formula. Type in this code:
    GetColumnGroupIndexOf(CurrentColumnIndex) = 1
    AND
        if CurrentColumnIndex  <> GetNumColumns - 2 then
            Year(GridRowColumnValue("Date")) <>
            Year(GridRowColumnValue("Date", CurrentColumnIndex + 1))
        else
            Year(GridRowColumnValue("Date")) = Year(Maximum({Date}))
            AND
            Month(GridRowColumnValue("Date")) = Month(Maximum({Date}))
    Note: In the above code, replace "Date" with the Date field used as Column in the Crosstab. The double-quotes are necessary and make sure to remove any parenthesis that CR automatically adds when a field is used in a formula.
    Similarly, in the part where it reads Year(Maximum({Date})), replace {Date} with the Date field in the Crosstab however, this time use the parenthesis as in the code.
    This should insert the Subtotal Column before a new year starts.
    4) Next, right-click one of the zero values in the Subtotal column > Calculated Member > Edit Calculation Formula and use this code:
    local currencyvar x;
    local numbervar i;
    local numbervar cindex := CurrentColumnIndex;
    for i := 0 to cindex-1 do
        if year(GridRowColumnValue("Date",i)) =
           year(GridRowColumnValue("Date",cindex-1))  then
        x := x + GridValueAt(CurrentRowIndex, i, CurrentSummaryIndex);
    x;
    Let me know how this goes.
    -Abhilash

  • Insert subtotals in blank cells in Excel

    I just completed a complicated exercise where I expanded upon an existing table using VLOOKUP.  My next step was to insert subtotals in each of the new columns of the modified table.  But, the original subtotals in the original table
    were text, not formulas.   So, I had to insert new subtotal formulas in each cluster of the table.  This was time-consuming, because each grouping contained a different number of rows.
    Q:  How could I have instructed Excel to insert subtotals quickly for each set of rows in the new table, without having to enter a new range of cells in each formula?  The subtotals would have to land in the blank cells underneath each cluster
    of data.
    Doug in York PA
    Douglas R. Eckert

    I'm not quit sure what's your table looks like.
    If you want to excel insert a formula to the blank cells under each cluster of data. You may need to use VBA code to achieve that, otherwise I don't think excel will be so smart that can insert formula automatically.
    And how is it time consuming to enter the formula? since you have said they are all formatted as table, you can take advantage of the column names in the formula.
    Maybe you can share your file with us, meanwhile if you hope to find some VBA code to achieve it, you can post your question to the forum for Excel Developer:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=exceldev
    Best Regards,
    Wind

  • Inserting Totals on the Stock in Warehouse report

    Hi all
    I want to knwo what code or formula must I use to total the stock in warehouse report .
    This report must print each warehouse report on separate papers.
    Thanks

    Hi All
    Managed to sort out the totaling had to insert formula ColSUm

  • Excel 2010 is very slow at inserting automatic subtotals. How can I resolve this?

    How can I resolve this?

    In addition to Mr Oskar's Suggestion..
    Basically inserting subtotal is adding rows for each group and inserting formula for SUM,COUNT etc.If your data has many rows obviously that will take more time.You may try once with PIVOT TABLE
    Best Regards,
    Asadulla Javed, Kolkata
    Please do not forget to click “Vote as Helpful” if any post helps you and
    "Mark as Answer”if it solves the issue.

  • Help getting a formula correct

    Help please, essentially I want to know how to use the formula editor to calculate a number like 6^0.5
    Specifically, I want to insert a number (let's say it's in cell B5) and have it raised to power 0.5. Obviously using Insert\Formula\More functions\POWER but I cannot get the syntax right. Even better, let's say I am getting the 0.5 as a variable in cell B6.
    The manual and Help menu could do with giving one or two specific examples like this beyond the simple ones they cover.
    Thanks

    Hello
    For years spreadsheets are using the ^char as the power operator.
    So you may also use the shorter formulas:
    =B6^0.5
    =B6^B7
    Yvan KOENIG (from FRANCE mercredi 12 décembre 2007 16:04:43)

  • Formulas in Query

    Hi experts
    I have to built a new query with inserting formulas. I created a new structure with 3 charecters in rows field. Now they want another char. in addition when i insert other char above the structure whole keyfigures in structure is duplicating. To avoid such duplication what must i do?
    Other thing i inserted the formulas manually in excel template(Query Output) and saved in workbooks. How can i use this template when ever i changed the query? when i changed the query this template is not appearing.
    Please advice me what to do.
    Regards,

    Hi
    Thanks for ur quick response. My problem is i created a structure by selecting KPI, parametre, and subparameter. Now we need to execute the query along with KPA. If i insert KPA in rows column what ever we created in structer all fields are duplicating to each KPA field.
    Please guide me to get the query out put as per the KPA.
    Regards

  • Formula representation confusion

    New Mac user moving from 25 years on a PC. It can be frustrating as I would prefer to go all native on the MAC and use numbers instead of Excel. I have a question regarding Numbers and formulas. I transferred a file from my PC to my Mac and I can get around fairly well so far but this has stumped me. When I insert formulas they mostly look as I am used to (B13, G25, C52) and formulas the same (=B13:B45), however sometimes after I enter formulas or drag to copy they resemble something I cannot make out. Please see my two screen shots of the formula bar maybe someone can enlighten me. On the one titled "strange formula" I notice the "column headings" at the beginning of the formula but do not recognize the other numbers. I also see they are color coded to the specific cells. This representation of the formula makes it difficult to 1)identify specific cells and 2) edit formulas. The shot marked normal is what I am used to. I do I get back to the original formulas.
    I am running Yosemite 10.10.1 and Numbers 3.5
    Thanks for any assistance

    Hi david,
    Try unchecking "Use header names as labels" under Cell References.
    I think things will return to normal.
    quinn

  • Discoverer Decode To Find Variance

    Hi There,
    I am building a discoverer cross tab report that has the following:
    Actual PLAN2010
    Account XX.XX XX.XX
    Everything is finished except the crosstab layout is giving me trouble calculating the variance. For the life of me, I can't get a variance column. I've tried totals, decode, case. Can't figure it out. Anyone out there have this problem?
    Any help would be greatly appreciated.

    Hi
    What formula would you like? Is it basically the percentage of a row compared to the whole total for the column?
    If so you can use an analytic for this. In fact one of the formaulas available from the Insert Formula from Template button is called difference. There is also another for percentage difference. Take a look. These might be what you want.
    Best wishes
    Michael

  • Checkboxes:check the dish in one table-it checks off ingredients in another

    If you select a dish from a table of recipes (via checkbox) can you make it select all the ingredients for that dish from another table, your master ingredients list?
    I think it has to do with Boolean true/false, but checkboxes seems weird to me...they dont act like normal formula cells.....
    This would be really helpful for shopping/meal planning.........thanks

    Create a new table .
    In cell A1 grab the name of the selected dish
    In column B insert formulas grabbing the required ingredients.
    These formula would use the function VLOOKUP to extract the ingredients required for the dish whose name is in $A$1.
    I'm not sure that checkboxes are the good tool to select the dish because it's easy to have several boxes checked in a single column.
    I feel that using a popup menu would be a better soluce.
    If you really want to use checkboxes, it would be good practice to create a table with a single cell containing a formula displaying an alert if more than one box is checked.
    Yvan KOENIG (VALLAURIS, France) vendredi 5 mars 2010 22:02:42

Maybe you are looking for

  • Problem in JDBC to JDBC scenario

    Hello all, I am working on a JDBC 2 JDBC Scenario. Everything gone fine, data is picked from source, but it is not updated in the destination. I could not see any message related to this in SXMB_MONI it shows only messages related to IDOC, on search

  • Outlook 2003 + iPhone calendar sync problem solved

    Here is how I solved my sync problem. Seems a lot of people have the same problem here with Outlook sync suddenly not working after it worked fine for a long time. I've had Outlook 2003 calendar sync with my iPhone for a few month without any problem

  • Print to E-Mail - NW 7

    Dear All, I wanted to send PO, Sales Order and Other documents to Output Device E-Mail and send it to users; I have defined output device E-Mail with Access Method M. Not Maintained E-Mail address on it. When user need to Print, they select that Outp

  • Error while staging materials into PSA

    Dear experts, in the following situation i try to stage materials of a production material request into my PSA. (Yes i am using the advanced production integration of EWM 9.2 ) When i am executing transaction /SCWM/STAGE the following protocol is giv

  • Question about inbound interface

    Hi! Here, there is an inbound interface using idocs. My question is: if there are five idocs ready to be processed, is the function module executed five times? I mean, one time for each idoc or is there a single function module execution that process