I have a SSRS report that uses a drill thru subreport.
The subreport is used 3 times in the main report and takes several parameters.
In 2 of the subreports I set one of the parameters, SexAtBirth, using a static value, Female or Male.
Here is a screen shot of the parameter:
For the 3rd subreport, I want to set the parameter SexAtBirth to Not Male or Female
. In SQL it would be SexAtBirth NOT IN ('Female', 'Male')
The parameter SexAtBirth is set to take multiple values.
I don't know how to create an expression to NOT include a static list of values.
UPDATE
I am trying to create a static list for the values and the error is SexAtBirth parameter missing a value
I am using Report Builder 3.0 on SQL Server 2008 R2.
This is what I have tried:
in the dropdown list:
"Female", "Male"
Female, Male
WHERE AgeRange = @AgeRange AND SexatBirth NOT IN (@SexAtBirth)
I would like to create a string like this:Female, Male
– Gloria SantinSexAtBirth
parameter I can inputFemale
and it will return only male which is correct and inputMale
to return only female. But I want to create a list of 'Female, Male' and have it only return the unknowns. – Gloria Santin