SSRS group on lookup field - reporting-services

I have an ssrs matrix and have a lookup to another dataset2 field (Jurisdiction)
I want to row group by this dataset2 Jurisdiction.
The problem is that the tablix will work on a non group lookup but will not allow me to group on and display the dataset jurisdiction field.
is this possible in ssrs?
Thanks

As a general rule, it's much better to join subqueries in the SQL rather than using the Lookup function. Both in terms of efficiency and also avoiding the limitation you described in the report design.
If the datasets are truly different data sources, consider using an ETL process to combine them into a single table for the report to use as its dataset.

Related

SSRS report multiple concatenate

I'm trying to join two data sets in my SSRS table report. The problem is that I can only concatenate two columns in my lookup statement. The third is being ignored. I need to do more than two. how can I achieve this? my values are duplicating in my drill-down report.
thanks for the help.
=Lookup(Fields!MONTH_OF_SERVICE.Value+Fields!REGION.Value+Fields!CLINIC_NAME.Value,Fields!C_MOS.Value+Fields!C_REGION.Value+Fields!CN.Value,Fields!CNT.Value,"DataSet5")
Without much more info on the datasets (data types, sample data from each dataset etc) it's difficult to offer much help.
In general though you can ...
Check that the datatypes of the corresponding fields are the same
Pad the values in in each column so they are the same width to avoid things like Month= 1 + Region = 1 matching to Month = 11 in the lookup dataset. For example if month is a number, format it to be 2 characters such as 04 for April
Add calculated columns to both datasets that will generate your lookup 'key'. The advantage of this is that you can show these temporarily in your report so you can ensure they are unique and the LOOKUP function is simpler as you will only be referencing a single field.

I need to join four dataset results into one tablix

I have four datasets that get information for four different things (a unique set of fields for each one), but that can be joined using a field they share. I need to get them all into a tablix that will have four rows, one for each dataset per the linking field. How do I do that?
Currently I can only put in values from one dataset.
Often the best idea would be to create a query that joins the datasets in the sql. If that is not possible, you can look into using the Lookup function to find info from other datasets in your report. The related Lookupset function is able to retrieve sets of information and may be useful as well.

SSRS 2005 Syntax for using two datasets in one expression

I have the following expression that works beautifully to add two values, regular hours and overtime hours.
Sum(IIF(Fields!BillStatus.Value = "F", (CDec(Fields!RegHrs.Value) + CDec(Fields!OvtHrs.Value)),CDec(0)),"ReportDataset")
What I need to do is add a third value to that, but this third value will come from a different dataset, and I cannot seem to find the proper syntax for that.
Somehow, immediately after the OvtHrs.Value, I need to say something to the effect of...
+ (Fields!HoursWorked.Value, "RBaseJobBaseline")
How do I inject that value as part of the "true" clause of the IIF, since it needs to come from a different dataset.
The only way to combine sets in SSRS it's
Lookup [msdn][1]
LookupSet msdn
MultiLookup msdn
But these functions comes to SSRS from MS SQL 2008R2 version, unfortunately in SSRS 2005 you can't do this and you should combine datasets only in data base level.
[1]: http://technet.microsoft.com/en-us/library/ee210531.aspx ????
Combine your datasets (or SQL queries) into one query.
Use the DATASETS option in SSRS2005 (via Properties of your control) to capture the "root" or main dataset by using the report aggregate functions such as FIRST(), SUM(), etc.
To report the detail of your single dataset, use the FIELDS option.
SSRS2005 can only work on ONE dataset at a time, unless you use multiple tables (or lookup parameters, etc) with different datasets, but they are still totally independant of each other.

SSRS typical Matrix Report

I got a typical matrix report requirement from my client. I need your suggestions/ideas.
I have a table named Inventory (see the Image 'table')
I need the following format in the SSRS REPORT
(See the image 'SSRS REPORT')
I tried to do it by using matrix report by grouping only the column with bucket, but it is showing me only one row. Not used grouping for partyname, region, bill_to_country.
Please advise!!
Try using party_name, region, bill_to_country plus bucket in row group
I resolved this by using SQL SERVER PIVOT relational operator.
Instead of grouping in the SSRS report, i thought of implementing rotation logic(converting row values to column names) from SQL query and it worked like charm!!

Is nested DataSets possible in SSRS 2005?

Is it possible to have an outer table mapped to a dataset and use another table inside the outer table which maps to a second dataset,where the second dataset should take the feild value
from the first dataset(as parameter) to pull data?
Please comment
Thanks in advance,
San
You should be able to do this with a subreport. Pass in a parameter to use as a filter. If you're using a filter rather than a query parameter, it should be able to use the same Intermediate Report (ie, RDL + Data) for each subreport, thereby achieving your goal.
It's not possible. Reporting Services doesn't support multiple datasets. You'll need to get creative with your SQL to create a single dataset of all data.