SSRS 2008R2 multi valued parameter in shared datasets - reporting-services

i create a multidimensional report with a couple of multi value parameters. In the next step, i convert the datasets in shared datasets. Actually my problem is that i cant add parameters to the shared dataset in the report.
Can anybody explain, how i add multi or single Parameters to a shared dataset in a report?
Parameter1 - Dataset:
WITH MEMBER [Measures].[Unique] AS [Dimension1].[Dimension1].CurrentMember.UniqueName MEMBER [Measures].[Caption] AS [Dimension1].[Dimension1].CurrentMember.Member_Caption MEMBER [Measures].[Level] AS [Dimension1].[Dimension1].CurrentMember.Level.ordinal SELECT { [Measures].[Unique],[Measures].[Caption],[Measures].[Level]} ON COLUMNS, NONEMPTY([Dimension1].[Dimension1].[Dimension1]) ON ROWS FROM [Cube]
Parameter2 - Dataset:
WITH MEMBER [Measures].[Unique] AS [Dimension2].[Dimension2].CurrentMember.UniqueName MEMBER [Measures].[Caption] AS [Dimension2].[Dimension2].CurrentMember.Member_Caption MEMBER [Measures].[Level] AS [Dimension2].[Dimension2].CurrentMember.Level.ordinal SELECT { [Measures].[Unique],[Measures].[Caption],[Measures].[Level]} ON COLUMNS, NONEMPTY([Dimension2].[Dimension2].[Dimension2]) ON ROWS FROM [Cube]
Both Datasets are shared Datasets. In the report the first Dataset should filter the second Dataset.
How can i set a Parameter for the second Dataset?

Related

SSRS Subreport's dataset run multiple times

I have a subreport which use a parameter from main report to filter the data. The subreport's dataset is the same but SSRS keep making call to SQL to get it for every parent in main report.
I already set the cache for all dataset and set the parameter as not used by query.
Is there anyway to set the subreport's dataset run only one and then filter the data in subreport using the parameter?
Here is an example of my query
Main Report: Select ClassID, ClassName from Class (Dataset 1)
Sub Report: Select ClassID, StudentName from Student (Dataset 2)
Main report will pass ClassID as parameter to Sub report. Sub report will use it as a filter for Dataset 2 and return StudentName with same ClassID in subreport
My issue is if Dataset 1 return 8 rows, then the Subreport will run Dataset 2 8 times.
Have you tried using a separated dataset? I had a similar problem once and it turned out being some kind of loop.
If you use a dataset filter instead of a report parameter, it will be able to take advantage of the report cache.

Accessing one Dataset in Another Dataset (SSRS)

There are 2 Tables on Two Different Servers,
I Have Dataset1 pointing to Server1.
Similarly I have Dataset2 Pointing to Server2.
Now I want to Use some Values from Dataset1 in Dataset2.
Dataset1:-
Select * from Table1
This has Name,Lessthan,GreaterThan
Dataset2:-
Select * from TableX X inner join Dataset1 on Dataset1.name=TableX.name
Where X.Time>Dataset1.Lessthan and X.Time>Dataset1.GreaterThan
Have tried doing the same as above but we are not able to Access the contents of Dataset1 in Dataset2
It Throws error As 'Invalid Object :-Dataset1'
Please guide me on this.
You're right: a Dataset's query can't access another Dataset: the query is sent to the database server, which knows nothing of your other Dataset which is defined in the report only.
You can make some report parameters (which can be hidden from the user), which use your Dataset 1 to provide their values.
Then you can pass the parameter values to Dataset 2: when you open Dataset 2's properties you will see 'Parameters' on the left. In Dataset 2's query, include things like #paramvalue, and you will be able to supply it with your values from your report parameters.

SSRS-DT 2012 Report from 2 Data Sources

I'm learning to use SSRS-DT 2012
I need to write a report about assets.
DataSource 1 - View that contains a relationship between a hierarchy number code (AB123) and the name of the hierarchy (Accounting)
DataSource 2 - View that contains the data about the assets and the hierarchy number (AB123).
I'd like the report to contain the Hierarchy Name and the Asset details.
I think this is a Lookup, have been getting confused on how to write it b/c in SSRS-DT you write a query as a property of a dataset (If I'm wording that correctly) - I don't know how to write a query that involves 2 data sources.
Am I missing something?
Use this expression:
=lookup(Fields!HierarchyCode.Value,
Fiedls!HierachyCode.Value,Fields!AssetsDescr.Value,"DataSet2")
As example I have these datasets:
Maybe you want to use a tablix for show this report, so I've added one with this data arrangement.
First column has Descr field of my DataSet1, the expression at right is used to join it to my DataSet2 and return the value that corresponds.
This is my expression:
=lookup(Fields!Month.Value,Fields!Month.Value,Fields!Total.Value,"DataSet2")
Note tablix DatasetName property was set to DataSet1
This will preview the following tablix:
Using the lookup function I am getting the corresponding total value from DataSet2 for every Month in the DataSet1.
For more information check lookup

Unable to add SSRS Parameters/Filters

I have created a ssrs report which requires a drop down filter to select values.
The steps I have taken in report:
Created the Dataset
SELECT * FROM Voluntary_CCC_Split
Then applied where statement in dataset - where [WORK ORDER OPERATIONS TYPE] in (#WorkOrderOperationType)
The parameters now appears but when changing to available values and selecting dataset, value field and label field i get error below when generating report:
the report parameter has a default value or a valid value that depends on the report parameter. forward dependencies are not valid
I only have one parameter
Your parameter was configured to have its available values populated from a dataset that referenced the same parameter. Instead of this circular reference, create an additional dataset that simply returns the labels and values for the data you need, and use that to populate your parameters available values.

How to pass multiple values to my SSRS Report from MDX

I need to pass multiple values to my parameter in ssrs report from MDX.
My Dimention :
[Dimenction].[Heirarchey].[Month].&[09]&[2012] this is internal parameter.
I need to pass multiple month names and single year to my parameter and then my parameter is going to populate the data from my dataset.
A possible link:
http://social.msdn.microsoft.com/Forums/en-NZ/sqlreportingservices/thread/7f9cc219-1a57-4ddb-8bd5-5135e0aacbe6