What are the differences in drilldowns and drillthrough reports? - reporting-services

In SSRS, what are the differences in drilldowns and drillthrough reports? Only developers experienced working on both kind of reports can answer this. Please suggest.

Drill DOWN means a way to filter the results to a more
detailed level from the Parent Level.Like plus and minus symbols.For example initially you will see summary level data if you want to go in detail you need to click on plus symbol
Drill Through on the other hand means to drill into (get
into ) another report for getting more details. The values
from the Parent(Main) report are passed to the Child
(Detailed Report) for filter condition.It just navigation between two different reports
These report are used by everyone.Its simple reports but need some practice

Related

How to Setup Default SSRS Report Variables

I have many reports which use a set of the same report variables:
Is there any possibility not to insert them each time manually when creating a new report? Or may be there is a possibility to share these variables between reports as , for instance, DataSources?
Can be used for this purpose assemblies?
Based on your question it's seems you're looking for a subreport. Sub Report is a tool available in the toolbox in SSRS. It allows you to create a report that can in included in all your other reports without have to rebuild the structure.
Once you've created your report in the sub report properties just specify the report and include the parameters used for the report (if any) see below:
If that's not what you looking for, then maybe it's shared data sets you're looking for.
Let me know if it's something completely different and I may be able to provide alternative solutions.
Thanks
Gav

Page Breaks in Microsoft SSRS

I am working with SSRS 2008 or 2014 and SQL Server 2014. One of the issues the team is having is around the formatting of the SSRS report. The goal is to have the report data format to render in an user friendly format. Unfortunately, a requirement is that the report uses two tables that can display 1:x number of records. As you can imagine, all data fields under the tables will now be pushed further down the page.
My question is, has anyone encountered this type of scenario and have an SSRS code-based solution to handle the formatting of the report?
It sounds like you need to display a 1 to many relationship in the report but want to keep the first table's results together. Maybe what you need is a drilldown/drillthrough report; this is available without a code-based solution.
This article explains the concept
https://learn.microsoft.com/en-us/sql/reporting-services/report-design/drilldown-action-report-builder-and-ssrs?view=sql-server-2014
There are many Youtube videos on how to set up drilldown reports, here is one example
https://www.youtube.com/watch?v=C56fMnp4oaA

stop executing sub reports in ssrs when we have not clicked on toggle to display the sub report

I have more than 15 sub reports in my ssrs report.Each sub report should be displayed only when we click on some text to toggle.But in the background(SQL Profiler) is running all the sub report datasets along with the main dataset which is resulting in poor performance.I have gone through different procedures suggested in diff blog but did not find the right solution.
Can someone please help me with this.
Thanks,
Dev
Unfortunately, according to this documentation, subreports are run at the same time as the main report:
https://msdn.microsoft.com/en-us/library/dd207141.aspx
The "Performance" section of the above documentation (pasted below) makes a good point, but it would require a slight re-design (but end up with better performance!):
Performance
When deciding which to use, consider using a data region instead a subreport, particularly if the subreport is not used by multiple reports. Because the report server processes each instance of a subreport as a separate report, performance can be impacted. Data regions provide much of the same functionality and flexibility as subreports, but with better performance. Drillthrough reports have better performance than subreports, too, because they don't retrieve all the data at the same time as the main report.

Reporting Services calling subreports

I have a main report and 30 subreports under that report. I don't want to see all of the subs every time I call the main report, I only want to see the subreports that were selected in the application.
How do I only show selected subreports?
The comment from Martin K. is correct if you're only concerned about the display of the sub-reports. You can set the visibility property via an expression meaning it can also be controlled by the result set or a parameter.
However, the real issue is that even though the sub-reports are hidden they are still run. This is because SSRS retrieves all of the data for the report before it finalizes the rendering. There are a number of good options discussed in this TechNet posting. But basically it boils down to two options:
Parameters & WHERE clause filtering
You can set a hidden parameter on the sub-reports and modify the WHERE clause so that the SQL will not actually return any rows when the parameter isn't set to true. This won't stop the report rendering actions but it will stop the SQL commands from having much of an effect on the server.
Just setup a parameter on your sub-report named #ShowSubreport and use filtering similar to the following
WHERE #ShowSubReport=1
Report Definition Customization Extensions (RDCE)
I haven't actually used these but it sounds quite handy, but it isn't exactly simple or easy. Report definition customization extensions allow you to programatically alter a report definition file on the fly. It takes an RDL as input and outputs an altered RDL stream. You can read more about it in the MSDN article : What's New in Report Server Programmability

Group multiple reports into one in SSRS

I'm new to SSRS and I need the ability to group multiple reports into a single report. I've searched around a lot but not found much. I currently have two reports (more to come) that users need to be able to view/save individually. The users also need the option to view both those reports as a single report. Essentially just a simple concatenation. Eventually, there will be several reports grouped and the user will be able to render all of them for viewing online or saving as a single PDF.
I tried two sub-reports in a master report but it causes a lot of hard to diagnose page-break problems. I was wondering if there was a more straight forward option here. Thanks.
Combining all the report elements into one report would work, but the users also need to be able to view them as individual reports as well. To avoid having to maintain both an master report and multiple individual reports, you have a couple of options:
Create a master report and insert the individual reports as sub-reports. If you get page break issues, check the report page height and widths versus the subreport container height and width.
(If you have SQL Server 2008 R2 or later) Consider publishing your individual reports as a set of Report Parts. You can then reuse these in a master report.
I'm not a fan of subreports either, they work well in Crystal but are not really necessary in reporting services.
Why don't you just combine the reports into one? Copy all the tablixes / other objects from each report onto a new report. You can select all and copy and paste very easily, you just need to set up the parameters, datasets and data sources if they aren't shared.
You can set pagebreaks to occur after each tablix or a good trick is to use rectangles because they will let you control page breaks in their properties.