Display Subreport Totals in the Main Report
I am using CF10 Report Builder. I have a main report that show counts/amounts by award type for admitted and deposited students. I have a sub report that shows counts/amounts by award type and level for current students who have registered and those who have not yet registered. I need to show the totals of current students by level and weather they have registered or not.
I tried adding a sub report to show the totals but the sub report does not show up on the main report. Is there a way to do this that I am missing?
I created the sub-report because the award information is kept in separate
tables for incoming and returning students. I will work on combining the
the two.
Thanks
Bonni
Bonni Harris
Database Analyst
Eureka College
300 E. College Avenue
Eureka, IL 61530-1500
309-467-6467
On Tue, Apr 28, 2015 at 12:25 PM, EddieLotter <[email protected]>
Similar Messages
-
Behavior on subreport totals in the main report
I have a grouped report which receives two totals from each grouping's subreport via shared variables. In the main report I show the subreport totals for each group but cannot find a way, in the main report, to add the subreport totals together to become a report grand total. The running totals feature does not see the returned subreport totals and I cannot find a formulaic way of achieving a grand total. Has anyone managed this? Any help is much appreciated.
Lets step back a moment and see, you got Sub report places in say GF1 section. I suppose this formula of SV in the sub report is placed in the RF of the sub-report right ? what you might have to do is Change the sub report SV to assign it to a Running total...
The subreport SV is:
WhilePrintingRecords;
Shared CurrencyVar
AmountSpentRunningTot := #RTOTAL0 ({QuoteMaterials.qmmMinimumCharge})
**You might have to create a separate SharedVariable with some different name, place it in the RF of the SUBreport
Now I am guessing that this sub report repeats N times..for N number of GF in the main report...you might have to make a manual running total where you capture and add the 'GrandRunningTotal' coming from Sub report in every GF of the main report and then display it in the main report(s) RF...
hope i made sense...its little complicated to put it out in words... -
Value in the subreport used by the main report?
How do I make so that a value in the sub-report can be used by the main report? Is there a way to make the subreport values "global"?
I am working from an older version of Crystal. Please let me know if this is self-explanatory in the newer versions.
EstherHi,
You can create a shared variable and assign the value to that in the sub report and same can be used in main report.
For more info on how to use shared variables, please check this under section Shared variables.
Thanks,
Raghavendra -
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. -
After changing a subreport I loose data in the main report.
Hi All,
I have a main report that has two parameter fields and two subreports linked to the parameter fields. The two subreports access the database and work fine separately. When I add the two subreports to the main report it works fine. As soon as I make a change to a subreport it works fine standalone. But as soon as I update the main report (reimport subreport) the subreport no longer returns data to the main report. To get the report to work after a change to a subreport I have to delete the subreport from main and then add it back in again.
Does anyone have any suggestions?
I am using Crystal Reports 10 and I'm totally at my wits end. I've been working with Crystal for about 5 years and this is the first time I've seen this. Maybe I'm missing something small but I just can't seem to find the answer.
Thanks for any help,
JimJim:
I usually edit my subreports from within the main report. I right click the subreport and then click edit subreport. This eliminates the need to reimport the subreport. I've done a lot of work with subreports and this always works for me.
I hope this is not too late and helps you out.
Ralph -
Data Passing from a Subreport to the Main Report
<p>Hello,</p><p>I have been able to pass data from a subreport to a main report using shared variables. The Complete Reference: CR XI (p. 313) states that you should be able to now suppress the subreport to prevent it from showing on the main report, however this is not working. I want to get the data from the subreport and then further manipulate it in the main report, and I do not want the subreport shown on the main report. I tried suppressing/hiding the section where the subreport is placed as well as suppressing the subreport itself. The formula values on the main report become null when I do this though. Is it possible to keep the subreport off the main report?</p><p>Thanks.</p>
Search forums, this has been answered multiple times.
-
List down all subreports in the main report
Hi All,
I am developing reports in Crystal XI R2. I am working on the listing all the subreport names in the main report. I tried to use Filename function but it is not showing any report name even in the subreport itself.
Is it possible with any work around? Please help.
Regard,
AshishHi ashish
Do you mean you want to have a hyper link of all the subreports from the main report.
main report
subreports
link1
link2
link3
You can just do like this insert->subreport->select the report name and place it whereever you want. You can select many reports like this.
Is this answers your question?
Regards
usama -
Concatenate data in a Sub-report then copy in the Main report
Hello,
I'm using Crystal Report XI R2, I succeed to retrieve data as decribe in SAP Note 1212454 - How to Share Subreport Data with the Main Report
But when I hide section A, my values in section B are empty
So my answer is, how to retrieve dataset from the subreport group Footer Group concatenated and show it as a Header group data in the Main ReportI'm currently trying was is explained in:
1218324 - How to suppress a subreport but still evaluate and pass a shared variable
Symptom
In Crystal Reports (CR), subreports are frequently used to calculate and pass data to the main report. In many instances the business requirement is that the subreports not be visible to the end users. However, suppressing the subreport object or suppressing the section of the main report in which the subreport is located causes the shared variables to display incorrect data when passed to the main report.
How can you suppress a subreport but still pass a shared variable with the correct data?
Resolution
In Crystal Reports 9 and later, you can suppress a subreport but still pass a shared variable with the correct data to the main report by following the steps below:
In the Subreport
1. Remove all conditional suppression formatting formulas.
2. Delete all drawing objects such as boxes, lines, etc.
3. Suppress all remaining subreport objects such as database fields, formulas, etc.
4. For all sections that contain no objects, select the 'Suppress' option in the Section Expert.
5. For all sections that contain suppressed objects, select the 'Suppress Blank Section' option in the Section Expert.
In the Main Report
1. Select the 'Suppress Blank Subreport' option in the subreport Format Editor.
2. Remove all borders from the subreport object in the subreport 'Format Editor'.
3. Select the 'Suppress Blank Section' option in the 'Section Expert' for the section containing the subreport.
Background Information
When working with subreports, the 'Suppress Blank Section' option forces CR to evaluate the subreport contained within the section to determine if the final subreport output is blank. The 'Suppress' option allows CR to bypass the subreport completely, because the section is suppressed. By forcing Crystal Reports to evaluate the suppressed shared variable formulas in the subreport, the data can be correctly passed from the subreport to the main report even though the subreport is not visible to the end user. -
How to stop to display the main report page header in the subreport!
Hello all,
I have an existed report that display the CR page header on every page of the report. Now I added another subreport into report footer without using link. How do I stop to display the main report page header and display the subreport in the new page with subreport header only? I really appreciate your time to help me out on this issue. Thanks.Hi,
I tried to supress the page header with (onlastrecord and TotalpageCount > 1) condition, but the last page of main report without page header. I still like the page header display on last record, but not on the subreport only. How do I get it? Thanks in advance. -
To display subreport page header when included in the main report
Hi,
I am designing a report using SSRS 2005.The main report has a few subreports.Each subreport has header which serve as page and table header for the report content.When the subreport is run individually there is no problem where header is
getting displayed for each page but when main report is executed only subreport body content is displayed.Can someone please suggest if there is any workaround for displaying sub report header
My subreport looks as shown in the image below.Place your Header contents at top of the body and footer contents at bottom of the body. Remove Header and footer from your subreport.
Aftab Ansari -
How to show a Page Total in a Main Report that is calculated in a SubReport
Hi,
I have a Main Report and a SubReport with the detail.
The Report has several pages. I want to show a Page Total in each Page, retrieving data that is in the subreport (Detail).
I tried to use a shared variable, but the problem is that the formula fields are assigned at the end of the subreport, so I can't pass the value back (to the main report) until the last record of the subreport is printed.
I also can't show the Page Total at the subreport, because I have a particular format that I need to respect and only can be printed from the Main Report.
Is any way to do this ? At this moment, with the shared variables I'm getting 0 until the last record is printed.
Also, I can calculate the Page Total from outside Crystal Reports, do to there some fields that can grow, so I can't figure out how many record are going to be printed.
Thanks in advance!
Arielhello, this may depend on how the main report was actually paging...
1) do you have one group per page for example?
2) is the sub on a group footer level?
3) does the subreport use a different data set than the main report?
some suggested workarounds would be to
a) use a report header cross-tab (identical to the existing crosstab) that creates an array of values that you can access anywhere on the main report
b) place an identical cross-tab above the existing one, and suppress all of the subreport sections (not the section where the subreport sits) and then bring the value back to the main report
cheers,
jamie -
How to use a subreport field as selection criteria for the main report
Dear All,
I created a report with one subreport and im comparing information from both reports but i need to apply selection criteria in the main report using one of the fields in the subreport, the problem is that the subreport field doesnt appear in the select expert screen. By any chance, someone knows how make a subreport field be used by the select expert.
Thanks,
Martha MedranoDear Dom,
I created the subreport table called IIM (748 items) in sql in the main report as you suggested with the below code:
SELECT "IIM"."IPROD", "IIM"."IDESC", "IIM"."IID"
FROM "S102F360"."BPCS405CDF"."IIM" "IIM"
WHERE NOT ("IIM"."IDESC" LIKE 'GEN%' OR "IIM"."IDESC" LIKE 'OBS%') AND "IIM"."IID"<>'IZ' AND "IIM"."IPROD" LIKE '3%'
and i have another table called ITEM_MASTER (3221 items):
SELECT "ITEM_MASTER"."ITEM_ID", "ITEM_MASTER"."DESCRIPTION"
FROM "WHSPRO"."dbo"."ITEM_MASTER" "ITEM_MASTER"
ORDER BY "ITEM_MASTER"."ITEM_ID"
and im trying to display all items in the ITEM_MASTER table that are not in the IIM file but i haven't been able to accomplish this, i am using as primary the ITEM_MASTER table with 'Inner Join' as Join Type, and '!=" as Link Type. Do you have any ideas on how can i display the requested items.
Thanks for your help -
Passing a variable from subreport to the main report
Hi guys, was unable to google this, so Im urning to you guys:
I was wondering whether it was possible to do this:
I have a subreport taking data from a table. In the main report, in the suppres condition of details section containing this subreport, I need to have a variable containing the total count of rows in that table. I know there are shared variables for that, but the problem is, that the variable in the condition is processed sooner than the one in the subreport.
Any ideas on this?
Thanks a lotTo Sharma:
Hi, unfortunately I can't. The subreport has its specific position in constallation with previous and following sections and must be right there.
To Raghavendra:
Hi, that was my first idea, but the problem is as I explained in my first message.
To both:
I have a table in subreport. This subreport is in main report positioned in details section "x". and I want to use that shared variable in the suppress condition of section "x". The problem is that the formula in suppress condition is processed sooner than the formula assigning a value to the shared numbervar inside the subreport.
and thats what im looking for - a workaround for that. btw im using CR 8.5
thanks again guys -
Show Subreport Name in the header part of the main Report subreport wise
Hi,
I want to create a Report which contains a collection of Subreport.
In header part of the main report I have one expression which shows specific text for specific subreport.
In Detail
I have three subreport named as
Sureport1
Subreport2
Subreport3
I have given page name for all the three subreport as subreport name.
Now I create one Main report. Where I drag one table and delete the group.
I created three rows in this tablix.
And in each textbox I have inserted one rectangle.
and place all the three subreport.
and here my expression is mentioned below.
=IIf(Globals!PageName Like "Subreport1","Subreport1",
IIf(Globals!PageName Like "Subreport2","Subreport2",
IIf(Globals!PageName Like "Subreport3","Subreport3","")))
This expression is working when I am placing all the subreports inside separate rectangle but not working when I am placing all three subreports in one tablix.
For both case it is showing in report designer window but in second case it is not showing in the pdf.
Thanks,
Aswini RoutHi,
As the description, I understand that you want to display the subreports’ name on the page header of the main report. When the page display a subreport, display the corresponding subreport name in the header part of the main report.
Base on my understanding, you should have page break on each subreport(suppose you add the subreports without Rectangle) since there is no group in the main report and there should not be a page break in the main report. If I have misunderstood, please correct
me.
I was not able to reproduce the issue currently. How did you define the page name of your main report. If it is possible, please upload your rdl file to your OneDrive and share the link here. You can also capture the screenshot so that I can understand the
problem in more details.
Thanks.
Tracy Cai
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
Maybe you are looking for
-
Update: audio problems connecting macbook pro to insignia TV: resolved
There have been posts from users who have expressed frustration that they cannot get audio when they attempt to connect their macbook pro to an Insignia TV. http://discussions.apple.com/click.jspa?searchID=-1&messageID=10830387 http://discussions.app
-
Hey guys, I'm new to AS3, still learning. I just read a little about arrays in the book I was learning from, and after looking at some online stuff, thought I'd try to do something simple with one. What I'm trying to do is save a bunch of sounds (dif
-
Simple scan sd500a software has a glitch and I need to download again
My HP simple scan sd500a exteranl drive is no longer working. The blue light just keeps flashing as it is search. I tried to execute the software on the drive and I got an error so I want to download the software again, but I am not able to find th
-
Javax.ejb.DuplicateKeyException: Exception [EJB - 10007]
Hi, I am deploying an EJB application in OAS10.1.3.1. (it comes with toplink) The application executes bean.remove() and removes the bean and then it creates the same bean again using bean.create() in the same transaction. When bean.create() executes
-
What does the different profile mean in substitution profile?
1. Confidential 2. Disciplinary 3. Professional 4. Personal 5. Strictly Confidential 6. All This is normally seen in the HRUS_D2 table