Subreport question

I have a report based on a file called ADDRESS BOOK. In that file there is a field for ID#, and another for CUSTOMER NAME.
That file is linked to a second file called CONTRACTS by the field called ID#, which appears in both files.
I've created a parameter that prompts the user to enter a specific ID#, and the report then returns data from ADDRESS BOOK that exists for that ID#. (That ID# only appears once in ADDRESS BOOK.) It also returns data from CONTRACTS for that ID#, which only appears once in CONTRACTS.
But a single CUSTOMER NAME (in CONTRACTS) can be associated with multiple ID#'s, with each of those ID#'s linking to a single record in CONTRACTS.
I want to create a subreport that lists all of the records in CONTRACTS that have the same CUSTOMER NAME as does the ID# that was selected by the parameter.
Any ideas how to accomplish this?
thanks, jon w

Hi Sukhrai & Ananth2009,
I tried both of your suggestions. Neither worked, but I re-read what I typed and found an error that may have caused that.
In my description above, I stated "But a single CUSTOMER NAME (in CONTRACTS) can be associated with multiple ID#s, with each of those ID#s linking to a single record in CONTRACTS."
But the file listed there should be ADDRESS BOOK, not CONTRACTS. There is no CUSTOMER NAME field in CONTRACTS.
So to re-phrase my problem:
1. A parameter prompts the user to select an ID# from ADDRESS BOOK (which is linked to CONTRACTS by the field called ID#). The user then sees various fields from a single record in each of those two files, and one of the fields from ADDRESS BOOK is CUSTOMER NAME.
2. Other records in CONTRACTS are held by the same customer, but the CUSTOMER NAME field is present only in ADDRESS BOOK. I want the subreport to use the CUSTOMER NAME that gets listed (from ADDRESS BOOK), and then list any records from CONTRACTS that has that same CUSTOMER NAME.
thx jon

