SSRS Multivalue parameter contains blanks - Query the blank in multivalue parameter - reporting-services

I have a SSRS multivalue parameter called #prmEstate which is a list of dates. The dataset to populate #prmEstate is
select distinct [forecast finish]
from table1
The [forecast finish] column contains some blank values. I want to be able to pass in or select the blank value at runtime so I can see only records have a blank [forecast finish] or include the blank value records in the select all records. The line in my main dataset is
SELECT COL1, COL2 FROM TABLE2
WHERE ([forecast finish] IN #prmEstate)
Any assistance is appreciated.

Related

fitler table when field matches with other dataset value when no rows in dataset disable filter

I have two datasets, one dataset has country field, other dataset has country, I will input country in second dataset, when second dataset has data in it, filter first dataset based on the matched field when second doesn't have data display the default values from first dataset.
Used the following filter in table row group level
=IIF(Fields!SecurityDomicile_domicile_country.Value = Lookup(TRUE,TRUE,Fields!cntry_nm.Value, "SelectedCountries"),TRUE,FALSE)
=
=IIF(CountRows("SelectedCountries")>0,TRUE,FALSE)
when country input in second dataset filter matches to that.
when no rows in second dataset display the table as it is.
Filter in group level:
=Fields!SecurityDomicile_domicile_country.Value
In
=IIF(CountRows("SelectedCountries")>0,Lookup(TRUE,TRUE,Country),SecurityDomicile_domicile_country)

How can I group two rows in a cross tab query in MS - Access?

I currently have crosstab query in MS Access that groups data by the field "Type". This field is the row header in my crosstab query.
The 3 "Type" values are:
Equipment, Optional, Parts
I would like to combine the values of the Optional and Parts rows into one row (called Together) and present the crosstab query with just two rows:
Equipment
Together
How can this be done? Basically how can I group two rows in a cross tab query?
For the column displaying your Type field, use an iif expression to output Together if the value of the field is either Optional or Parts, else output the value of the field e.g.:
NewType: iif(YourTable.Type in ('Optional','Parts'),'Together',YourTable.Type)
Alternatively:
NewType: iif(YourTable.Type='Optional' or YourTable.Type='Parts','Together',YourTable.Type)

Add "ALL" to drop down which is fetching values from query - SSRS 2008 r2

I have report, which has drop down to select warehouse code and it show stock position at that selected warehouse, these warehouse codes are populated through query at available values part, i would like to add in the same list as ALL, how to achieve this?
Current view at drop down
WH 1
WH 2
WH 3
Desired view at drop down
ALL
WH 1
WH 2
WH 3
please provide your inputs
You should create a specific dataset just for this parameter. Then from that dataset Just Add a union query
SELECT 'ALL' as FieldName
UNION ALL
*Your Dataset Query
Then set your parameter to Get value from a query then select the dataset you've just created.
Parameter Dataset:
SELECT NULL AS Value, '<ALL>' as Label
union all
SELECT DISTINCT WAREHOUSE AS Value, WAREHOUSE as Label
this will create a dataset with a distinct list of warehouses in both the value and label column - there is a reason for this which I will explain further on.
Now in your dataset change the where clause to:
WHERE WAREHOUSE=CASE WHEN #wh IS NULL THEN WAREHOUSE ELSE #wh END
By creating a NULL value with its own label you are creating an extra row in the dataset and by passing NULL in (using the where clause above) you are effectively selecting the entire table.

Bind Dropdown in SSRS with all column name of Dataset

I need to bind dropdown in SSRS with all column name of dataset.is this possible to select all column name from dataset in SSRS.please help me....because I am stuck in from last 10 days.
First, create a dataset out of those column names:
SELECT *
FROM [yourschema].INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = [yourtablename]
Then just add a parameter, call it what you like.
Then, for available values, choose to get it from a dataset.

Parameters in a report

I am using microsoft reporting 2008 and I would like to set parameters in this report. I do not want to pull back a list that contains the same...such as year...I pull up my parameter and I have a hundred 2010...I just want one to appear in the parameter but I want my report to show all hundred. How do I do this?
I'm guessing you want to base your parameter selection on a query of available values that will appear in your report, so you have hooked it up to your dataset for your report.
Create another dataset that is like your report dataset but only returns distinct values and use this as the query for available parameter values.
For example, if your report dataset is something like this:
SELECT Year, Amount
FROM MyTable
WHERE SomeValue = 1
use the following dataset for your parameter query:
SELECT DISTINCT Year
FROM MyTable
WHERE SomeValue = 1