Condition suppression in crystal reports

I need help in conditional suppression of data in a crystal report I have created. It is hard to explain so I will show you with example data that has no reference to real data.
Here is an example of non suppressed data in two columns.
Column A     Column B
****               a1
****               a2
****               a3
####             a2
!!!!                 a1
%%%%        a5
I need to be able to conditionally suppress the above example to show all records in Column B where the value in column A is the same and one row of Column be has the entry of a1. The data should look like the following after the conditional suppression.
Column A     Column B
****               a1
****               a2
****               a3
!!!!                 a1
If you compare the two examples you should be able to follow what I am after. You can see that the following entries in column A, **** and !!!! also have the entry a1 in column B. For this reason I want them returned. I also want all other values returned where this is seen. You can see that the second example of data has three records in Column B where the entry in Column A is the same and it has a1 in column B at least once.
I hope you can understand this, it was very hard to explain. Let me know if I can offer any further information.

There is a way to do this, but it's going to be a bit tricky.  Assuming that both columns come from the same table, which I'll call "MyTable", here's what you'll need to do:
1.  Add a second copy of "MyTable" to the report.  Crystal will warn you that the table is already in the report and ask if you want to "alias" it, at which point it will be added to the report as "MyTable_1".
2.  Link FROM MyTable TO MyTable_1 on ColumnA (as well as any other required fields if necessary).
3.  In the Select Expert, add the following to the selection criteria:
{MyTable.ColumnA} = "a1"
4.  In the report, use the ColumnA and ColumnB fields from MyTable_1.
-Dell