Similar Messages

  • Question on Subreport

    Hello All,
            I have a question on how to add the page header and page footer with in the subreport?

    Hi..
    Go in sub report and create a formula like
    Whilereadingrecords;
    true
    create a group on the above formula and go in Group expertOptionsand check Repeat Group header on each page option.
    This group should be the first level group among all groups
    This group will act as fake group header and fake page footer.
    Thanks,
    Sastry

  • Subreport parameter question

    I have a report on liquor licensees that brings in zero to several values (extra license privileges)  in a subreport.  It works ok but I can't get a parameter/selection criteria to work.  I can get it to select based on the parameters, but when I don't put in any parameters I don't get any records, and when I put in all the choices, I get them, but I don't get the records with no extra license privileges, i.e., no records in the subreport's table.
    The report already has several parameters that don't draw from the subreport.
    I tried using a left outer join.
    I don't know if I have the subreport links right.  Right now I'm back to the beginning, without that parameter.  Will someone please help me?
    Edited by: Lauri Malone on Aug 21, 2008 10:46 PM

    Then I see two options:
    1. Conditionally suppress details section and here are the steps
    - have subreport in Details A section and pass subreports results as shared variable to main report
    - Conditionally suppress all other Details (B,C,D,.etc) sections based on shared variable
    2. Switch main report and subreport
    -Your current subreport could be a main report where based on parameters you can concatenate a list of records that you want to select.
    - Your current main report could be added as a subreport in Report Footer and list of records passed as a parameter in subreport links
    I am ready to explain details depending on which option you prefer

  • How to develp a subreport in the same page of the main report and processed when is called

    SSRS 2012
    Hi guys,
    I am developing a report that includes a subreport.
    therefore The report is made up by 2 sections:
    1) Show a grid (several rows - may be 100 or more - and some columns). It represent high level info  (Each row represent a specific item)
    2) The user click on a Row/column (eg: Item1, to see details that must be shown as graph.
    Here the problem: Searching info about SSRS reporting for subreports, drilldown, nested report and so on, no ones accomplish the requirements for the following reasons:
    1) Subreports: NOT open in the same page. The user must <go back> to see detail for other items, such as Item 2....
    2) Nested and DrillDown: Process data as the Main report (they are hidden and displayed after user action). In my case this leads to performance problem, because: if the main report has 200 objects (it means 200 graphs processed and hidden at the same time
    for the main reports).
    3) DrillThrough and Subreport: The detail data are processed only when the user select the interested item in the main report. Here the problem: the report is shown externally.
    Please, it there any possibility to have a subreport (or anything else) to be executed in the same report as the main report and processed only when the user make action?
    Thanks for your help.

    Hi Fasttrack2,
    According to your description, there is a main report with more than 100 rows of summary information, when users click the item of the row, the report need to jump to detail information shows as graph. The problem you are facing is that you are not sure
    subreport, drilldown or drillthrough report should be used? You hope to set display detail information in the main report and keep high performance of report.
    In Reporting Services, each subreport instance is a separate query execution and a separate report processing task. Subreports are recommended when there are just a few subreport instances. We should not use subreports inside a group when there are many
    group instances, instead, consider using drillthrough reports. Drilldown reports process all data even when the data is first hidden. In order to improve the performance of the report, we can split drilldown reports into parameterized drillthrough reports,
    because Drillthrough reports do not run until a user clicks the drillthrough link in the main report.
    In this case, we can consider using drilldown or drillthrough report. In drilldown report, when we click a plus or minus button to expand or collapse a section of a report, the detail data will be displayed in place. By using drillthrough report, when we
    click the link in the main report, the detail data will be displayed, we can come back to the main report by click return button in the drillthrough report.
    Reference:
    Troubleshooting Reports: Report Performance
    Drillthrough, Drilldown, Subreports, and Nested Data Regions
    If you have any more questions, please feel free to ask.
    Best Regards,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • Controlling execution of subreport on main Report in ssrs 2008 R2

    Controlling execution of subreport on main Report in ssrs
    Hi,
    Am using more than 100 subreports in my main report using ssrs 2008 R2.
    And given conditional Visibility in sub reports based on the Parameter selection in main Report . But the performance is very very slow in main report.
    While selecting single sub report executes in seconds. The same report in main report executes in hours.
    According to my view,
    All the Sub reports executes and finally conditional visibility is working. Can we Control executing sub reports?
    Regards, Gayathri devi P.S. : Please click the 'Mark as Answer' button if a post solves your problem! :)

    Hi,
    I think the time to render 100 report sure will be long time and the main report want to render those reports.
    So first why you do not separate those report on many reports for different purpose.
    second if this is a dashboard report you may use many matrix in the same report and the parameters passed by default or based on expression.
    I really hope if you make your report as dashboard report, many matrix many parameters render it once. As I remember I think SSRS will try to execute your
    DataSets in parallel which will reduce your waiting time.
    I hope this is helpful.
    Elmozamil Elamir
    MyBlog
    Please Mark it as Answered if it answered your question
    OR mark it as Helpful if it help you to solve your problem
    Elmozamil Elamir Hamid
    http://elmozamil.blogspot.com

  • Report with Subreport - Summary Table On First or Last Page

    Post Author: andbort
    CA Forum: General
    All-
    My apologies in advance for the long post. I would like to know if something can be done in a single report instead of having to spread it across two reports. I will use generic (Xtreme sample database) field names to explain my dilemma. I currently have the following report:
    Main Report
    Customer ID, Customer Name
    Subreport
    Order ID, Order Amount, Customer ID
    Each Customer and its associated subreport are displayed on a separate page. So it looks like this:
    (first page)
    1 City Cyclists
    100    $200    1
    101    $5000  1
    102    $350    1
    (second page)
    2 Pathfinders
    103    $760    2
    104    $20      2
    (third page)
    3 Bike-A-Holics Anonymous
    105    $120    3
    106    $270    3
    107    $400    3
    And so on. This report often has numerous customers (i.e. ~10 or more customers, thus ~10 or more pages). The business users would like to have a "summary" page at the beginning of the report. This summary page would be in basic tabular format, with one row per customer, but each row would contain values from the subreport. So the updated report would look like this:
    (first page)
    Customer ID       Customer Name                        Most Recent Order Amount
    1                       City Cyclists                             $350
    2                        Pathfinders                              $20
    3                        Bike-A-Holics Anonymous        $400
    (second page)
    1 City Cyclists
    100    $200    1
    101    $5000  1
    102    $350    1
    (third page)
    2 Pathfinders
    103    $760    2
    104    $20      2
    (fourth page)
    3 Bike-A-Holics Anonymous
    105    $120    3
    106    $270    3
    107    $400    3
    Is this possible in Crystal Reports 10?
    Additional Background: The application in question is ASP.Net 1.1 (Visual Studio 2003) which displays reports designed in Crystal Reports 10. The actual report displays customer records in the detail section Da. There are 5 subreports, one in each section Da, Db, Dc, Dd, and De. The summary page could be rendered either at the beginning of the report (e.g. report header) or at the end (e.g. report footer), but will ultimately need to contain Customer table field values, as well as field values from two of the five subreports. I am hoping that this requirement can be addressed in a single report, instead of having to spread it across two reports (each displayed in its own CrystaReportViewer control on the web page). I am assuming that a solution to the generic example above will be applicable to my specific report.
    Thanks,
    Andrew Bort
    National Grid
    [email protected]

    Post Author: Guy
    CA Forum: General
    Hi,
    If I understand you correctly, you could simply use a crosstab at the begginning of your report to summarize all customers.  If you put it alone in its section you'll be able to specify that you want a page break after.
    The remaining of the report should be a simple report where you group on your customer and the detail line showing a sale.
    finally, if I was wrong above and you still need subreports, you can use a shared variable (or a parameter) to allow the main report to receive the total from the subreport.
    Good luck!

  • Need to call subreport by passing proper value

    Hi
    from my SQL query i am geeting below result.
    Cust_Num   SalesOrder_num
    1                  S001,S002,S003
    2                  S004,S005,S006   
    Report Output
    Customer             Sales Order
    1                            S001
    S002
                                  S003
    when i click S001 subreport should open with related sale order S001 details.
    please let me know how to do this
    Regards
    vitthal

    Hi vitthal,
    According to your description, you want to execute a click event on the Sales Order, then it will open up another report which show the detail information correspond to the Sales Order. In Reporting Service, as Visakh suggested, we can add an action to jump
    into another report with detail information to achieve your requirement. For more details, we can refer to the following steps (supposing there is field called Sales in the second report):
    Create a parameter named Sales in the second report.
    Add a filter as follows to the dataset:
    Expression: [Sales]             Operator: =              Value:[@Sales]
    Drag the related field to the design surface in the second report.
    In the main report, right-click the cell contains [Sales_Order] field to open the Text Box Properties dialog box, select Action in the left pane.
    Enable the Go to report action, and select the second report name in the drop-down list of Specify a report.
    Add a parameter as follows to run the report.
    Name: Sales                         Value: [Sales_Order]
    The following screenshot is for your reference:
    If you have any more questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Summary field of subreport used in main report formula calculation

    I have a summary field in a subreport that I want to use in a calculation of a percentage using a second summary field in the main report as the denominator.  How do I do this in a new formula?

    Thank You Ian Waterman,...
    Couple of questions:
    Where you say "... in subreport
    @ eval
    whileprinting records;
    shared number x:=your summary
    Am I correct that this is to be a new formula created in the subreport design?
    What should I put for the "x" in the formula?
    Should the "your summary" be:  "DistinctCount of Activated_Survey.Seq.Incident"  which I have showing in the Report Footer of the subreport?
    Where in the subreport should I place the formula?  Can it be hidden?
    Where you say "In subreport header..."
    @reset
    whileprintingrecords;
    shared number x:=0
    Am I correct that this is to be a new formula created in the subreport design?
    What should I put for the "x" in the formula?
    Where in the subreport should I place the formula?  Can it also be hidden?
    Where you say "In the main report in section after subreport..."
    I have the subreport sitting up in the main Report Header as I only want the subreport summary field showing. 
    In the subreport, I have the Report Header and Details section hidden.
    @calc
    whileprintingrecords;
    (shared number x / main report summary) * 100
    Am I correct that this is to be a new formula in the main report?
    However, what I need to have happen is that the main report summary field of: "Count of Answered_Survey.Seq.Incident" needs to be divided by the subreport summary field of "DistinctCount of Activated_Survey.Seq.Incident" * 100.
    What do I modify in the formula?
    Thanks.

  • Export crystal report to excel with subreport

    I have a report with two subreport, and the question is when I export the main report to excel ( data only ) there is no data in the excel file, but when I just export the subreport to excel ( data only ), the excel file shows all data correctly. Does anybody know a solution can resolve this problem? Thanks.

    1. Add one more Report Footer by right clicking on the Report Footer and selecting insert section below
    2. Put Subreport 1 in the Report Footer a i.e. RFa
    3.Put Subreport 2 in the Report Footer b i.e. RFb
    4.Export the report to Excel Data Only.
    5. You should be able to see the data for both the subreports

  • Multiple Column Report Question

    Post Author: LCS213
    CA Forum: Crystal Reports
    I'm creating a student transcript report that has multiple columns, and is three groups deep.  The first two groups need to be in a columnar layout. However, I'd like the third group to contain a subreport that spans the width of the entire page. 
    Are there any options within Crystal XI to do this?  I know in the Section Expert, i can format the detail level with multiple columns, and on the Layout tab, I can select "Format Groups with multiple columns".  But that seems like it either formats ALL groups or NO groups.  Am I mistaken?  Is there a workaround I'm missing?
    Thanks in advance for any help on this issue!

    Hi Dan,
    According to your description, we are not clear about the “6 sections for each Additional task”. Do you mean six data records? If so, based on my understanding, there are three groups and eighteen records in your report. You want to make those records appear
    on eighteen separated pages, right?
    In Reporting Service, we can add a page break to groups within data regions to control the amount of information on each page. In your scenario, you should add page break to group “Sub task”, group “Additional Task” and details. As we tested in our environment,
    add page break to these records, the report appears in eighteen pages. Please refer to steps below:
    1.On Group Properties of Details1, choose “Between each instance of a group” option on Page Breaks page. Please refer to screenshot below:
     Choose same option on Group Properties for group “Month” and “Name”.
    2.Click drop-down button next to Column Groups, then choose Advanced Mode.
    3.Click on Static under Row Groups, set RepeatOnNewPage as True in Tablix Member Properties.
    4.Click Preview, the results before and after adding page break look like below:
    If you still have any question, please post some detail information or screenshot about the report design you expect.
    Best regards,
    Qiuyun Yu

  • How to disable the link to subreports depending upon value

    Hi,
    We have a table in ssrs reports where we are showing failed, success and cancelled status. for come condition.
    now for failed we are going to subreports as we are passing some parameter from parent report.
    but for success and cancelled we don't want to go that subreport.(problem is its going to the subreport)
    this status are coming in the same cell depending some condition.
    any body has idea how to do it
    simanta

    Hi fanu987,
    As per my understanding, there is a field includes three values: failed, success and cancelled. If the value of field is failed, you want to jump to the subreport when you click the field. Otherwise, it will not jump to the subreport. If that is the case,
    we can use Go to URL action to achieve your goal. For detail information, please refer to the following steps:
      1. In design mode, right-click the text box and open Text Box Properties dialog box.
      2. Click Action in left pane, select Go to URL.
      3. Click (fx) button, and type the expression like below:
    =iif(Fields!FieldName.Value="failed ","http://ServerName/reportserver?/folderName/SubreportName","")
      4. Right-click the subreport in the project, then click deploy to publish the report to report manager.
      5. Right-click the master report in the project, then deploy the report to report manager. When you preview the report and click failed value, it will jump to the subreport.
    If there is any question, please feel free to ask.
    Thanks,
    Wendy Fu

  • SSRS : Performance related question

    Hi Frineds,
    I have below scenario
    I have one master Driver report (rdl) which has 7 sub reports. I have put expression on the visibility of those reports.
    well reports are running slow.
    Example of one sub report:: in this i have one big rectangle, in that rectangle i have different regular stuff(tablix, textboxes and images).
    Instead of 7 sub reports i can take 7 big rectangle and put the similar expressiion on the visibility of those big rectangles.
    the benefit is, there will be only one report(the master driver report dont need to call any report).
    The question is,
    Will this new approach gives any performance benefit ???
    Thanks In advance,
    Parixitsinh

    Hi Parixitsinh,
    In Reporting Services, each subreport instance is a separate query execution and a separate report processing task. So there are some advantages and disadvantages of using subreports within performance issue. The details information is shown below:
    Do use subreports when there are just a few subreport instances.
    Do not use subreports inside a group when there are many group instances. For example, to display a list of both sales and returns for each customer, consider using drillthrough reports. Consider whether you can write the query to join the customer with
    sales and returns and then group by the customer ID.
    Do use subreports when the subreport uses a different data source than the main report. If performance is an issue, consider changing the dataset query in the main report by using one of the following mitigation strategies:
    • Collect data in a data warehouse and use the data warehouse as a data source for a single dataset.
    • Use SQL Server linked servers and write a query that retrieves data from multiple databases.
    • Use the OPEN ROWSET capability to specify different databases.
    For more information about the report performance, we can refer to the following document:
    http://technet.microsoft.com/en-us/library/bb522806(v=sql.105).aspx
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Subreports won't show when put inside a tablix in the main report

    I have a main report containing 5 subreports. My ultimate goal is to have a header with an image in it to only show within 2 of the subreports. I'm trying to achieve this by using a tablix and putting all of my subreports into the tablix on the main report,
    and putting the image into the header of the tablix and using a hide/show query based on subreport name.
    The problem is that when I put the subreports into the tablix and upload it to CRM it won't display at all. If I remove the tablix the subreports will run and display perfectly. Can anyone tell me what I'm missing here or an alternative if there is an easier
    way to achieve what I want? 
    Thanks.

    Hi Ssizz,
    Per my understanding your are experiencing the issue with the subreport which added to the tablix not displayed after upload to the CRM, right?
    I have tested on my local environment and try to reproduce your issue but failed.
    The issue can be caused by many factors, could you please try to provided us more details information according to questions below, and we will be more effective to give an solution:
    Did the issue occurred only when your upload the main report to CRM, and Is there any error message,such as "Subreport Could Not Be shown"?
    Did you run to check all the subreports and the main report which include the tablix with the 5 subreports in both the designer and the CRM one by one? Did they all running with no error?
    Did you have add any parameters in the subreport and the main report, if did, please check if all the parameters work fine in the designer.
    You have mentioned that when you remove the tablix, the subreports will run perfectly, Is that mean you put the subreport outside the tablix and have a test then all works fine? in the designer or in the CRM? 
    Please also take reference to the solution of some possible factors:
    1. If you got the error "Subreport Could Not Be shown" only in the CRM and all works fine in the designer, the issue can be caused by the relationship between parent report and sub report got disturbed and CRM doesn't able to link these sub reports.
    From Reports section select the sub report and click on edit
    Remove the value in Parent Report look up field
    Map Parent Report again
    Re-publish the reports. Below steps will help us in publishing the reports again
    Open command prompt on CRM application server
    Go to Microsoft Dynamics CRM\Tools folder
    PublishReports.exe NameOfYourOrg
    Ex: C:\Program Files\Microsoft Dynamics CRM\Tools\PublishReports.exe mytestcrm
    If the above setting still doesn't work, please try to delete both the subreport and main report in CRM and try to upload once again, If it possible, please first redesign the main report in designer.
    Similar thread for your reference:
    http://blog.customereffective.com/blog/2008/07/resolving-error.html
    https://social.msdn.microsoft.com/Forums/en-US/60542d2e-c888-442f-9b8a-5ed779f7e3d9/crm-reports- error-subreport-could-not-be-shown?forum=crm
    Article about details setting with main report and subreport in CRM:
    http://dynamicscrmgirl.wordpress.com/2014/06/29/crm-2013-ssrs-report-and-sub-reports/
    2.  Another alternative method is using an rectangle instead of the tablix to put the subreports, you can use  this to see if the problem still exists.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Get data in a subreport based on a shared variable from the main report.

    Goodd morning,
    My question/problem is how to manage this scenario.
    I am transfering 2 shared variables (pereiod from /period To, ) from the main report to a subreport and now  i would like to get data in this subreport based on these 2 variables...
    The problem is that i can not find the shared one in select expert icon...
    Could anyone point me to solve this issue?
    Thks for any help.
    Jose Marin
    Crystal Report XI SR3

    Hello Jos,
    I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
    This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Need to supress main report based on shared value comes from subreport

    Hi,
    I have a database that is used in both main report and subreport. On main report I have column a,b ,c, d,e,f to display in detail section, the subreport (column c, g,h etc) is also displayed on detail section, the link between main report and subreport is column a,b and a formula based on the value of c. So the link is within one database, some records link with other records  and display both matching records on one line(especially column c shows one value in main report and another value in subreport). That's why I need subreport and I can display the report correctly.
    Here is my question: if one record in main report couldn't find a match in subreport (subreport is blank), then I would like to show this record; if one record in main report does find a match in subreport, I don't want it to show(need to be supressed). I can define a shared variable to flag whether the subreport is blank or not, but this shared variable has to be placed under the section of subreport in main report and I don't know how to supress the upper detail section with subreport in it.
    Any help would be appreciated!
    Helen

    Hi
    In this case you need to insert the same sub report twise.
    Example :
    Detail a--Insert the sub report and go in sub report suppress all sections and using shared variables bring the value to main report.
    Detail b -- based on detail a sub report suppress the main report records
    Detail c-- Your actual sub report will display the values.
    Note : use the same links for your detail 'a' sub report which you are using for detail 'c' sub report.
    Thanks,
    Sastry

Maybe you are looking for

  • No sound with ALSA and/or Pulse from built-in Intel 5 Series Card

    Hello, I posted a thread about a similar problem to this 4 years ago, but that solution is no longer working for me, and I'm just now returning to Arch after floating between a few different distros, so I'm not as knowledgeable about this as I might

  • Running unix command using java shows error

    Hi All, I am trying to run UNIX move command using Java exec method but its throwing error, unable to rename. Here below is the code i am trying to run to move all files from one directory to another directory. source and destination directory exists

  • Ways to add photos to a collection?

    When editing images (meaning, performing selects/rejects) I like to use collections. Is there (or can there be) a better way to add images to a specific collection other than dragging & dropping? It might be beneficial to have a contextual menu to se

  • Open in other apps menu issues

    I think There are some issues to be fixed with the option "open in" wich shows too few apps, sometimes 9 sometimes more than 12, not always the same. deleting (with docs!) and reinstalling is not the solution.

  • Business Scenario and Business Process in IR

    Business Scenario vs Business Process in IR??? Pls give the example for BPEL???