Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

Subreport only displays on last page of report

$
0
0

I have a subreport that is only displaying on the last page of my report.

I have a main report that has two parameters (as_of_date and officer_id) and a subreport that has three parameters (as_of_date, officer_id, business_id)

Both reports work fine independently of each other.

I was orignally getting an error "error subreport could not be shown" but I resolved that, I believe it had to do with how I was setting up my parameters in the supreport.

My main report has a page header that displays the as of date and officer information. The body of the main report has one table object.

For each as of date and officer there can be multiple business ids, and each business id has multiple customers.

Each business id is on its on page.

The point of the supreport is to capture other information specific to that as of date, officer and business.

I am passing the main report @as_of_date and @officer_id parameters to the subreport, for testing purposes I am hard coding the business_id value for the subreports third parameter. I tried using the field from the main report (selecting the main reports data set and respective field. However only the SUM of the field is available)

If I use this field with the SUM I get an error the subreport cannot be shown. If I delete the SUM and just try to use the field the report doesnt execute at all, I get a compile error.

How do I pass the third parameter (business id) to the subreport and how do I get the subreport to display on all pages?

I dont think I can create his report without using a subreport

Thanks

addendum: I just dragged my subreport into the tables footer and it worked.



Viewing all articles
Browse latest Browse all 28687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>