Formula Field in a Suppression x+2 to supress the whole row?

I want to suppress the whole row based on the  result of the my field formula of empty string "".
Can the suppress formula hold an @field formula to suppress row where the "" string is report field content?

Never, MIND... I am a newbie, and I just figured this one out on my own.
Works great.

Similar Messages

  • Select records based on formula field

    I have a formula field that I am trying to sort data by. I want to eliminate records that come up with a 0 in this formula field. I tried select expert, but it doesn't recognize the field.

    Hi Steve,
    You cannot sort on a formula field that uses printime functions or executes in the 'whileprintingrecords' phase - example would be running totals or formulae based on shared variables from the subreport.
    What you can however do is, suppress records where the formula returns zero.
    To do this, go to the Section Expert > Select the section you wish to suppress > Click the formula button beside 'Suppress' and use this code"
    {@Formula_name} = 0
    -Abhilash

  • Not able to clear out a formula field value when variables are equal to 0

    I am trying to calculate the difference between a formula field from a main report and a formula field from a subreport. When i run the report i get a correct difference calculation only when both formula fields have a value different than 0. When both values are 0 then the difference calculation shows the last item quantity from the formula field in the subreport that had different values than 0.  It looks like the difference calculation is not being clear out before jumping to the next value calculation.

    try to clear the variable values once done with calculation like
    whileprintingrecords;
    shared numbervar i:=0;
    regards,
    Raghavendra

  • Working with 3 Reports -- How to Display Summary/Formula field in Each Repo

    I have 3 Report that represent three Company.
    Each Company/Report has their report Details and field totals at the bottom.
    Now what I am trying to accomplish is that I need to add all three companies grand total and sum it up and display at the bottom of each reports.
    FYI, I have created matrix report and i pass user parameter where user can choose which company's report him/her would like to run so for example: if user run Company_1 then at the bottom i want to display all the companies Grand Total.Each reports have 6 columns and all the columns are same in each report except the data change by company. and with the same thing with Company_2, and Company_3
    Now, I tried to use create a separate query and tried to use DATA LINK but it didn't work due to very awkward report design.
    Is there a way where i can create a formula field and write PL/SQL and display at the bottom of my report.
    Please let me know if its possible I will very appreciated.
    Thank You

    Thanks for your reply,
    Actually, I would done that before taking Company's parameter off but i have to send out this report to all three companies thats resoan why I put companies paramters.
    Also, I have solved that problem by creating new query that will give me total off each company so in my Data Model. I have Q_1 (main query), Q_2 (Company 1 query which give me total for each field), Q_3 (Company 2 query....), Q_4
    and call those all fields and RESET AT REPORT level.
    so, no mather which company i choose in my parameter field it will give me final total at the bottom of my report for all the departments.
    Thank You,

  • Running Total - How to summarize a formula field?

    I'm sorry if this comes over as stupid but I have got myself quite messed up and am not 100% au fait with Crystal Reporting.
    The aim of my report is to calculate the costs of selected tests and to calculate a grand total of all tests at the end.
    I have created a group of  jobtests.TestTypeName
    Details
    1. testTypeName - to show Test Name that is being calcutaed - Database field
    2. Count ({jobTests.testTypeName}, {jobTests.testTypeName}) - to show number of tests of that type - this is a formula field
    3. Analysis1 - to show the cost of that test type - Database field
    4. {@CountTests/TestType} * {jobTests.AnalysisN1} - to show the number of tests per test type mulitplied by the cost of that test type - this is a formula field
    Report footer
    Count ({jobTests.testTypeName}) - to count the total number of tests
    MY PROBLEM - I need to see the sum of 4, this would be my grand total
    Trying to run the Running Total I can't get it to Summarize the field 4 because it is a formula field.
    What can I do?
    Thanks.

    You can't do a SUM on a formula that uses another aggregate function.  However, for both 4 and your grand total, you just need to SUM() (with ",{jobTests.testTypeName}" for the #4 calc), as the database field will be the cost for each test in each record.
    HTH,
    Carl

  • How to intercept variables in report's formula field via TOAD?

    I have a case in this report. I have a report that generates a list of items with info of their initial stock, stock movements and final stock. no problem for the in and out stock movements.
    but there's a slight problem with the initial stock. I wrote a formula field that executes several select queries to obtain the inital stock. The XML report format roughly looks like this:
    Item_Name Initial_Stock Stock_In Stock_Out Final_Stock
    <?Item_name?> <?CF_Init?> <?In?> <?Out?> <?CF_Final?>
    As you can see, the Initial Stock and Final stock data is obtained through a formula field. And the select queries I mentioned above are employed in the formula fields. The rest of the fields are obtained directly from the SQL field in the report. Right now the report generates all items, whether their initial stock is zero or not. What I'm trying to do is not displaying items whose initial stock, stock in, stock out and final stock are zero. thanks
    Edited by: 801264 on Oct 14, 2010 9:22 PM
    Edited by: 801264 on Oct 14, 2010 10:39 PM

    Well you could try upgrading to a more recent Java runtime for starters.
    This is a native crash, which means something went wrong outside of Java code. The trouble is that you can't know WHERE it happens; The JVM itself is only a client of the machine it runs in and can be made unstable by outside influence. Under Linux it takes only one wonky shared library. It could be a driver. It could be a problem in the kernel. It could be another process. It could be anything.
    It could also be a bug in the JVM of course, but the only way you have a right to report it as a bug is if you try to see if the problem persists under the latest update.

  • Passing value to formula field in CR XI from vb6

    currently using vb6 and testing CR XI.  Attempting to pass a value to a formula field in a CR XI report and getting the an "invalid use of property"  How do you pass a value from code in vb6 to the formula in the report?
    current code is as follows:
    Set app = New craxdrt.Application
    Set cr = app.OpenReport("test.rpt")
    Dim crystalFormFieldDefns As craxdrt.FormulaFieldDefinitions
    Dim crystalFormFieldDefn As craxdrt.FormulaFieldDefinition
    Set crystalFormFieldDefns = cr.FormulaFields
    Set crystalFormFieldDefns.Item(0).FormulaFieldName = ("{@InvList}")
    crystalFormFieldDefn.Text = Chr$(34) & selFormula & Chr$(34)
    crvInvoice.ReportSource = cr
    crvInvoice.ViewReport

    Hi, Gerry;
    I think the logic is off a bit.
    Instead of:
    Set crystalFormFieldDefns.Item(0).FormulaFieldName = ("{@InvList}")
    Try:
    For Each crystalFormFieldDefn In crystalFormFieldDefns
    If crystalFormFieldDefns.Name = "{@InvList}" Then
    crystalFormFieldDefn.Text = Chr$(34) & selFormula & Chr$(34)
    Regards,
    Jonathan

  • Suppress whole row with 0s

    I have a report where the analyst would like the whole row to be suppressed if the 4 money columns are 0. I tried to use the following tag:
    <?xdofx:if (TWOYRSACTUAL>1) AND (LASTYRACTUAL>1) AND (CURRENTACTUAL>1) AND (CURRENTESTIMATE >1)?>
    and
    <?xdofx:if (TWOYRSACTUAL=0) AND (LASTYRACTUAL=0) AND (CURRENTACTUAL=0) AND (CURRENTESTIMATE=0)?>
    thanks for your help!

    Try
    <?if TWOYRSACTUAL!=0 or LASTYRACTUAL!=0 or CURRENTACTUAL!=0 or CURRENTESTIMATE!=0?>
    your_line_here
    <?end if?>

  • Suppress 0 in a formula field in BEx query

    How do I suppress a field value if its zero in BEx query?

    thanks.
    But where in the general tab.
    Under Display> Hide> If I select 'Always Hide', its hiding the field description also, but I just want to supress the value.
    and the formula field is part of the structure.
    Edited by: AbiUdhay on Mar 11, 2011 5:08 PM

  • Suppress a Group Based on the Results of a Formula

    Hi All,
    Been reading through this forum as I am new to Crystal.  I have a report that must display a group of records along with their detail if  TotQOH > RunningTotal.  I tried using the running totals field in Crystal but I could not reference a formula in the selection criteria since it must be evaluated later.
    Reading up on this forum I figured out how to create my own running totals (also referenced the application's help article ' Creating running totals using a formula') but now I can't seem to suppress the entire group and corresponsing detail records when TotQOH > RunningTotal.    Using the Formatting Formulas in the workshop tree of the Formula Editor, I can suppress any of the fields within the group but this leaves me with a bunch of blank lines in the output.
    I'm using Crystal 10 and simply want to suppress the entire group and the corresponding detail while printing the records when:
    TotQOH > RunningTotal
    I read this thread: Selection Formula based on Running Total, but could not get this to work for the entire group, just the fields within the group.
    Any ideas would be welcome.  Thank you very much.

    I'll have to research subreports - never worked with them.  After I suppressed all the fields, I went to the section expert and checked Suppress Blank Section, ran the report and nothing printed.  There are many records that meet the criteria TotQOH > RunningTotal, so I'm going to do more research and take a look at subreports.

  • Formula field won't display

    Post Author: Richard bates
    CA Forum: General
    Sorry for the overly-generic subject, but I'm not exactly sure how to classify this problem.  I'm convinced it's a Crystal Reports bug but would be delighted to be convinced otherwise.  Here's the issue:
    Whenever I create a formula field in the format of trim(field A) " "trim(fieldB) and use the field in a report, if field B is null the data for the entire field will be skipped in the report.  Doesn't matter if the formula is in a group header or the detail line, the result is the same.  I've created a formula with the obvious conditionals, ie, if field B is null then trim(field A) else trim(fieldA)" " trim(fieldB) but that doesn't work either.  I am trying to combine two address lines.  In most cases there is not a second address field, so most addresses don't display using this method.  Someone on another board suggested a workaround which I am using (placing the second address line in it's own group and then suppressing the group when empty) but I have another instance where this won't work, ie, in the detail line.  I'm trying to actually combined three fields (first name, last name, and title).  In this case it is title which is usually blank.
    Am I missing something head-slapping obvious here?
    Thanks in advance
    Richard Bates

    Post Author: foghat
    CA Forum: General
    Seems to me I've come across the same thing way back.  It is a crystal thing, bug or just the odd way crystal does some stuff, I'm not sure (is there a difference?)  I can't remember what my fix was, think I may have had some logic similar to what you tried, but I had more than 2 address fields to compare, it sucked. You could try this (basic syntax):dim str0 as stringdim str1 as stringstr0 = trim{field A}str1 = iif (isnull ( {field B} ), "", trim {field B})formula = str0 & " " & str1 Add the iff logic to str0 as well if field A can be null. Things like this are why, when possible, I like to build as much logic as possible into a database view and then just use crystal for displaying the data.

  • How to appear a formula field for once at a fom-like report?

    Hi All,
    I have created a formula field and then set the property "Maximum Records per page" to the value 12 for the repeating frame containing this field and all other fields.
    Now I want to make an exception for that formula field
    I want it to be appeared only for one time not 12 times!
    how to do this Plz?

    Hi,
    I assume that your formula column is at a higher level than your repeating frame (in other case it's not clear which value you want to display). Bring the filed representing the formula column behind the repeating frame, then it's diplayed only once.
    Regards
    Rainer

  • Error when embedding a formula field in a text box in a subreport

    I am rewriting an application that merges data from a .net application into a Crystal Report template and displays it in the application.  In VS2003, I have had no problems with the reports as they are written.  In VS2010, I get an unusual error on some reports with subreports. 
    In one report I have multiple subreports.  In those subreports, I have formula fields.  If I take one of those formula fields and embed it into a Text Box and attempt to generate the report through the application, I get the following error:
    This field name is not known.
    Details: errorKind
    Error in File Confirm {20564DCB-5CA4-4832-8931-DF1CC6C54784}.rpt:
    Error in formula  optionStrike:
    '{Command.OPTIONSTRIKETIME}'
    This field name is not known.
    Details: errorKind
    If I take the very same field out of the text box and put it directly on the report, the report will generate without error.
    In the case above, OPTIONSTRIKETIME is a string field.  This rules out any conversion errors from a date/number/etc to string for the text box.
    Has anyone else encountered this error?  If so, what can be done to avoid it?

    Hello,
    Thank you for the info.
    Which driver are you using for the dataset?
    If you are using ADO.Plus add this to your App.Config file:
    <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
    </startup>
    Thank you
    Don

  • How to use the distinct key in formula field in SAP Crystal Reports

    I want to use the distinct key in formula field in SAP Crystal reports.
    When i'm using it shows an error.
    Please suggest me....

    Hi,
    Use DistinctCount keyword directly for your calculation instead of count(distinct(....
    Alternatively, if you want to avoid duplicate records, under "File" > "Report Options" make the 'Select Distinct Records' as True.
    Thanks,
    Raghavendra

  • How can we pass a formula field of Main report to SubRepor's Parameter. in CryastlReport 11

    Post Author: Nikhil
    CA Forum: General
    Hi
    Crystal Report version : 11.0.0.1282 Standard
    There is MainReport1. Other is Subreport1
    Scenario : 
    MainReport1 having paramater PdateMain1 as dateTime.
    SubReport1 having parameter dateSub1 ,dateSub2.
    datesub1 is used for One datasource1 (DataSource- XML -from webApplication)  , dateSub2 is used for datasource2 (DataSource-SQl Procedure ) ( This is requirement as i need to used two datasource )
    Value of datesub1 and datesub1 is same (it is created automatical as it is part of SQLProcedure and XML Query ) but get prompted twice for the same valuewhich  is not desirable. so for that i have created main report and calling this subreport in main report.
    Now i want's to pass PdataMain1 to Parameter datesub1  and datesub2. I am able to pass  PdataMain1 to datesub1.  through Change Sub report link ( Option on right click of report).and it is working fine,
    Problem : 
    But Subreport link Menu does not allow to bind PdateMain1 to datesub2 as it is allready bind with datasub2.
    to overcome this i created one Formula field in main report as fMaindate1 which copy date from Parameter PdateMain1.and bind ( link) the  fMaindate1 to datesub2.  when i link this , subreport does not display any thing at all. It it a limitation of crystal report or i am missing some thing , Is it like that we can pass formula of ,main report to subreport Paramater in Crystal 11 Standard , if we can anyone please Provide help on this.
    This can be easily achieve through application programming but my need to get this done in Report itself.Thanks
    Nikhil Patel

    Post Author: Jagan
    CA Forum: Crystal Reports
    Shared variables. Looked in the help at variables - shared

Maybe you are looking for

  • How do I transfer stuff from my old macbook pro to the new one

    I recently bought a new MacBook. How do I transfer the stuff on my old Macbook -- music, movies, photos, apps, documents etc. to the new on?

  • Adding scanned art for Album Art

    I followed the itunes help on this topic and checked out some of the previous threads about album art with no real solutions to my problem: I am using iTunes 7 and my brother just recorded an indie album which I added to my iTunes library. I then sca

  • DMZ static nat!

    Hi Experts, I believe this everyone is doing OK and getting along with your are doing? I have this funny scenario that happened on ASA 8.4 I configured recently for DMZ static nat. See the topology attached. I did configure the inside with a PAT obje

  • SOLVED: How to move XFCE4 config between computers

    Hi In a severely optimistic moment I decided to create identical XFCE configs on my laptop and desktop computers, by copying my desktop ~/.config/xfce4 directory to the same location on my laptop. I assumed this would work, but now my panel applicati

  • Need help about best practices - Add DI or add WP

    Hello Experts, I am facing on a strategic problem. We want to add new application Server (= Instance Dialog) to our CI/DB. But I am note sure that is the good way! Is it better to add New Work Process in existing Dialog Instance? Or, should we create