Similar Messages

  • Conditional Suppress in BW report

    Dear all expert,
    I had the following situation. i had created 2 selection in the columns which is "last month visits", where the details of selection is KF - "number of activities" and Cal. year/Month - "Last Month". another selection is "Current Month visits", where the details of selection is KF - "Number of activities" and Cal. year / month - "Current Calendar Month".
    But the report i just want to show the overall result "Last Month Visits" instead of the details while for the "Current Month visits" i will need to show the details and overall result.
    How can i suppress the details of the "Last Month visits" columns but showing only the overall result?
    Can i change the customize the word "overall result" to others title as i wanted?
    Thank You.

    Hi Alexfooyk,
    Could you please elaborate on what are the dimensions for this report?
    Because, as I see it if you have created 2 key figure selections in the columns on the key figure: 'No of activities'. One selection is restricted to 'Last Month' variable of 'Calendar Month' and another key figure is to 'Current Month' variable on 'Calendar Month'.
    If I try to replicate this and create a query, I'll only see 2 key figures on my report - No of activities aggregated as per the Calendar Month.
    Please elaborate the requirement so that I can try to provide some solution.
    Regards,
    Sri.

  • Conditional Formatting in Crystal Reports

    Hi,
      I am trying to create a layout where in need the child items to show up in Italics. Can any one help me with this?
    Thank you.

    You can consider the following:
    1. Highlighting Expert.
    You can select the field you want with the Italic format, right click it and the select Highlighting expert.  put in the condition, and select Font style = Italic.
    2. You can also put in formula the field itselg.
    If you rightclick on the field you want,, go to the font tab, on the right of the "Style", click on the pen and put in the condition.  Italic = crItalic.

  • Token of Crystal report not showing in SAP B1

    While using double where condition in SAP Crystal Report below is given format
    Parameter@SELECT Code, Name FROM ABC WHERE Code1 = '@Code1' AND Code2 = '@Code2'
    it showing perfect in SAP crystal report while checking from SAP B1 it coming blank list.
    Please tell me what to do.

    Hi Pankaj,
    Please repost to the SAP Business One space
    -Abhilash

  • Conditional Suppression - No Data

    I am working with Conditional Suppression via Studio (reporting).
    I am trying to suppress a formula column/row where there is no data (the column is dividing the value by 12). I received #ERROR since the column formula cannot divide "no data by 12.
    Any suggestions?

    Hi
    One of the options in the Advanced Suppression is to suppress if the data value is 'ERROR' so could you use this. Alternatively put the advanced suppression on the column that contains the 'No Data' value rather than on the one containing the formula.
    Hope this helps
    Stuart

  • Crystal report 2011 - Suppress formula?

    I'm not new to Crystal reports 2011, but I am new to this forum. Excuse me if my question is already answered in another discussion thread, but I've searched the forum, but could not find an answer easily.
    In my report I need to total the amount per day per security. If one of the totals per day have a negative amount, my report should show all dates for that security.
    To make it more clear to you I've put in two examples
    Example 1:
    From date      PfGrp        Por         Security      ISIN          Custody     Amount
    15-1-2015      aaa           por_a      Sec01        123456      Cust01      5000
    15-1-2015      aaa           por_b      Sec01        123456      Cust02      -6000
    16-1-2015      aaa           por_a      Sec01        123456      Cust01       5000
    16-1-2015      aaa           por_b      Sec01        123456      Cust02       1000
    17-1-2015      aaa           por_a      Sec01        123456      Cust01       2000
    17-1-2015      aaa           por_b      Sec01        123456      Cust02       1000
    Expected output:
    From date      PfGrp        Por         Security      ISIN          Custody     Amount
    15-1-2015      aaa                          Sec01        123456                         -1000
    16-1-2015      aaa                          Sec01        123456                          6000
    17-1-2015      aaa                          Sec01        123456                          3000
    Output expected because the total amount on 15-1-2015 is negative. Because of this negative total amount the other dates have to be shown as well.(although they are positive)
    Example 2:
    From date      PfGrp        Por         Security      ISIN          Custody     Amount
    15-1-2015      aaa           por_a      Sec01        123456      Cust01       5000
    15-1-2015      aaa           por_b      Sec01        123456      Cust02       6000
    16-1-2015      aaa           por_a      Sec01        123456      Cust01       5000
    16-1-2015      aaa           por_b      Sec01        123456      Cust02       1000
    17-1-2015      aaa           por_a      Sec01        123456      Cust01       2000
    17-1-2015      aaa           por_b      Sec01        123456      Cust02      -1000
    No output expected because all the totals per day are positive.
    Regards, Peter.

    Hi Peter,
    Try this please:
    1) Save the existing report with a new name. You should now have two copies of the same report - let's call them A and B.
    2) Open Report A.
    3) Insert a Group on the Security Field first and then on the Date field. Set the Date Field to 'Print for Each Day'.
    4) Create a formula (@Groups) with this code and place this on Group Header #2:
    WhilePrintingRecords;
    stringvar groups;
    If Sum ({Amount}, {Date}) < 0 then
        If Instr(groups,{Security}) = 0 then   
            groups := groups + {Security} + ",";   
    groups;
    5) Suppress all sections of this report except the Report Footer.
    6) Go ahead and Insert a Subreport. In the Insert Subreport dialog box, browse to the Report B and place it on the Report Footer.
    7) Edit the Subreport so that it has the same groups as the Main Report (or Report A)
    8) Right-click the Subreport > Change Subreport Links > Move the @Groups formula to the Pane on the right > Uncheck the option 'Select data in Subreport based on Field' > Click OK.
    9) Get inside the Subreport > Click the Report Option > Selection Formulas > Record and use this code:
    Not({Security} IN Split({?Pm-@Groups},","))
    IF you have some existing selection formula in there, then you would need to add this condition with an AND clause.
    Hope this helps.
    The reason we have to add a Subreport is because you're trying to suppress a higher group based on a summary that appears on a lower group.
    If you're reporting off of tables, you should be able to use a SQL Expression Field to display the summary for Group #2 and use this summary to suppress the higher section based on another logic!
    -Abhilash

  • Crystal report 8.5/ changing the format conditionally

    Post Author: Amsa
    CA Forum: Crystal Reports
    Using Cyrstal Report 8.5  I have a letter on the crystal report which get populated from the sql database by the sql procedure..That letter includes the Name and the full address. And if the customer has the apt number it prints that as well.So this is how it goes. Amin Shah91 09 Tample AveApt # 31Elmont NY, 11373     so each line there is accociated with the field from the stored procedure. But what happens is that when the customer doesnt have the Apt # that line prints empty and there comes a blank line. So for that I have to shift that TownState row up.   I don't know how to do this. If anyone can help  please.Thanks.   

    Post Author: rroberson
    CA Forum: Crystal Reports
    split up the section the address is in so that Apt # 31 is in its own section (can all still be in details or a single group -- you just break it apart using "insert section below" or by splitting the section with your mouse).  Lines below show breaking of sections. __________  Amin Shah91 09 Tample Ave ____________ Apt # 31_____________Elmont NY, 11373_______________  Then choose "suppress blank section" for the Apt #31 section.  If you have anything in the section besides database fields you will need to conditionally suppress those as well so that the section really is blank (and therefore will be suppressed by the 'suppress blank section'). 

  • How to suppress "enter parameter values" screen in crystal reports for Visu

    Hi,
        I am passing parameters to the report through program.  But still the "Enter Parameter Values" Dialog is shown every time I run the application.  Code used to pass parameters is given below:
                    rptCBBookRpt objRptCBBook = new rptCBBookRpt();
                    objRptCBBook.SetParameterValue("@Branch", strBranch);
                    objRptCBBook.SetParameterValue("@CoName", mdlFinIF.objCommon.CoName);
                    objRptCBBook.SetParameterValue("@Heading", strHeading);
                    objRptCBBook.SetParameterValue("@UserInfo", mdlFinIF.objCommon.ReportInfo());
    How can I suppress the "Enter Parameter Values" dialog.  Please help.
    Cris Evan

    Well, no. But this being a community, not technical support, you may get a response, perhaps even an actual answer, or you may not...
    If you are not getting a response or an answer, you may want to consider obtaining a dedicated support here:
    http://store.businessobjects.com/store/bobjamer/en_US/pd/productID.98078100?resid=S6I@hgoHAkEAAGsiyVkAAAAR&rests=1282226845369
    Look at samples here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Check out the [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23] - it will apply to your version of CR...
    And of course, developer help files.
    - Ludek

  • How to suppress a blank section in crystal report

    how to suppress a blank section in crystal report. although i have set the property
    "suppress blank section "=true ,still i m unable to suppress my section
    please help me to cope up this issue.
    thanks in advance

    One recommendation I make, when troubleshooting suppression issues, is to put a visible border of the section, area or object to be suppressed, and borders for all objects contained in the section or area.  This will help isolate what's suppressed, and whether the section is truly blank or has content that's blank.
    Furthermore, I recommend indicating which SDK and what version you're using when posting.
    Sincerely,
    Ted Ueda

  • Displaying record based on the condition in Crystal report

    Hi All,
    I want to display certain records in crystal based on some condition.
    For example,
    If I am having 5 student records like,
    Name  Mark1 Mark2 Mark3 Total
    aaa      40       50       60      150
    abc      30       60       40       130
    tcr        25      25        25       75
    Now in table i have only 4 fields (STUNAME, MARK1, MARK2, MARK3).
    I have to calculate the total at runtime and if total is greater than 150, then actual record should display in report.
    For example, I can use formula to calculate total but I can calculate total only after each record prints. But i want to calculate total internally only it should display in report if condition satisfies. I dont want to keep one more field for total in crystal report.
    Please help me on this.

    If the filter is not "pushed" down to the database, then Crystal will pull all of the data into memory and then filter it there.  This is not a big deal if you only have a couple of records, but it can significantly slow down a report that is pulling in more than a few records.
    An alternative, if your report is just linking tables in the Database Expert, would be to create a SQL Expression that adds the three fields together.  Using this in the Select Expert WILL push the condition down to the database.
    If you're using a command instead of linking table, they you would add this to the Where clause of the comment.  If you're using a stored proc instead of tables or a command, you would want to do this filter in the code for the stored proc.
    -Dell
    Message was edited by: Dell Stinnett-Christy

  • Suppress zero in crystal report

    Dear all expert,
    i have a situation as below, i have a field in my crystal report which show 0005000, 0000000, 0000020 or 0000300. how can suppress the zero infront of the it so that it only show 5000, 0, 20 or 300?
    Thank You.

    Hi,
    the field i direct grad and drop from the tables into my report, so where can i use this function and how to do that? Sorry for that becasue im new in Business Object.
    Thank You.

  • Hyperion Financial Report Conditional Suppression

    Hi All,
    In HFR ......I have a requirement.....
    IN Rows there are 2 DIMS : Vendors:Level_0,1,2 & Market:Level_0...
    The requirment is that the report should show the hierarchy of Vendors Dimension ONLY if we have data for Level_0 Vendors & Level_0 Market combination.....
    So if the data doesnt exist for Level_0 Vendors & Level_0 Market combination ; the hierarchy of vendors: Level_1 & level_2 with Market:Level_0 should NOT be visible in the report.
    I ve taken Vendors:Level_0,1,2 & Market:Level_0 ( I ve cherry picked a single Level_0 market member for a row) in a row and applied the COnditional suppression : *( Level vendors=0 AND Level market=0) AND Current Row Value =0.*
    The condition works good when there in nodata for Vendors:Level_0,1,2 ,...........But when there is data for Vendors:Level_1,2 ...they are visible in report which is NOT desired.......how can i suppress these Vendors:Level_1,2 members
    Thanks

    If level 1, 2 have more than one child and has data, this is difficult to achieve.

  • Suppressing NuLL values in Crystal Report

    Hi....
    I m facing a problem,i use asp.net and  I have designed a Crystal Report.I had to place Text Objects in the the details section along with the corresponding Records from Database as per the Reports Design needed. Now i want that the NULL values in the report should be suppressed and should be disappeared  along with the static Text Objects. Like as it happens in Grid view in ASP .net
    Please Help me to solve this issue..
    Thank you

    I think i have been able to do it with little compliated suppress logic.
    When i design the report this is how it looks in design mode:
    Line1  Field1
    Line2  Field2
    Line3  Field3
    and when Field 2 is null or contains a blank string the output should look like:
    Line1  Field1
    Line3  Field3
    1. Initially just design the text fields and db fields without any suppress.
    2. Check Suppress for Line 2 and use the formula: isnull({Table.Field2}) . Do nothing to Field2. This should suppress Line2 when Field2 is null, you can also add StrCmp({Table.Field2}, "") = 0 for checking blank strings.
    3. Now copy Object Line3 and Field3 and place on top of Line2 and Field2 respectively so that their positions match. Let these newly copied objects be Line3_1 and Field3_1 respectively.
    4. Line3_1 and Field3_1 should be suppressed if Field2 contains a non null value. So for both of them Click Suppress checkbox and add the following in the format formula editor not isnull({Table.Field2})
    5. If Line3_1 and Field3_1 are visible = Field2 is null\empty -> Line3 and Field3 should be suppressed or the output would be like:
    Line1 Field1
    Line3 Field3
    Line3 Field3
    So to remove the duplicate:
    For both of them Click Suppress checkbox and add the following in the format formula editor isnull({Table.Field2})
    Hope this helps. I will see if I can attach a sample report based on xtreme here.

  • Suppress Export Option Using Crystal Reports Web Report Viewer (viewrpt.cwr

    We have an existing Crystal Report that is being displayed using the Crystal Enterprise Web Viewer (viewrpt.cwr) in a call like this: http://<servername>:8080/CrystalReports/viewrpt.cwr?id=<an id value>etc.
    When the report is displayed, the toolbar has an export icon that allows the user to export the report to PDF, Excel, etc.
    I want to suppress the export feature, but retain the print feature.  I have read the documentation that I could find on the web for this viewer and have been unable to find a way to do this.
    Does anyone know how this could be done or a different way to display the report with a different viewer that would avoid having to redesign the report itself?

    CMC is Central Management Console. Logon to CMC
    http://server:8080/businessobjects/enterprise115/admin/en/admin.cwr
    Now select the report from the folder and click on the tab Rights and click on the advanced option for the user and here Under the report you have an option "Export the report data" check the deny option for this and apply. Now this option will apply for that particular user only, if you want to apply for all the users under one group then click on advanced for that group and change the option.
    Regards,
    Raghavendra.G

  • Crystal report - Suppressing particular Group by

    HI,
    I have a particular crystal report in which we have multiple group by. Different options are given to the user to select the group by while executing the report. If the user selects a group by 1, and 5 then the report should be grouped by only the 1 and 5 and grouping should not be done on the basis of 2,3 and 4.
    I have inserted multiple group by in the report. I am suppressing the groups 2,3 and 4 when only 1 and 5 are selected. The groups are not visible but they still impact the result and the data shown is grouped at all the levels.
    Can anyone please let me know the solution for the same.
    Regards,
    Simran

    hi Simran,
    you need to create a set of formulae to group on and not use suppression on hard coded groups. for example, create a formula such as
    if {?groupone} = 'Country' then {my country field} else
    if {?groupone} = 'First Name' then {my first name field} else
    you need to create one formula for every group level as well as a parameter for every group. for example groupfour
    if {?groupfour} = 'Country' then {my country field} else
    if {?groupfour} = 'First Name' then {my first name field} else
    if {?groupfour} = 'No Group' then ''
    you can suppress the group header and footer for Group 4 when {?groupfour} = ''
    please see the attached report as an example. change the .txt extension to .rpt after you extract the contents.
    cheers,
    jamie

Maybe you are looking for

  • More than one inventory on cluster nodes?

    Hello, I have installed OracleDB EE 10gR2 in CFC, two nodes with RH and Serviceguard. DB 'binaries' are installed on local storage (both nodes) and datafiles on shared storage. oraInventory is at local storage... Now I have to deploy OracleAS Infrast

  • Exclude a customr from COPA report

    We have a COPA report where we have two row in the form (KE35). It's a cost based report First row - Total sales - the characteristics are by sales document type Second row - Rebate sales - by Material groups In the rport (KE33) - they are slecting a

  • "BAPI_DOCUMENT_CHECKOUTVIEW2" -not fetching the original to local path ..

    Hi, When i use the function module "BAPI_DOCUMENT_CHECKOUTVIEW2" it is working fine. But i call in my webdynpro application , it is not placing the original to the given path . Plz give me the Solution Regards, Rani.

  • EndSeparator in JMS adapter

    Hi, Has anybody used end separtor for each record in JMS adapter? I would appreciate, if anybody provides any information. Thank you, Jag.

  • How to transfer the information to two new Tungsten E2s

    My husband and I both have Palms.  My husband's Z22 died, and my Tungsten E2 is old and not holding a charge very well anymore.  I have purchased 2 new (used) Tungsten E2s.  I tried synching the new ones to the old ones just by plugging them in and h