Formula IF ELSE

Hi,
I have 2 columns, PP Jan and PP Feb.
What I want is a FORMULA for BEX that has the logic, IF PP JAN is 0 then PP FEB is 0.
Please provide a  bex formula not the words but a full formula that I can copy paste and test.
this will be helpful
Regards.

hi,
you have given us only the IF part, let us know what is the ELSE part...
I mean if PP JAN is 0 then PP FEB is 0.
           if PP JAN is not zero, then wht should be the value of PP FEB?
If I assume the following :
If PP JAn is 0, then PP FEB is 0
if PP Jan is not 0, then PP FEB is PP FEB
then the formula would be
(PP Jan Boolen operator NOT EQUAL TO 0) * PP FEB        
here when PP Jan = 0, then the condition ('PP Jan' <> 0) will fail and result 0 --> so final output is 0
         when PP Jan has some value, then the condition ('PP Jan' <> 0) will pass and result 1 --> so final output is PP FEB
NOTE : I could not type the symbol for the Boolen operator "NOT EQUAL TO". the symbol gets disappeared after I postthe message.  It is the less than symbol followed by greater than symbol

Similar Messages

  • Formula node: Else if

    I want to use a formula node to make my code smaller.
    I'm comparing a sensor value and depending on the value i have 3 options.
    At the moment i get the error that labview thinks my 'Else if ' is a variabel instead of a command.
    am i doing something wrong? another option is to use a Case-structure but this code is allready in a case so i don't know if this could give trouble.
    thanks,
    Lars
    Attachments:
    Formula Node Error.png ‏53 KB

    Hi James,
    when you want to mix datatypes you go with an 1D array of cluster and unbundle instead of the 2nd IndexArray…
    Waiting for Christian to post with 1 compare function using a complex number that makes even your look big and a Rube
    My own idea:
    Just one comparison…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Error in Formula with Else If

    Dear all,
    I try to use this formula:
    Shared stringvar Frage1;
    Shared numbervar f1Index0;
    Shared stringvar Frage2;
    Shared stringvar Frage3;
    Shared stringvar Frage4;
    If ({@Frage_Position} = 13) then
        Frage1 := {@A1_Fragenfragment};
        f1Index0 := {@Index0}
    Else If {@Frage_Position} = 14 then
        Frage2 := {@A1_Fragenfragment};
    Else If {@Frage_Position} = 15 then
        Frage3 := {@A1_Fragenfragment}
    Else If {@Frage_Position} = 16 then
        Frage4 := {@A1_Fragenfragment}
    But my crystal has a problem with the second IF. It tells me there is a Number required. But I don't no why. What is wrong with my formula. Has anybody an idea?  The used version is CR 2011
    Thanks!

    Hi Gerrit,
    The first 'If' condition should be:
    If ({@Frage_Position} = 13) then
         f1Index0 := {@Index0};   
         Frage1 := {@A1_Fragenfragment};   
    -Abhilash

  • Distinct Formula - nuberVar

    I have the following formula that pulls information from a sub report onto my main page (a summary page) .....this works fine except within these sub codes I have casenumbers, and some casenumbers appear in more than one SubCode. As a result I am trying to figure out how to change this formula to do this count but only to count these SubCodes if the casenumber is unique/distinct within this subset......
    numberVar a1;
    if
    {PendingActions.SubCode}in [120,130,140,145,150,155,160,165,170,175,180,190,195,207,215]
      then a1 := 1

    Thank you very much!!!!
    I needed to change it slightly - the in part never worked, so just changed it to OR and it worked a treat!!
    Thanks again!
    global cases(1000) as number
    global lastCase as number
    if {PendingActions.SubCode} = 120 OR {PendingActions.SubCode} = 130 OR {PendingActions.SubCode} = 140 OR {PendingActions.SubCode} = 145 OR {PendingActions.SubCode} = 150 OR {PendingActions.SubCode} = 155 OR {PendingActions.SubCode} = 160 OR {PendingActions.SubCode} = 165 OR {PendingActions.SubCode} = 170 OR {PendingActions.SubCode} = 175 OR {PendingActions.SubCode} = 180 OR {PendingActions.SubCode} = 190 OR {PendingActions.SubCode} = 195 OR {PendingActions.SubCode} = 207 OR {PendingActions.SubCode} = 215 then
      if {PendingActions.CaseNo} in cases then
        formula = 0
      else
        lastCase = lastCase + 1
        cases(lastCase) = {PendingActions.CaseNo}
        formula = 1
      end if
    else
      formula = 0
    end if

  • BW query conditional formula

    Dear SAP Gurus ...
    I would like on a BW report create a formula as following
    If (characteristic version = B10)
    then (Formula 1)
    else (Formula 2)
    Translate in the BW language it could be something like that :
    ( 'Planning Version' == 'B10' )
    ( formula 1 )
    + ( 'Planning Version' <> 'B10' )
    ( formula 2 )
    My issue is that I don't arrive to create condition Version == 'B10' ... I have the impression that we could create condition only on keys figures value but not on characteristic value .
    The solution is it only in the user exit ? or could I resolve my issue in the query designer ????
    Thnaks a lot

    Hi,
    1)First of all define a variable(Zvar1) for 'Planning Version' characterstyic with replacement path as processing.
    2) Create a new formula in query as follows
    (zvar1 == 'B10' )* ( formula 1 )
    + (NOT (zvar1 == 'B10' )* (FORMULA2)
    1 ) FOR FURTHER INFORMATION ON CREATING A VARIABLE FOR CHARACTERSTIC WITH REPLACEMENT PATH
    refer service.sap.com/bi
    infoindex --> how to calculate with attributes of charactestics.
    2) for Conditional Calculations (IF-THEN-ELSE)
    refer
    http://help.sap.com/saphelp_bw32/helpdata/en/f1/0a5a2ee09411d2acb90000e829fbfe/frameset.htm
    with rgds,
    Anil Kumar Sharma .P

  • Formulas in Work Center

    Hi SAP Gurus...
    When creating a Work Center, on tabs "Capacities" and "Scheduling", there are a lot of formulas.
    I understand the objective of the formulas, and I know how to create new formulas and parameters in SPRO.
    The only thing that I cannot do, is to see some results of the formulas calculation. It only makes a calculation when I run a test in Extras ® Formula ®Test.
    Is this normal, or we can see the results of the formulas somewhere else?
    My objective was to have the formulas working on the results of the tab "Operations" in the Maintenance Order.
    Thanks in advance.

    Hi
    As per Pete Advice
    TCODE : IW49N
    Enter the Work Center and Execute
    In the change Layout... select the actual time start, end, actual Work, Forcast Work...
    It will display the Hours
    - Pithan

  • Creation of Header and Sub headers in Hyperion data forms

    Hello all,
    I have a Hyperion Planning dataform with many account members in columns. I want to create header to differentiate each category of accounts.
    A-Type
    A001
    A002
    B-Type
    B001
    B002
    B003
    How can i do the header creation using XML code of the form extract.
    I need to colour the background of the account members corresponding to the grouping.
    Please revert for the query ASAP.

    Hi,
    About the header creation:-
    Howz about adding a formula row instead of using xml code?
    Like you can add a formula row and label it as A-Type.
    As it is formula row, it will be greyed out.
    Remember to validate the formula or else you might see "#error" in the rows.
    Also you can use label only members for the scenario.
    About the grouping by coding, it will try something by self and then can comment.
    Hope this helps.
    Regards
    -SM

  • Changing databases from MS SQL Express to MySQL in a  Report at runtime

    Hi all,
    I have an issue in changing databases from MS SQL Express to MYSQL or vice versa in a Report at runtime.
    Here is what I do:
    I create a very simple report with the Crystal Report Designer 2008 V 12.3.0.601.
    This report uses a stored procedure to retrieve it's data. I connect to the Database with JDBC.
    I have two Databases with similar schema and procedures: MS SQL Express an MySQL.
    When I create the report with MSSQL all parameters have the '@' character, as they are named. ok.
    I deploy this report in a JSP application with the crystaldecisions SDK an show it in html viewer format.
    The connection to the MSSQL DB gets established by my JSP and the CRJavaHelper.
    I pass the parameters through my URL to the JSP and finally to the CRJavaHelper (addDiscreteParameterValue)
    and everything works fine.
    The challenge starts, when I try to change the Datasource of this report to MySQL at runtime (which is a requirement in my project).
    I successfully can establish the DBConnection, but my stored procedure just doesn't get called!
    The report just displays totally empty, no Exceptions etc. are thrown. In the DB logfile I see the effort to find my procedure
    and that's all. The Statements called by the SDK finds the correct Procedure, but there's no call to the procedure.
    Of course I know, that MS SQL names it's procedures slightly different (';1' at the end), but even when I rename the table Alias to the correct name in CRHelperJava, I get no call to the procedure in MySQL. I also renamed the parameter-fields in changeDataSource(..) by casting the table to IProcedure and working on its methods. Still no success.
    What am I missing to do or what do I do wrong?
    Any suggestions or even solutions?
    Best Regards,
    Tom

    after all I have managed to set param Values, now I'm stuck because the parms seem to have dissappeared in the formula fields. E.g. I receive this Exception:
    <br><br>
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Ausnahme in Formel ""{@DurationMin}"" bei ""{dataProc.Duration}"":
    Dieser Feldname ist unbekannt.---- Error code:-2147467259 Error code name:failed
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2285)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:733)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
         at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
         at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
         at com.crystaldecisions.sdk.occa.report.application.RowsetController.getSQLStatement(SourceFile:1485)
         at org.apache.jsp.report_jsp._jspService(report_jsp.java:360)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
         at java.lang.Thread.run(Unknown Source)
    Caused by: com.crystaldecisions.reports.dataengine.DataEngineException: Ausnahme in Formel ""{@DurationMin}"" bei ""{dataProc.Duration}"":
    Dieser Feldname ist unbekannt.
         at com.crystaldecisions.reports.dataengine.DataSourceManager.do(SourceFile:692)
         at com.crystaldecisions.reports.dataengine.DataSourceManager.new(SourceFile:607)
         at com.crystaldecisions.reports.dataengine.DataSourceManagerCoordinator.a(SourceFile:505)
         at com.crystaldecisions.reports.dataengine.DataSourceManager.a(SourceFile:1060)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:729)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:699)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.i(SourceFile:1308)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.k(SourceFile:1297)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1310)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
         ... 32 more
    Caused by: com.crystaldecisions.reports.formulas.FormulaException: Ausnahme in Formel ""{@DurationMin}"" bei ""{dataProc.Duration}"":
    Dieser Feldname ist unbekannt.
         at com.crystaldecisions.reports.formulas.o.a(SourceFile:1041)
         at com.crystaldecisions.reports.formulas.o.do(SourceFile:1013)
         at com.crystaldecisions.reports.formulas.o.new(SourceFile:688)
         at com.crystaldecisions.reports.formulas.o.else(SourceFile:459)
         at com.crystaldecisions.reports.formulas.f.void(SourceFile:65)
         at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:345)
         at com.crystaldecisions.reports.formulas.r.a(SourceFile:89)
         at com.crystaldecisions.reports.formulas.FormulaInfo.a(SourceFile:570)
         at com.crystaldecisions.reports.formulas.FormulaService.compile(SourceFile:347)
         at com.crystaldecisions.reports.reportdefinition.FormulaCompiler.a(SourceFile:139)
         at com.crystaldecisions.reports.reportdefinition.FormulaFieldDefinitionBase.compile(SourceFile:928)
         at com.crystaldecisions.reports.reportdefinition.o.a(SourceFile:1360)
         at com.crystaldecisions.reports.reportdefinition.o.a(SourceFile:1348)
         at com.crystaldecisions.reports.reportdefinition.o.a(SourceFile:4225)
         at com.crystaldecisions.reports.dataengine.DataSourceManager.do(SourceFile:687)
         ... 41 more
    <br><br>
    where dataProc is my stored procedure and @DurationMin is a function field.
    do I have to call verifyDatabase() when I have changed DBs and set the param Values?
    Is there a defined sequence to execute these steps?
    Edited by: tomspengler on Dec 8, 2011 1:55 PM

  • Weekly Group Total and associated YTD total

    Hello,
    I need to show current week group total and total year to date of the same group.  My columns are Model, Department, Issue.  Currently, the report is grouped on Model, Department and Issue with a filter for date.  Can this be done?   Thank you

    Create a formula field, say {@Current Week Amount} as (basic syntax):
    if datepart("ww", {datefield}) = datepart("ww", CurrentDate) then
      formula = {amount}
    else
      formula = 0
    end if
    You can then sum() this, or place it in a detail line, or whatever.  It will only have a (non-zero) value when the date field is in the current week.
    HTH,
    Carl

  • Problem with Crystal XI reports used with CR plugin for Eclipse 2.0

    Hi All,
    I have downloaded the latest CR plugin for eclipse (2.0), integrated with Eclipse 3.5.
    I tried to use an existing report file created from Crystal Reports version XI in the following two ways.
    1) Including the Crystal Report in to JSP page through viewer tags.
    It worked fine
    2) I tried to include the report in a JSP through using CRJavaHelper.java provided by default in the Web Project created. I changed the connection string, driver name, user ID and password.
    it's throwing up an error:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: InternalFormatterException---- Error code:-2147467259 Error code name:failed
    with the root exception as below:
    09/10/30 18:28:29 Caused by: com.crystaldecisions.reports.formulas.FormulaException: Exception in formula '{@OPENING BAL}' at '{WEEKLYOUTSTANDING1.DOC_DATE}':
    This field name is not known..
    Please help me with this issue.
    Thanks in advance,
    Rgds,
    Praveen Manthena

    Sorry, that's a different stack trace, please find below the actual stack trace when the Formula exception happens.
    09/11/03 13:03:33 com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: InternalFormatterException---- Error code:-2147467259 Error code name:failed
    09/11/03 13:03:33      at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(SourceFile:237)
    09/11/03 13:03:33      at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:147)
    09/11/03 13:03:33      at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:128)
    09/11/03 13:03:33      at com.businessobjects.samples.CRJavaHelper.export(CRJavaHelper.java:644)
    09/11/03 13:03:33      at com.businessobjects.samples.CRJavaHelper.exportPDF(CRJavaHelper.java:465)
    09/11/03 13:03:33      at viewer.other._jspService(_other.java:99)
    09/11/03 13:03:33      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    09/11/03 13:03:33      at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:724)
    09/11/03 13:03:33      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)
    09/11/03 13:03:33      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    09/11/03 13:03:33      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    09/11/03 13:03:33      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    09/11/03 13:03:33      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    09/11/03 13:03:33      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    09/11/03 13:03:33      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    09/11/03 13:03:33      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    09/11/03 13:03:33      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    09/11/03 13:03:33      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    09/11/03 13:03:33      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    09/11/03 13:03:33      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    09/11/03 13:03:33      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    09/11/03 13:03:33      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    09/11/03 13:03:33      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    09/11/03 13:03:33      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    09/11/03 13:03:33      at java.lang.Thread.run(Unknown Source)
    09/11/03 13:03:33 Caused by: com.crystaldecisions.reports.exportinterface2.exceptions.InternalFormatterException: InternalFormatterException
    09/11/03 13:03:33      at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:252)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(SourceFile:642)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(SourceFile:586)
    09/11/03 13:03:33      at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:636)
    09/11/03 13:03:33      at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)
    09/11/03 13:03:33      at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1940)
    09/11/03 13:03:33      at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:657)
    11/03 13:03:33      at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
    09/11/03 13:03:33      at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:521)
    09/11/03 13:03:33      at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
    09/11/03 13:03:33      at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
    09/11/03 13:03:33      at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
    09/11/03 13:03:33      at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
    09/11/03 13:03:33      at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
    09/11/03 13:03:33      at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
    09/11/03 13:03:33      at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:1558)
    09/11/03 13:03:33      at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
    09/11/03 13:03:33      at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(SourceFile:223)
    09/11/03 13:03:33      ... 24 more
    09/11/03 13:03:33 Caused by: com.crystaldecisions.reports.dataengine.DataEngineException: Exception in formula '{@OPENING BAL}' at '{WEEKLYOUTSTANDING1.DOC_DATE}':
    This field name is not known.
    09/11/03 13:03:33      at com.crystaldecisions.reports.dataengine.DataSourceManager.do(SourceFile:692)
    09/11/03 13:03:33      at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:729)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.<init>(SourceFile:179)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.if(SourceFile:135)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatterBase.<init>(SourceFile:75)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.<init>(SourceFile:173)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(SourceFile:152)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:201)
    09/11/03 13:03:33      ... 46 more
    09/11/03 13:03:33 Caused by: com.crystaldecisions.reports.formulas.FormulaException: Exception in formula '{@OPENING BAL}' at '{WEEKLYOUTSTANDING1.DOC_DATE}':
    This field name is not known.
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.o.a(SourceFile:1041)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.o.do(SourceFile:1013)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.o.new(SourceFile:688)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.o.else(SourceFile:459)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:1004)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.f.m(SourceFile:213)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.f(SourceFile:895)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$14.a(SourceFile:327)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.o(SourceFile:665)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.p(SourceFile:878)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$13.a(SourceFile:324)
    /03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$9.a(SourceFile:312)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.i(SourceFile:593)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$8.a(SourceFile:309)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$1.a(SourceFile:288)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.g(SourceFile:469)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.j(SourceFile:454)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.f.a(SourceFile:341)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.f.P(SourceFile:311)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.f.m(SourceFile:204)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.f(SourceFile:895)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$14.a(SourceFile:327)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.o(SourceFile:665)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.p(SourceFile:878)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$13.a(SourceFile:324)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.s(SourceFile:650)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$12.a(SourceFile:321)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.h(SourceFile:635)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$11.a(SourceFile:318)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.c(SourceFile:621)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$10.a(SourceFile:315)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.l(SourceFile:607)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$9.a(SourceFile:312)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.i(SourceFile:593)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$8.a(SourceFile:309)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.n(SourceFile:578)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$7.a(SourceFile:306)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.t(SourceFile:563)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$6.a(SourceFile:303)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.d(SourceFile:548)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$5.a(SourceFile:300)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.u(SourceFile:530)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$4.a(SourceFile:297)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.b(SourceFile:515)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$3.a(SourceFile:294)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.q(SourceFile:500)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$2.a(SourceFile:291)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.k(SourceFile:485)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser$1.a(SourceFile:288)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:733)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.g(SourceFile:469)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.j(SourceFile:454)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.f.R(SourceFile:163)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.f.do(SourceFile:106)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.f.void(SourceFile:84)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:345)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.r.a(SourceFile:89)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaInfo.a(SourceFile:570)
    09/11/03 13:03:33      at com.crystaldecisions.reports.formulas.FormulaService.compile(SourceFile:347)
    09/11/03 13:03:33      at com.crystaldecisions.reports.reportdefinition.FormulaCompiler.a(SourceFile:139)
    09/11/03 13:03:33      at com.crystaldecisions.reports.reportdefinition.FormulaFieldDefinitionBase.compile(SourceFile:928)
    09/11/03 13:03:33      at com.crystaldecisions.reports.reportdefinition.o.a(SourceFile:1360)
    09/11/03 13:03:33      at com.crystaldecisions.reports.reportdefinition.o.a(SourceFile:1348)
    09/11/03 13:03:33      at com.crystaldecisions.reports.reportdefinition.o.a(SourceFile:4225)
    09/11/03 13:03:33      at com.crystaldecisions.reports.dataengine.DataSourceManager.do(SourceFile:687)
    09/11/03 13:03:33      ... 56 more

  • Export to excel file problem

    When I export my Crystal report to excel file (97-2000)
    it does not show the Boxes and lines in excel file.
    I am using CR 11 and MS Office 2003
    please guide me how to solve this problem
    Edited by: mian ghous on Feb 10, 2009 1:59 PM

    But, DUDE, it IS possible using borders!  Each of the border options has a formula field that you can code to tell Crystal in effect "on this line of the report, I want xxx borders". 
    Let's start with the easiest example:  Say you want the line to go around the column heading (full box). then lines down each side of the column until the end, then for the the subtotal you want lines on three sides (all but top).  Set all four borders for the heading field to Single, set the right and left borders for the data field to Single, and set all but the top border for the subtotal field to Single.
    To expand this, let's say there is no subtotal, and you want the last value in the field to have a bottom border.  Set the header and data field borders as above, except for the bottom border of the data field, use the following formula (basic syntax):
    if {field} = NextValue({field}) then
      formula = crNoLine
    else
      formula = crSingleLine
    end if
    If you want the line across the top of the data field on the first detail row (i.e., not around the header), use the same logic as above, except using PreviousValue().
    HTH,
    Carl
    Edited by: Carl Sopchak on Feb 11, 2009 8:25 AM

  • Possible parameter issue

    Post Author: toml_74
    CA Forum: Data Connectivity and SQL
    I am not really sure if this would fall under parameters or if I am not linking my tables correctly but here goes. I have built a report for an alarm company that needs to feature two sections on the report. The first is the customer information i.e. name, address, account number etc...  which would go in the header. The second is signals generated for the alarm customer which I am using as details. The problem I have is that when I run a report on a customer that has no signals, it will not display either part, the customer information or the signals. It just leaves a blank space. If there are signals, everything comes in  correctly and is valid information.
    I have 1 table that is a customer information table linked to a signal history table that uses that same field. For instance customer "Mike" may be account #1025 in the customer table and it is linked to the signal history table in the transmitter field which is also the customer number that shows up with each signal. I am using a one to many relationship. I know the parameters are working correctly since it does display data if there are signals.
    It is not unusual for someone to not have signals so what I would like is to still be able to display the customer information in the heading even without the signals. I was able to use a formula to show a message in case of the null values for the signals and the customer info but that is not acceptable at this point. Any ideas?
    Using CR XI Professional.

    Post Author: GraemeG
    CA Forum: Data Connectivity and SQL
    Hi Tom
    Try this:
    1. Create the left outer join between the CUSTOMER and SIGNALS tables.2. Have NO selection criteria at all3. Create a FROM and a TO date parameter3. Group by CUSTOMER4. Put the CUSTOMER detail in the Group Header5. Add the SIGNAL details into the Detail section6. Create a Formula called 'SignalCount' with the following (sorry, I use basic syntax because I'm old!):       Shared SignalCountVariable as Number       if {SIGNAL.SIGNALDATE} >= {?FromDate} and {SIGNAL.SIGNALDATE} <= {?ToDate} then          SignalCountVariable = SignalCountVariable + 1      end if      formula = SignalCountVariable7. Put this variable into your Detail Section somewhere. It will just be a count of the signals for that customer.8. Create a Formula called 'ResetVariables' with the following (sorry, I use basic syntax):      Shared SignalCountVariable as Number      SignalCountVariable = 0      formula = ''9. Put this new variable in your group header. All it does it set the shared variable to zero for a new group.10. In your section expert for the Detail section, put a formula against 'Supress (No drilldown)': Shared SignalCountVariable as Number      if SignalCountVariable = 0 then          formula = true      else          formula = false      end if11. This will print the detail section if the signal is within the date range and suppress it if it isn't.12. Right-click the Group Footer and select 'Insert section below'. This will create a section called Group Footer #1b.13. Put any summary information into Group Footer #1a and your message 'No activity during this period' in Group Footer #1b.14. In your section expert against Group Footer #1a, put a formula against 'Supress (No drilldown)':     Shared SignalCountVariable as Number     if SignalCountVariable = 0 then         formula = true     else         formula = false     end if15. Group Footer #1a will now only print your summary info if there is any valid signal records.16. In your section expert against Group Footer #1a, put a formula against 'Supress (No drilldown)':     Shared SignalCountVariable as Number     if SignalCountVariable = 0 then         formula = true     else         formula = false     end if17. Group Footer #1b will now only print your message if there is no valid signal records.
    This should do the trick - I tried it out on a customer/transaction relationship and it works okay. Let me know if it works for you!
    Regards
    Graeme

  • Highlighting Duplicates

    I wrote a formula which identifies duplicate string values in the details section
    of a report. The formula returns True if a duplicate, False if not. The records
    must be sorted first. The formula is called @DupeFormula. It works correctly.
    I use it frequently to conditionally highlight the duplicates in the report.
    Because this would be a useful utility, I want to convert it to a custom function
    and save it to the Crystal Repository. The function is called cdFindDupes.
    The associated formula is called @DupeFormulaUsingFunction. This function
    and its associated formula work correctly for every record EXCEPT the
    first and last.
    Below are both formulas and the custom function.
    I have experimented with other structures but remain puzzled as to how
    'to employ a custom function for this purpose.
    Thank you,
    Art
    '=========================================================
    '@DupeFormula
    If OnFirstRecord Then
        If = NextValue () Then
            Formula = True
        Else
            Formula = False
        End If
    ElseIf OnLastRecord Then
        If = PreviousValue () Then   
            Formula = True
        Else
            Formula = False
        End If
    Else
        If = NextValue () _
         Or = PreviousValue () Then
            Formula = True
        Else
            Formula = False
        End If
    End If
    '================================================
    Function cd_FindDupes (bFirstRecord As Boolean,bLastRecord As Boolean, _
        strPrev As String,strCurrent As String,strNext As String)
    If bFirstRecord Then
        If strCurrent = strNext Then
            cd_FindDupes = True
        Else
            cd_FindDupes = False
        End If
    ElseIf bLastRecord Then
        If strCurrent = strPrev Then   
            cd_FindDupes = True
        Else
            cd_FindDupes = False
        End If
    Else
        If strCurrent = strNext _
         Or strCurrent = strPrev Then
            cd_FindDupes = True
        Else
            cd_FindDupes = False
        End If
    End If
    End Function
    '============================================================
    '@DupeFormulaUsingFunction
    formula = cd_FindDupes (OnFirstRecord, OnLastRecord,PreviousValue () , _
          ,NextValue () )
    'Works properly EXCEPT for first and last record, where it returns null (or blank).

    Carl,
    Per your suggestion I rewrote the formula as follows.
    Good idea! It works perfectly now!
    Thank you,
    Art
    ===========================================================
    '@DupeFormulaUsingFunction
    Dim sPrevJob As String
    Dim sNextJob As String
    If OnFirstRecord then
        sPrevJob = ""
    Else
        sPrevJob = PreviousValue()
    End If
    If OnLastRecord then
        sNextJob = ""
    Else
        sNextJob = NextValue ()
    End If
    formula = cd_FindDupes (OnFirstRecord, OnLastRecord, sPrevJob , ,sNextJob )

  • Alternating Color Subreport details

    I've created a subreport with detail lines that can be suppressed if the value of my database field is zero.  So on some reports I could have 7 lines.. and some I could have three (for example) depending on the data.  I have to make this table an alternating color table. So if the first line has a white background, the next line needs to have a silver background.. if the line before a line has a silver background.. that line needs to have a while background.
    Example of report with 5 detail lines showing:
    White
    Silver
    White
    Silver
    White
    Example with 8 detail lines showing:
    White
    Silver
    White
    Silver
    White
    Silver
    White
    Silver
    There are only 10 detail lines available and the first one is always white. I've been trying to write a formula in the background color properties in my section expert for each detail line that would do this for me.. I was going for something like:
    If previous value is crWhite then
    formula = crSilver
    else
    formula = crWhite
    end if
    I know this is wrong because I can't find a function that will do it for me. Does anyone know a simple way to do this?
    Thanks!

    Is this in a detail format or group header/footer?  Is the format conditionally suppressed?  These will change the formula.  If it's in a group header/footer, use (basic syntax):
    global toggleColor as number
    toggleColor = 1 - toggleColor
    if toggleColor = 0 then
      formula = crSilver
    else
      formula = crWhite
    end if
    If records are conditionally suppressed, use the formula above, but add an IF statement around the toggleColor = toggleColor - 1 line with the condition "NOT (whatever your suppression formula is)".
    HTH,
    Carl

  • About get max value

    Hi,
      I want to know how to sign a summary field with some colors.
      For example,I made a report about every itemgroup's sales in each client.So I made two groups,the first is client,and the other is itemgroup,the sales is the summary field,I want to format the max sales values with red colors in the every client group,but the function maxium can not support the summary field,how can I do? Thanks.

    You could use a Database Command as your data source, and aggregate the sales per item group in the command, so the command returns client, item group, and total sales per client/item group.
    Then, in the Font Color (or background color) formula, use (basic syntax):
    if {sales} = maximum({sales}, {client})) then
      formula = crRed
    else
      formula = crBlack
    end if
    (Another thought I had using the detail data, but I'm not sure it'll work, is to use
    if {sales} = maximum(sum({sales}, {item group}), {client})
      formula = crRed
    else
      formula = crBlack
    end if
    I don't know if you can nest aggregates, though...)
    HTH,
    Carl

Maybe you are looking for

  • Oracle Data modeler 3.1.0.700 freeze on MAC OSX 10.7.3

    Hello, I was used Data modeler 3.0.x on the same machine with no problems (use SVN+3 active users , atc...) When I installed version 3.1.0.700 and model migration I have problem with stability of program With any action, java freeze after a few minut

  • Print to go and Windows 8.1 not working

    Recently moved to Windows 8.1. System on-line and full access to internet. Select Print to go  and when it tries to connect it says that the ptg web page can not be opened. This heppens when the window to select the playbook device should open Old XP

  • HT1338 How do I install Driver- Mac 05X10.6, OS X 10.7, OS X 10.8?

    I'm trying to install the above, by combining my MacBook Air with my HP Officejet Pro 8600 Plus. Wireless, I want to be able to scan to e-mail in order to send a doc at this point I am able to print wireless, but I am having problems with the scanner

  • Accounting entries in import PO

    Hi, Can anyone tell me the accounting entries involved in GR and Inv verification of import PO. Which all duties( like CVD, E cess on CVD) are getting updated in registers and which registers are getting updated? regards B Shar

  • QM Master Data templates & Initial study templates

    Hi Experts, Iam in the new project in QM Implementaion, Please send the Master data templates, QM presentation & Initial study templates to my Email id: [email protected]   [email protected] Thanking you in advance Selvam.s