MS Report Builder subreport not displaying - reporting-services

Need some help guys. I created a report using MS SQL 2012 Server Report Builder 3.0, with subreport. (subreport does not have parameters) It always displays blank. I checked the visibility and it is set to visible.
This is the main report, and this is the subreport.

You need to have a Data Set within your subreport and this Data Set must return at least 1 row of data.
You can use for example this hack (If you otherwise don't need Data Set):
Add a Data Source with connection to database
Add new Data Set to your subreport
Use this query in your Data Set
Select 1 as value

Related

SSRS 2012 Parameter settings

I am creating a report with columns say A,B,C,D,E. I am setting up a drill down on the column A that fetches one more report with Columns
G,H,I,J. The values for the columns G,H,I are from taken the columns A B C. For the column J,I need to pass a parameter explicitly(not from the source report). I set that parameter in
the properties section -> Available Values and mentioned the values. I ran the main report and get the following error
The Parameter J is a missing value
I am pretty much new to the SSRS projects and would be great if I could any assistance on this
It sounds like you are putting parameter J in the wrong place. It doesn't go in the Parameters collection for the main report but in the parameters that are passed to the sub-report.
Right-click the cell with the drill-down and select Text Box Properties.... Choose Action from the left-hand menu and it will show the drill-down report. Under this it says Use these parameters to run the report:
Add the parameters of the sub-report and the values you are passing. You can use an expression to provide the value for parameter J.

SSRS Query Based Parameters Not Refreshing

I am having a problem getting query-based parameters to refresh in SSRS when the View Report or Refresh button is clicked. To illustrate the problem, I created a report with 2 parameters. 1 parameter is set to get the timestamp Now() using the SSRS function. The other parameter is set to get the value GETDATE() from a SQL Server database query. When I view the report, both parameters accurately get the timestamp. When I hit the View Report button or Refresh, neither parameter refreshes. The only way I can get the timestamps to refresh is to re-open the page up in a new browser. Is there anyway to get these timestamps to update without having to open a new page/session? Thanks!
Fix: Build a main report with no parameters. Embed a subreport to your report. In the subreport, build a parameter called RandomTime. In the main report, go to Subreport Properties and feed the parameter RandomTime with the Value =Now(). To properly refresh all of the query based parameters in the subreport everytime you hit refresh, they must depend on RandomTime. The easiest way I found to do this add a column to the SQL query like this SLECT #RandomTime AS DummyColumn. It ensures that the query will repull and all the parameters will refresh everytime the refresh button is clicked
Do this: Create a master report and add your report as a sub report. Make a dataset on the master that runs your sql query. Then, pass the result into the sub report parameter as an expression.
Example--- =First(Fields!YourValue.Value, "DataSet1") ---

Display a new page for each driver in the main report when using multi-value parameter and subr

I am working on a report that uses multiple sub-reports. I have two parameters: t_driver_pk and BatchID for the report. I have been able to display the data for each driver on a new page in the subreport using page break and repeat header options (all the subreports have been grouped by t_driver_pk). But, then when I go to main report and run it selecting multiple drivers on t_driver_pk parameter. I am getting a single report that combines the data for all those driver. Essentially, I would like to have it displayed as following:
Parameters:
**t_driver_pk**: 5000,4500 BatchID:610
FirstDriver
Subreport1
Subreport2
Subreport3
Subreport4
Second Driver
Subreport1
Subreport2
Subreport3
Subreport4
Any help would be greatly appreciated. Thanks in advance!
Have you tried adding a Dataset to the report that is driven by the selected t_driver_pk values (i.e. if 5000 and 4500 are selected in the parameter then the new dataset returns the same values).
You should be able to use this dataset with a List data region, which you can insert your subreports into and then pass the current value of t_driver_pk from the new dataset to the subreports. That should repeat them for each value of t_driver_pk.

SSRS - Only load data region on request?

Is it possible to load a data region (matrix) only on request. I have a screen with a few fields and a 13 week revenue tablix that can take 10 or more seconds to load. I'd like the tablix data region to only load when the user needs to see that information. My understanding of how SSRS works is that this is not possible, but I'd like to confirm. Are there any workarounds?
Sql Server Reporting Services 2008 R2
You can set the visibility of the Matrix on the value of a paramater .
For example ,you can create a new paramter ShowParamter.
Lets say your Matrix's Id is matrix1, then under visibility set the hidden property of matrix1 as
IIF(Paramaters!ShowParamter="True", false,true)
If the value of the paramater is true then the matrix should be seen otherwise hidden.

Parameter missing a value

I am new to reporting services and have a reporting services 2005 report that I am working on to use as a base report template for our organization. I am trying to place the date that the report was last modified on the report server into the page header of the report. However, I keep getting a 'ParamX' parameter is missing a value error when I try to This is what I have done:
Set up a Parameter ReportName with a default value of Globals!ReportName. It is also hidden and internal.
Set up a Dataset ReportHeader that calls a stored procedure that returns the date the report was last updated or another date, if the report is not on the report server. It has a parameter #ReportName assigned to the Parameter!ReportName.Value. The Dataset returns values when run on the dataset tab in the BI tool.
Set up a Parameter ReportVersion that has a default value Query From based on the dataset ReportHeader and picking the ModDate column. It is the last parameter in the report parameters list.
I assign a textbox to the parameter.
When I preview, I get "The 'ReportVersion' parameter is missing a value whether I place it in the report body or page header (which is where I want it). I have deleted and added the parameter again, toyed with the hidden and internal settings on it.
What does this error really mean, what I am missing, and can I even do this with parameters?
Thanks In Advance
Jim
If I understand what you're doing, it sounds like you want to be using a field where you're implementing a parameter...
You are returning the ModDate from the data source, correct? If you're doing this, you can simply throw a text box in there, and use something like this: =Fields!modDate.Value to display it.
Parameters are values that go in to the query, fields are what it returns.
Hope this helps...
EDIT:: OK so are you trying to retrieve the mod-date column value from the reportserver db? If that's what we're talking about, you'll need to add a few things to the report. Add a datasource to report db, a dataset containing the date (query below), a list object in the report linked to the dataset, and a textbox in said list object to display the field. If you hit the report server with a query like this:
SELECT MAX(ModifiedDate) AS ModDate FROM catalog WHERE name='myReportName'
That will return your modifieddate from the ReportSErvices Database as a field that you can use.