Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

use two different datasets in single report

I have two different-2 datasets with different fileds which are getting populated through two stored procedures with same input parameters.each datsets have different colums and no of columns around 180,my concern is how will i use these two different datsets in single report with two differents fields(two differnt tables).for one dataset i have used report wizard,but not able to figure out for the second dataset.Please suggest for the same..

like image 981
Gurpreet Singh Avatar asked Jul 30 '13 18:07

Gurpreet Singh


People also ask

How do you connect two data sets?

To join two data frames (datasets) vertically, use the rbind function. The two data frames must have the same variables, but they do not have to be in the same order. If data frameA has variables that data frameB does not, then either: Delete the extra variables in data frameA or.

How do I merge two datasets in report Builder?

At the top-right, from the list, select Join Dataset. In the Data Set Name box, type a name for the Join data set. In the Query box, enter a SQL query that combines fields from both data sets.


1 Answers

You can use two different datasets in different reports regions on one Report. For example, If you have two datasets, lets say DS1 showing EmployeeDetail and DS2 showing SalesInfo. You can use them separately in two tables one showing Employees Details and other showing Sales Info. If you plan to merge this data and use it in one table, These are option.

  1. Recommended option : Re-write your query to create single dataset containing possible data you want to show in tabular fashion.

  2. Would work but would be lot slower : Use DS1 in a table in Main Report where each row contains Epmloyee Detail, Wihtin that Row call a Sub-Report passing EmployeeDetail's key which is related to a column in SalesInfo. Create sub-report showing SaledInfo data, call this report in main report passing key value from DS1 to this sub-report.

like image 189
Ron5504 Avatar answered Sep 23 '22 02:09

Ron5504