Formula error

Hi!!!.
I have a problem in Analyzer. I have a column with a Formula that is: ( 'G4A' 0 ) * ( NODIM ( 'G4A' * 0 ) + 1 ). This column gives the result 1 or 0. The Overall result of this column is the SUM of the numbers. That´s works perfect.
The problem is that I create a new colum with a Formula that is: SUMGT of the other column. But it´s not showing the Overall Result in every field of the column, only the number 1.
Does anyone knows what´s happening?
Thanks in advance.
Regards.

In the query properties, try and change the option to 'Display result always' and see if it helps.

Similar Messages

  • SSRS 2008 Column Chart with Calculated Series (moving average) "formula error - there are not enough data points for the period" error

    I have a simple column chart grouping on 1 value on the category axis.  For simplicity's sake, we are plotting $ amounts grouping by Month on the category axis.  I right click on the data series and choose "Add calculated series...".  I choose moving average.  I want to move the average over at least 2 periods.
    When I run the report, I get the error "Formula error - there are not enough data points for the period".  The way the report is, I never have a guaranteed number of categories (there could be one or there could be 5).  When there is 2 or more, the chart renders fine, however, when there is only 1 value, instead of suppressing the moving average line, I get that error and the chart shows nothing.
    I don't think this is entirely acceptable for our end users.  At a minimum, I would think the moving average line would be suppressed instead of hiding the entire chart.  Does anyone know of any workarounds or do I have to enter another ms. connect bug/design consideration.
    Thank you,
    Dan

    I was having the same error while trying to plot a moving average across 7 days. The work around I found was rather simple.
    If you right click your report in the solution explorer and select "View Code" it will give you the underlying XML of the report. Find the entry for the value of your calculated series and enter a formula to dynamically create your periods.
    <ChartFormulaParameter Name="Period">
                      <Value>=IIf(Count(Fields!Calls.Value) >= 7 ,7, (Count(Fields!Calls.Value)))</Value>
    </ChartFormulaParameter>
    What I'm doing here is getting the row count of records returned in the chart. If the returned rows are greater than or equal to 7 (The amount of days I want the average) it will set the points to 7. If not, it will set the number to the amount of returned rows. So far this has worked great. I'm probably going to add more code to handle no records returned although in my case that shouldn't happen but, you never know.
    A side note:
    If you open the calculated series properties in the designer, you will notice the number of periods is set to "0". If you change this it will overwrite your custom formula in the XML.

  • Changing database server on a report with subreports = formula error

    Good morning,
    I currently have several reports that print out, and were developed attached to our development database. However, I need to be able to dynamically change the server that the report uses according to the server configured in our application. Each of these reports contains one or more subreports, which point to the same server and database as the main report. All reports, both the main and subreports, are based on manual SQL commands.
    I'm running into some significant issues. So significant, in fact, that we were forced to deploy our application with reports that had been switched to our production environment in the designer in order to get them functional. This is, obviously, not an acceptable or long-term solution.
    I've gone round and round a couple of times I get different results with different methods of changing this information. I'll outline them below. First, my current code:
    ConnectionInfo connectionInfo = new ConnectionInfo();
                    TableLogOnInfo logOnInfo = new TableLogOnInfo();
                    Console.WriteLine("Report \"{0}\"", report.Name);
                    foreach (Table table in report.Database.Tables)
                        logOnInfo = table.LogOnInfo;
                        connectionInfo = new ConnectionInfo(logOnInfo.ConnectionInfo);
                        connectionInfo.ServerName = "panthers-dev";
                        connectionInfo.DatabaseName = "Prosys";
                        logOnInfo.ConnectionInfo = connectionInfo;
                        //table.Location = "Prosys.dbo." + table.Location.Substring(table.Location.LastIndexOf(".") + 1);
                        table.ApplyLogOnInfo(logOnInfo);
                        table.LogOnInfo.ConnectionInfo = connectionInfo;
                        Console.WriteLine("\t\"{0}\": \"{1}\", \"{2}\", \"{3}\", {4}", table.Name, table.LogOnInfo.ConnectionInfo.ServerName, table.LogOnInfo.ConnectionInfo.DatabaseName, table.Location, table.TestConnectivity());
                    foreach (Section section in report.ReportDefinition.Sections)
                        foreach (ReportObject ro in section.ReportObjects)
                            if (ro.Kind == ReportObjectKind.SubreportObject)
                                SubreportObject sro = (SubreportObject)ro;
                                ReportDocument subreport = report.OpenSubreport(sro.SubreportName);
                                Console.WriteLine("\tSubreport \"{0}\"", subreport.Name);
                                foreach (Table table in subreport.Database.Tables)
                                    logOnInfo = table.LogOnInfo;
                                    connectionInfo = new ConnectionInfo(logOnInfo.ConnectionInfo);
                                    connectionInfo.ServerName = "panthers-dev";
                                    connectionInfo.DatabaseName = "Prosys";
                                    logOnInfo.ConnectionInfo = connectionInfo;
                                    //table.Location = "Prosys.dbo." + table.Location.Substring(table.Location.LastIndexOf(".") + 1);
                                    table.ApplyLogOnInfo(logOnInfo);
                                    table.LogOnInfo.ConnectionInfo = connectionInfo;
                                    Console.WriteLine("\t\t\"{0}\": \"{1}\", \"{2}\", \"{3}\", {4}", table.Name, table.LogOnInfo.ConnectionInfo.ServerName, table.LogOnInfo.ConnectionInfo.DatabaseName, table.Location, table.TestConnectivity());
    Using this approach, my console output prints what I expect and want to see: the correct server and database information, and True for TestConnectivity for all reports and subreports. The two reports I have that have no subreports print out correctly, with data from the proper server. However, all of the reports with subreports fail with formula errors. If this procedure is not run, they work just fine on either server.
    I had to place the assignment of table.LogOnInfo.ConnectionInfo = connectionInfo after the call to ApplyLogOnInfo, as that function did not behave as expected. If I perform the assignment first (or not at all), then calling ApplyLogOnInfo on the outer report's table did NOT affect the values of its ConnectionInfo object, but it DID affect the values of the ConnectionInfo object's of its subreports!
    In any event, if anyone could post a code sample of changing database connection information on a report containing subreports, I would appreciate it.
    Any help is greatly appreciated and anxiously awaited!

    Hi Adam,
    Code for changing database connection information on a report containing subreports :
    private ReportDocument northwindCustomersReport;
        private void ConfigureCrystalReports()
            northwindCustomersReport = new ReportDocument();
            string reportPath = Server.MapPath("NorthwindCustomers.rpt");
            northwindCustomersReport.Load(reportPath);
            ConnectionInfo connectionInfo = new ConnectionInfo();
            connectionInfo.ServerName = "localhost";
            connectionInfo.DatabaseName = "Northwind";
            connectionInfo.IntegratedSecurity = false;
            SetDBLogonForReport(connectionInfo, northwindCustomersReport);
            SetDBLogonForSubreports(connectionInfo, northwindCustomersReport);
            crystalReportViewer.ReportSource = northwindCustomersReport;
        private void Page_Init(object sender, EventArgs e)
            ConfigureCrystalReports();
        private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
            Tables tables = reportDocument.Database.Tables;
            foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
                TableLogOnInfo tableLogonInfo = table.LogOnInfo;
                tableLogonInfo.ConnectionInfo = connectionInfo;
                table.ApplyLogOnInfo(tableLogonInfo);
        private void SetDBLogonForSubreports(ConnectionInfo connectionInfo, ReportDocument reportDocument)
            Sections sections = reportDocument.ReportDefinition.Sections;
            foreach (Section section in sections)
                ReportObjects reportObjects = section.ReportObjects;
                foreach (ReportObject reportObject in reportObjects)
                    if (reportObject.Kind == ReportObjectKind.SubreportObject)
                        SubreportObject subreportObject = (SubreportObject)reportObject;
                        ReportDocument subReportDocument = subreportObject.OpenSubreport(subreportObject.SubreportName);
                        SetDBLogonForReport(connectionInfo, subReportDocument);
    Hope this helps!!
    Regards,
    Shweta

  • Getting "Unexpected end of formula" error in user-defined function

    I created a user-defined function and registered it successfully in Discoverer Admin (10g), and it shows up in Discoverer Plus. However, when I call the function, I get this error:
    "Error in formula -- unexpected end of formula"
    If I hard-code in parameters, I can successfully run the function as such from Oracle SQL Developer:
    SELECT PAYLINETOT('2324', '111', to_date('01-Sep-2010'), to_date('31-Oct-2010'))
    FROM DUAL;
    But I still get the same error if I enter this in the calculation dialog in Discoverer:
    PAYLINETOT('2324', '111', to_date('01-Sep-2010'), to_date('31-Oct-2010'))
    Any idea what's going on and how to get this to work?

    Michael,
    I tried your suggestion, and this time I got a different error message that said that the function had not been registered with the EUL. I thought I had registered it, but when I checked, the return data type was wrong. I corrected it, and the function is "valid" in Discoverer Admin. Yet, when I go back to Discoverer Plus and attempt to use the function (and yes, I logged out and logged back in), I get the same error message:
    "Error in formula - unexpected end of formula - Error: Function PAYLINETOT has not been registered with the EUL."
    Any idea where the disconnect is? Are these two separate errors? How could Discoverer Admin tell me that the function is registered and Discoverer Plus tell me otherwise? And yes, I've made sure that the "Available in Desktop/Plus" checkbox is checked.

  • BI Integrated Planning - Formula - Formula error: } expected

    Hi
    BI Integrated Planning -
    While defining the Formula (FOX), we are getting the below error
    'Formula error: } expected'
    Kindly inform if any one has faced the similar problem / any solution
    Thanks in advance
    G K Mohata

    Giriraj,
    This seems like a syntax error in your formula. It must be specifying a line number where it is finding the error. Please check that or maybe the previous line, for any data processing statement where you missed a <b>}</b>. Could be that you missed in a statement, one or more characteristics. If you cant find it, please paste your whole code here along with complete error message.
    Hope this helps.

  • I am trying to copy and paste a series of numbers from numbers to pages but I keep getting a red triangle indicating formula error. Is there a way a way to open pasting options to copy just the value to avoid writing every single number??! Thanks..

    I am trying to copy and paste a series of numbers that were calculated in a numbers spreadsheet to a document on pages but I keep getting a red triangle indicating a formula error. Is there a way to open pasting options to copy just the value to avoid writing every single number??! Thanks..

    Hi Jess'D,
    Have you tried Menu>Edit>Paste Formula Results?
    quinn

  • Member formula error while retrieving in smartview?

    I am trying to execute this member formula
    IF (@ISMBR(@RELATIVE("SENDER_PROJECT",0)))
    IF ("Allocation Pct" <> #Missing)
    "Allocation Amount"=("Account_sub1"->"PFL_Projects"->@MEMBER(@SUBSTRING(@NAME(@CURRMBR("Project")),6))*"Allocation Pct");
    ELSE
    "Allocation Amount"=("Account_sub2"->"PFL_Projects"->@MEMBER(@SUBSTRING(@NAME(@CURRMBR("Project")),6))*(@PRIORS( SKIPMISSING, "Allocation Pct")));
    ENDIF;
    ENDIF;
    When I try to retrieve the data for this formula, I get the following error.
    Error(1200370)Error executing formula for [R_Segment Allocation Amount] (line 1): attempt to cross a null member in function [@X]
    Is there anything I can modify to not have a null member.
    Thanks!!

    Thanks! You were right I created the a sub hierarchy with the specific members and substring command was set a little wrong, I had one higher value.
    I reset it to as shown below and it worked!
    @MEMBER(@SUBSTRING(@NAME(@CURRMBR("RETL_H_PROJET")),5))

  • BI IP - Planning Function Type Formula Error "Characteristic not Supported"

    Hi all,
    I have created a planning function type formula with very simple code. The code was copied from SAP Library and FISCPER was replaced with 0CALDAY. I continue to get an error 'Characteristic 0CALDAY is not supported".
    The characteristic 0CALDAY is in the Infoprovider and the aggregation level. I have tried 'To Characteristic Usage' with both changed and in condition.
    DATA D1 TYPE D.
    DATA D2 TYPE D.
    DATA I1 TYPE I.
    DATA I2 TYPE I.
    DATA CALDAY TYPE 0CALDAY.
    FOREACH CALDAY.
    CALCULATE 1ST DAY OF ZCALEND
    D1 = C2DATE( CALDAY, S ).
    CALCULATE LAST DAY OF CALDAY
    D2 = C2DATE( CALDAY, E ).
    CALCULATE THE DIFFERENCE BETWEEN LAST AND 1ST DAY MINUS TWO DAYS
    I2 = 2.
    I1 = D2 - D1 - I2.
        MESSAGE I001(UPF) WITH 'DIFFERENCE' I1.
    ENDFOR.
    Thank you in advance for any help.
    Teri

    Thank you very much for your reply. What would you suggest? I must use 0CALDAY.  As you can tell I am very new to IP, I have tried other options for example:
    DATA ZDAYS TYPE I.
    DATA ZDT TYPE ZCALSTART.
    DATA ZDF TYPE ZCALEND.
    ZDT = ZCALSTART.
    ZDF = ZCALEND.
    ZDAYS = ZDT-ZDF.
    {KF,ZDT,ZDF} = ZDAYS.
    I received an error "ZCALSTART could not be recognized"
    I also tried to call a function. 'FIMA_DAYS_AND_MONTHS_AND_YEARS'.
    DATA D1 TYPE D.
    DATA D2 TYPE D.
    DATA DD TYPE I.
    DATA CALS TYPE ZCALSTART.
    DATA CALE TYPE ZCALEND.
    D1 = CALS.
    D2 = CALE.
    CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
      EXPORTING
        I_DATE_FROM          = D1
      I_KEY_DAY_FROM       =
        I_DATE_TO            = D2
      I_KEY_DAY_TO         =
      I_FLG_SEPARATE       = ' '
    IMPORTING
       E_DAYS               = DD.
      E_MONTHS             =
      E_YEARS              =
    I received an error "Types of parameter I_DATE_FROM () and variable D1(D) are inconsistent".  From what I could find they should be consistant.  Please provide any suggestions. Thank you!
    Teri
    Edited by: teri chandler on Mar 30, 2010 3:26 PM

  • Fast Formula Error APP-FF-33629 (Unexpected End of Entry_Value)

    Hi,
    My formula successfully verified. I am getting following error message when application is trying to invoke the same formula. Error message says that:
    Error: “Unexpected End of ENTRY_VALUE(T)=:control entry_value line (trigger for Ded_Amt2)”.
    Cause: A formula was invoked via application Foundation. It was invoked using a #USR trigger step. One of the INPUT= or UDCOL= or OUTPUT= lines appears to have been truncated.
    Action: Please refer to your local support.
    I did not find any document on metalink for the same error.
    Please help me to resolve this error.
    Thanks in Advance.
    Regard.

    Are you still the getting the same error?
    there might be something missing while creating an element.
    What is the input value for the element?
    Is the name of your formula XX_TEST?
    And are you getting this error while verifying the formula?
    Try with following.
    INPUTS are HOURS_WORKED
    DEFAULT FOR XX_TRAVEL_RATE IS 0
    Inputs are HOURS_WORKED
    If (HOURS_WORKED  > 0) then
    L_WAGE = HOURS_WORKED * XX_TRAVEL_RATE
    Else
    L_WAGE =  1  *  XX_TRAVEL_RATE
    RETURN L_WAGE

  • Getting formula error

    While validating the formula ,getting this error ,please help me all essbase gurus
    Syntax error in input MDX query on line 2 at token '@MEMBER' Average Gross Severity
    Formula is :
    CASE
    When IS ([Reporting Date].CurrentMember,[Current ME Avg]) Then Avg ([Current ME Avg].[Jul 12]:[Current ME Avg].[Sep 12],[Accounts].[Gross Severity])
    ELSE Avg ([Prior ME Avg].[Jun 12]:[Prior ME Avg].[Aug 12],[Accounts].[Gross Severity])
    END
    Please help all the essbase gurus

    I hit this error in Planning for an upper level Account member of type NeverShare. In my case, the upper level member in question need was shared by 2 different planning databases, so Planning was trying to create an XREF formula for the upper level member was of type NeverShare. I resolved this issue by using the UDA member HSP_NOLINK, which tell's planning not to create the XREF formula.

  • Print time formula error when used in cross-tab

    I have a cross-table that I'm using to calculate revenue, which is based on a conditional formula.  Within that formula is a Running Total field.  When I use this field I get the following error message: "A PRINT TIME FORMULA THAT MODIFIES VARIABLES IS USED IN A CHART OR MAP".
    My problem is that I am using the Running Total because the values are duplicated by the number of detail lines.  I think this should be a relatively easy fix, but I am stumped. 
    Thank you,
    Any help you can provide is greatly appreciated!!!
    Marlene
    Crystal Reports Professional, 11.5.8.826 (on Progress Server)

    Please re-post if this is still an issue or purchase a case and have a dedicated support
    engineer work with your directly

  • Formula error in Webi Report

    Hi,
    I created a variable in my webi report using below formula. It is validated but when I use this variable in my report giving #ERROR. Not dispalying the value.
    =Count([Loan Number]) Where ([Interest Amt]+[Principal Amt] > 0)
    Loan Number datatype is varchar2 and other two are number fields.
    We are in BOXI R2 version.
    Please suggest where I am going wrong.
    Thanks,
    Ven Men

    Ven Men,
    The preferred function in WebI is "if", so here is a stab at re-addressing your test on principle amount + loan amount:
    =count(if( [Interest Amt] + [Principal Amt] > 0;[Loan Number]);0)
    thanks,
    John

  • Sorting rows creates formula errors

    I have a simple Numbers 09 table to track money into and out of my Bank account and to show the balance. Data is entered as below:
    Column A is date of entry
    Row A1, A2 etc are the relevent dates of entry.
    Col B is Cash In, Col C is cash out and Col D shows the balance.
    For example D24 =D23+(B24-C24) i.e previous balance(cell D23) +cash in (B24)-cash out(C24) on date A24.
    This works fine if the entries are built up progressively as time passes.
    However, if with hindsight I need to change the date of an existing entry, when I re-sort column A by (using the arrow on the top of Col A to "Sort Ascending") the table re-sorts OK but the formula in Col D of the row that has moved is now incorrect. Instead of relating to the new "balance" cell in col D immediately above it in its new position, it clings on to the cell ref in D which it had before it was moved.
    I then have to copy the formula down from the D cell above it to get the correct cell ref into place and then copy that cell one down to ensure that all Col D values are correct.
    Excel didn't work like this.
    All cells in my formula are "Relative" and none are "Absolute"
    If anyone knows how to avoid this frustration I'd be truly grateful.

    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

  • Dimension formula error

    Hello all,
    I have created the following dimension formula in dimension Groups(Currency):
    'IIF([DataSrcDim].H1.CurrentMember is [DataSrcDim].H1.[20_ELIM], [GROUPS].MemberX-[GROUPS].MemberY-[GROUPS].MemberZ-[GROUPS].MemberW,NULL),SOLVE_ORDER=50
    In short the objective of this formula is to perform a calculation (X-Y-Z-W) on GROUPS dimension members if the DATASRC dimension member is 20_ELIM.
    However, I get the following error when I process the GROUPS dimension:
    -"[GROUPS].[#ABCD] The dimension '[DATASRCDIM]' was not found in the cube when the string, [DATASRCDIM].[H1], was parsed"
    I get this error even though the DATASRC dimension exists in th cube/application.
    Would any of you have an idea why this error occurs and if so how can I correct it?
    Thank you & regards
    Raja

    Hi,
    Please try the formula as:
    IIF([DATASRC].CurrentMember = "20_ELIM", [GROUPS].[MemberX]-[GROUPS].[MemberY]-[GROUPS].[MemberZ]-[GROUPS].[MemberW],NULL);SOLVE_ORDER=50
    Hope this helps.

  • Formula error in Validation

    Hi Gurus,
    I want to have a validation on FB60 Document Date (BLDAT) which should not be more than 60 days in past compared to Posting Date.
    But am unable to write a validation check for this as system is throwing syntax error in all the ways I wrote the formula.
    I tried writing check like this
    BKPF-BLDAT > ( BKPF-BUDAT - 30 )
    Please help me...
    Thanks in advance,
    Mallik

    Hi
    You said it should not be more than 60 days from posting date. 
    x = doc date
    y = postig date
    so your conditions could be :
    x = y-60
    x> y-60
    so (x = y-60) .or. (x > y-60).
    Is it correct ?
    Regards

  • Update rules -Empty or invalid formula error message (Message no. RSAR140)

    Greetings to All,
         I am trying to activate update rules from a DSO into a cube.  I am getting the following error message:
    Empty or invalid formula 43D46N8MX3MNP06MF69ZQ8L50
    Message no. RSAR140
         The problem is that I don't know how to lookup a formula by the technical name.  I know you can right click to show technical names of the InfoObjects, but I don't know how to show the technical names of the <i>formulas</i>.  Does anyone know some way to figure out which formula is the one causing the error when all I know is the technical name?
    Thanks,
    Sarah-Jane

    Hi!
      Thanks so much.  That makes perfect sense, but when I look at that table using transaction SE16, and I click on the "Number of Entries" button, I get a message saying there are zero rows in the table.  Could this be possible?  I know this sounds really weird...
      Just in general, how do I found out the names of tables like RSUPDFORM?  Is there a data dictionary that I can query?
    Thank You,
    Sarah-Jane

Maybe you are looking for

  • Using thunderbolt to firewire adapter for target disc mode

    I need to transfer several GB of data from a 2011 iMac running OS 10.6 to a new Mac Mini running OS 10.9. Can I connect the older iMac to the newer Mini with a Thunderbolt to Firewire adapter and boot the iMac into Target Disc Mode and transfer the d

  • HT1692 Can I sync my iPad 3 calendar to my husband's IPod touch 4th

    I just got a iPad 3 for Christmas and got my husband a iPod touch 4. I want to sync my calendar to his iPod he has a separate account. Is it possible?

  • OBPM 10gR3 Dynamic Role Assignment at user login

    Hi, For all the great integration with LDAP in 10gR3, unfortunately, the system is unable to deal with dynamically-defined LDAP groups. Our goal is to apply a BPM Role to ALL humans defined in our LDAP. All humans happen to already be defined by a dy

  • Endnote X3 Problems

    My endnote x3 has been unusable since yesterday (well, hadn't used it for a few weeks but was working on Snow Leopard before). Every time I open a library or even try to create one, it crashes. Have tried all other forums (official endnote and all) t

  • Export Workspace Batch Scheduler

    Hi, I was wondering if there is anyway to export the log information from the Workspace Batch Scheduler.  I know you can export batches for command line scheduling, but I'm wondering if there was a way to export the actual information from the batch