Is it possible for me to include a sub report in a tablix row that is grouped by an ID?
You have to build the subreport as a separate report .rdl and build it to accept a parameter of the ID. You will then pass the ID parameter to the subreport once it's added to the parent report. Once the sub is built, tested, and saved...add it to your main report using Insert-> Subreport on the main tab. You should be able to select the cell on the design view where you want the subreport to be and insert the subreport there.
To specify parameters to pass to a subreport
- In Design view, right-click the subreport and then click Subreport
Properties.- In the Subreport Properties dialog box, click
Parameters. Click Add. A new row is added to the parameter grid. - In the Name text box, type the name of a parameter in the subreport or
choose it from the list box. This name must match a report
parameter, not a query parameter, in the subreport. - In the Value list box, type or select a value to pass to the subreport. This
value can be static text or an expression that references a field or
other object in the main report.
- In the Subreport Properties dialog box, click
Need to bind two dataset to a tablix. Please find image in description, how to achieve this kind of structure in SSRS
You can only bind a tablix to one dataset. The only way you can do this is to either
- combine the data in your dataset query or, if that is not possible
- use the
LOOKUP()
function to get the required data from your second dataset
You can read more about LOOKUP()
here
https://learn.microsoft.com/en-us/sql/reporting-services/report-design/report-builder-functions-lookup-function?view=sql-server-ver15
Related Topics
Typo3: SQL Error: 'Incorrect Integer Value: '' for Column 'Sys_Language_Uid' at Row 1'
What Is the Correct Syntax for Using Database.Executesqlcommand with Parameters
MySQL - Search Timestamp by Hour of Day
How to Select a Max Row for Each Group in SQL
Prevent Error When Dropping Not Existing Sequences, Creating Existing Users
Select Items Like Records from a Column in Another Table
Rails Activerecord Where or Clause
Dynamic SQL Error Converting Nvarchar to Int
Mysql: Name Primary Key in Create Table Statement
Sort String as Number in SQL Server
What Does the Pipe Operator Do in SQL
Computed Column Should Result to String
Counting the Number of Occurrences of a Character in Oracle SQL
Unnest Expression References Column Which Is Neither Grouped Nor Aggregated
How to Preserve the Order of a SQL Query Using the in Command